Skip to main content

Templates & Demos

MD Engine includes a good number of templates and demos you can review.

Here you can find a small explanation of each template or demo.

The embedded web demos share browser storage. If it fills up, the demos keep running, but new saves will not persist. Free space for this site and reload the demo to resume saving. Clearing site data also removes existing demo saves.

Full Games​

Templates​

  • Action Platformer — Side-scrolling platformer with combat and enemies
  • Top-Down — Explore a house and rescue your pet rats
  • Visual Novel — Branching dialogue and character sprite expressions
  • Point & Click — A point-and-click adventure sample: move the cursor with the D-Pad, pick a verb (Walk, See, Talk, Get, Use) and press A to interact. You lost your keys, find the spare one and get to bed!
  • Snake — Classic snake game demonstrating grid movement and arrays
  • Breakout — Classic breakout game example
  • Invaders — Simple space invaders game
  • Vertical Shooter — Project showcasing how to spawn and recycle enemies from a pool in a vertical shooter

Demos​

  • Array — How to create and use arrays
  • Audio — Playing music and sound effects
  • Camera Follow — Camera follow modes
  • Collisions — Actor collision group options
  • Auto Scrolling — Two ways to scroll a scene automatically
  • Endless Runner — Project showcasing an endless runner with a seamlessly looping map
  • Co-op Play — Co-op example, player 2 can join with START, the camera follows the midpoint of both players.
  • Wall Kick — Project showcasing how to make a wall kick.
  • Tile Animation — Project showcasing how to animate tiles.
  • PAL vs NTSC — Region display differences and runtime detection
  • Dialogue Planes — Dialogue layout across planes and anchors
  • Dialogue Codes — Inline text controls across dialogue events
  • Pathfinding — A* route finding around walls
  • MDSDRV — Music and sound with the MDSDRV driver
  • HBlank - Palette — Horizontal Blank script for palette changes
  • HBlank - Window Plane — Horizontal Blank script for Window Plane changes
  • Palette Cycling — Project showcasing palette cycling: a range of colors rotates in place every few frames, with start/stop, speed and direction controls.
  • Line Scroll Wave — Project showcasing line-scroll waves: every scanline of the background scrolls by a moving sine, with underwater, heat haze and waterline presets.
  • Raster Gradient — Project showcasing raster gradients: one palette color is rewritten as the screen is drawn, turning a flat sky into a dusk, dawn or night gradient.
  • Image — Manual image loading and drawing
  • Parallax — Parallax scrolling backgrounds
  • Particles — Launching particles
  • Projectiles — Launching projectiles
  • Save — Saving and loading data
  • Shared Sprites — Project showcasing the Shared sprite engine: 40 animated saws share 6 cached frames in VRAM instead of each keeping its own tiles.
  • Slopes — Slope-based terrain for platformers
  • Temporary Triggers — Using temporary triggers for attacks
  • Text — Localization, dialogue, and drawing text to screen
  • Transitions — Simple scene transitions
  • Tweens — Sprite movement with different tween ease functions