Repository navigation
FAQ
Short answers to common questions. Each links to the guide that covers the topic in full.
Run npm install, then npm run dev. The editor is at http://localhost:3000/editor.html. Add ?sample=flappy to open the Flappy Bird sample. See The editor.
A 2D and 3D game engine in TypeScript. Scripts are Unity-style behaviors with lifecycle methods, scenes are node graphs, and rendering uses Babylon.js. The desktop editor ships through Tauri.
Yes. samples/flappy/ is a small 2D game, and samples/arena/ is a multiplayer game. Open either from the editor's start screen. See Multiplayer.
In a browser the editor opens samples read-only. Run the desktop editor with npm run tauri:dev to open a project folder, use Make a Copy… to copy a sample, and save with Ctrl+S. See The Projects window.
Yes. Panels can be closed, added, copied, saved as layouts and detached into their own windows. See Docks and panels and Layouts.
Editor data kept beside your project, such as history and thumbnails. Game builds leave it out. See The .myco/ folder.
Write a TypeScript class that extends GameBehavior and import from "myco". It gets lifecycle methods such as update, fixedUpdate and lateUpdate. The Physics guide has an example in Character controllers.
Coordinates are left-handed with +Z forward, as in Unity. Rotations are quaternions, and Euler angles are in radians (ZXY order). See Transforms and rotation.
Yes. A plugin can add components, systems, asset kinds, editor panels and Inspector extras. The plugin SDK is experimental, and plugins run with the same access as your scripts. See Writing a plugin.
Babylon.js is the only renderer. It does not appear in the public API, so your scripts use myco types only. See Materials, shaders and batching.
Yes. Hand-written shader assets can be WGSL or GLSL, with keywords and variants. See Hand-written shaders.
Set an Environment map for a sky, add a WaterSurface for water, and use DecalProjector or Decal2D for decals. Lines and trails are in Lines and trails.
Browsers keep audio locked until the player clicks, taps or presses a key. If that is not it, read Audio.debug(). The page Why is there no sound? walks through each cause, starting with a locked status.
WAV, FLAC, MP3 and Ogg Vorbis play everywhere. AAC plays once you turn it on in audio.json. Opus and AIFF are not supported. See Sound files.
Use Audio.playOneShot("sfx/jump.wav") for a fire-and-forget sound, or an AudioSource component for a sound on a node. See Playing sound.
Yes, both run on Rapier. A scene's "physics" setting picks the dimension. See Bodies and colliders.
Yes. See Character controllers and Joints.
It is server-authoritative. The server runs a World tagged server, clients run Worlds tagged client, and the engine handles replication, inputs and client prediction. See Multiplayer and Worlds.
Run npm run server -- path/to/project. Flags such as --port and --max-connections are listed in The dedicated server.
Use Build and Export… in the editor's File menu, or run npm run export -- <projectDir> [--out DIR] [--target web|desktop]. A web export is served with node serve.mjs; a desktop export is wrapped in a Tauri app. See The menu bar.
The desktop app needs Rust with the MSVC toolchain and a recent CMake. See Building the desktop app on Windows for fixes to the common SDL3 failures.
The editor runs on desktop and in a web browser. Games run on the web, on desktop and on Android through Tauri. See Audio core minimum versions for the browser and WebView versions the audio core needs.
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference