Backbone Game Engine
A Super Mario physics demo built on Backbone.js, with a live panel showing state...
Backbone Game Engine
📖 How to Play
Use the arrow keys to run and jump. Watch the debug panel to see how each state machine transition changes the physics.
📚 Complete Game Guide
Backbone Game Engine
The Backbone Game Engine is a small 2D engine by Martin Drapeau that demonstrates modelling a platformer with Backbone.js plus jQuery and Underscore. Rather than a game, it is a working reference: a Super Mario sprite sheet, a debug panel, and a state machine that switches between idle, walk and jump based on input and vertical velocity.
Because the debug panel prints position, velocity and acceleration every frame, you can watch exactly how each state transition changes the physics. That makes it a genuinely useful reference for anyone structuring a platformer around game-state objects.
How to Play
- Read the debug panel in the top-left to see live physics values.
- Watch the state machine move Mario between idle, walk and jump.
- Use the arrow keys to drive the state transitions yourself.
Controls
- Arrow keys - run and jump
- Debug panel - live state, velocity, acceleration readout
Tips
The state machine is the point of this build. Pause on a jump and compare the velocity and acceleration numbers between the walk and jump states - the model applies a different force in each.
Open Source & License
MIT License It is integrated here as a self-hosted build, running entirely in your browser
from /games/backbone-game/ with no external services.
- Original source: https://github.com/martindrapeau/backbone-game-engine
🎮 Controls
Share This Game
🎮 Related Games
Astray
A 3D maze game built with Three.js and Box2D physics. Roll a steel ball through a procedurally generated maze — every level you clear makes the maze two cells bigger in each direction. By Tyler Whittle.
Descensus II
A one-touch physics puzzler. Drag bars into place to roll a ball past spinning saws and onto the ground.
Genetic Drift
A 2D physics platformer where you clone yourself. Every duplicate is another body, but only one of you moves at a time.
Hyperspace Garbage Collection
Collect and compress floating garbage in orbit. One player controls the collector, the other the expanding trash.
💬 Comments
Coming soon! Sign in to leave a comment.