Andrzej Mazur • @end3r • Enclave Games
ConFrontJS 2019 in Warsaw, Poland, December 7th 2019
Way worse than native.
Play/sync issues, too many formats.
Web Storage, AppCache, IndexedDB, Web SQL.
Gamepad, Pointer Lock, Fullscreen, etc...
Borrowed from front-end.
Go native or go home.
But...
Technology • Discoverability • Monetization
...wait, what?
Responsive Web Design
...offline PWA...
...in VR...
...with WebGPU...
...and WebAssembly...
...streaming from the cloud.
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Flood Escape</title>
<meta name="monetization" content="your_payment_pointer">
// ...
</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...
Go Web or go home.
"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 |