dino-ge

Dino GE core engine guide

Documentation

Learn how Dino GE runs a small 2D game, one idea at a time. Start with an empty canvas and finish by tracing how Amber Ruins ties the systems together. You need basic JavaScript, including modules, functions and classes. The browser demos require no installation.

  1. Build a first scene
  2. Compose objects with components
  3. Draw and animate sprites
  4. Read input and walk a tilemap
  5. Move the camera and switch scenes
  6. Simulate bodies and collisions
  7. Add a HUD, audio and effects
  8. Debug and inspect a scene
  9. Read and play Amber Ruins

Each demo can run on its own. To follow along locally, start with the two-file setup in Build a first scene. For another small demo, copy that setup to a new folder, keep the import map and module script, and replace the page body and main.js with the chapter’s listings. Copy any assets the chapter names beside those files, and serve the folder over HTTP. The final chapter shows where to make changes in the full Amber Ruins game.

Try the demos first to see what each example does. Then change one value in your local copy and reload to see what changed. For exact method signatures and configuration options, use the API reference.