Skip to content

ck-tan/simple-physics-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-physics

  • A simple physics experiment using HTML canvas.
  • Implements a game loop.
  • Covers animation, velocity, simple hit detection, simple collision detection, bounce, acceleration/gravity, and drag.
  • Utilizes delta time to provide a consistent experience independent of frame rate.
  • Implements fps-counter.

Instructions

  • Open index.html in a web browser to test.
  • Click/touch the object and throw it around.
  • Click the 'stop' button to stop the game loop.