Skip to content

ScriptRaccoon/jump-and-run-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jump and Run Template

Demo: https://jump-and-run-template.netlify.app

This is a template for jump and run games in Vanilla Javascript.

There are classes for

  • rectangles (which cannot be moved)
  • boxes (which can be moved by the player)
  • players (which can walk and jump and push boxes)

In particular, the box class has some elementary physics (velocity, acceleration, gravity, friction) and collision detection. Players are seen as special boxes which can be controlled via the arrow keys and have the trait of pushing boxes.

The animation is done by the timer class which is borrowed from this repo.

About

basic template for jump and run games in an HTML canvas with vanilla JS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published