create-okona-game
v0.6.1
Published
Scaffold a phone-controlled HTML5 game for Okona on Phaser 3.90: lobby, six seats, the TV-safe Phaser setup, and a slot-car race in game.js to make yours.
Maintainers
Readme
create-okona-game
npm create okona-game my-gameScaffolds a phone-controlled HTML5 game for Okona, for one player or up to six, on Phaser 3.90 (bundled). It includes:
- A lobby built to the Okona game standards. A controller joins by pressing A, any joined player starts, and the game freezes while the Okona menu is open. There's no join code in the game: Okona shows it.
- Six seats, with names and colours pushed to each phone.
- The Phaser setup Okona recommends for a TV box (Phaser on Okona): a 960x540 canvas scaled to fit, and the effects pipelines off.
- A
game.jsholding a small slot-car race to replace with your game: hold A for gas, left and right to change lanes, lift before the corners. The best lap is kept withOkona.save.
Open index.html in a browser and the keyboard is P1. There's no build step and no package.json. Ship it with the okona CLI (npx okona-cli, Node 18.17+). Push to your sandbox first to try it with real phones, then submit it to the Okona catalog; once it's approved, players join in the Okona app with a phone or a gamepad.
Zero dependencies to install. Docs: https://okonaonline.com/developers/docs.html#html5 · SDK reference: https://okonaonline.com/developers/docs.html#js-sdk
Phaser is © Richard Davey, Phaser Studio Inc., MIT licensed (PHASER-LICENSE.md in the scaffolded folder).
