Andrzej Mazur • @end3r • Enclave Games
16. Studencki Festiwal Informatyczny, online, April 15th 2021
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? Ask in the comments!