Skip to content

Latest commit

 

History

History
20 lines (12 loc) · 718 Bytes

README.md

File metadata and controls

20 lines (12 loc) · 718 Bytes

Box Jump

Box jump is a simple game that demonstrates the basics of game development, particularly the 2d physics engine.

Basic concepts

The game runs entirely in any browser that supports the <canvas> element and is written in Vanilla JavaScript.

The foundational concepts are:

  • Infinite Game Loop
  • Game state
  • Physics
  • Window paint

The game attempts to render a new state every time the browser paints the window. This is done using the window.requestAnimationFrame() API.

Every cycle loops through two stages: updating the state (using the physics), and painting the state.