Andrzej Mazur • @end3r • Enclave Games
TPAC 2020, online, October 20th 2020
Two main issues:
Web Monetization API
<head>
<meta name="monetization" content="$ilp.uphold.com/k4eJGQUDF9nw">
// ...
</head>
if(document.monetization && document.monetization.state === 'started') {
// do something
}
function startEventHandler(event) {
// do something
}
document.monetization.addEventListener('monetizationstart', startEventHandler);
Levels, points, coins, weapons, bonuses, etc...
"Classic" publisher | Web Monetization | |
---|---|---|
Implementation: | Complicated, changing code | 1 line of HTML + 2 lines of JS |
Income: | Waiting months for reports | Instant, streamed in real time |
Thank you! Questions?