Skip to content

Simple JS gameloop, similar to love2D, easy to quistart

Notifications You must be signed in to change notification settings

Bilboramix/empty_js_gameloop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is an easy'n'ready to use 2D canvas boilerplate, great for begginer or to make quick prototyping.

  • Scalable
  • No dependancies
  • Begginer friendly
  • Use Classes and ES6 modules
  • State machine for inputs handling
  • Classic load/update/draw loop
  • Easy to implement on any frontend framework

How to use

  1. Clone it :
git clone https://github.com/Bilboramix/empty_js_gameloop.git
  1. Start : open webserver with a live server extension and use ZQSD/WASD to move the player.

  2. Code : Create classes objects, with their own update and draw function (Follow the player model), and push a new one into entities array.

Cool canvas and js tutorials here

Cool dependancies to play with

About

Simple JS gameloop, similar to love2D, easy to quistart

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published