moxzi
Docs / moxzi.game

moxzi.game

Write games in Motoko and play them in a shared 3D player. Developer preview.

PageWhat it covers
moxzi.game overviewHow a moxzi.game game is put together, what you write, and what the shared player does for you.
Your first gameInstall the game tools, build and play the bundled Pong, change it, and run it without a window.
Writing a gameBuild a small game from scratch and learn each method the player calls on your actor.
Projects and commandsThe game.yaml file, project layout, and every moxzi-game and moxzi-player command.
AssetsModels, materials, graphics settings and sounds, and how Motoko code refers to them.
ControlsDefine buttons, sliders, keys, taps and on-screen text in controls.ui.yaml, and handle them in Motoko.
Saving and restoringHow the player saves a game, what a save contains, and what your actor must do for restores to work.
PlatformsWhere moxzi.game tools and games run in this developer preview, and what isn't supported yet.

If you only read one page, read Your first game.