Earning money

from HTML5 games

using Web Monetization API

SFI 16

Andrzej Mazur@end3rEnclave Games
16. Studencki Festiwal Informatyczny, online, April 15th 2021

June 2019: W3C Games workshop

Indie perspective on Web games

2011 vs 2019

Two main issues:

  • Discoverability
  • Monetization

Coil

Web Monetization API

Gamedev.js Jam 2021

Monetized website


							<head>
							  <meta name="monetization" content="$ilp.uphold.com/k4eJGQUDF9nw">
							  // ...
							</head>
						

Real-time money transfer

coil.com

$5 / month

Detecting active subscribers

Checking the state


							if(document.monetization && document.monetization.state === 'started') {
							  // do something
							}
						

Listening for an event


							function startEventHandler(event) {
							  // do something
							}
							document.monetization.addEventListener('monetizationstart', startEventHandler);

Extra content

Levels, points, coins, weapons, bonuses, etc...

No advertisements

  • No privacy issues
  • No spying on users
  • No selling data

Full control

  "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

Finally, the "native"

monetization alternative!

Thank you! Questions? Ask in the comments!

slides.end3r.com/sfi16-webmonetization

Andrzej Mazur@end3rEnclave Games

Ender Efka @end3r