Skip to content

jorgechurriana/jangame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jangame

Very basic javascript 2D game engine

The basig aim for this engine it's to write a canvas html game in few lines. In order to try learn programing viewing funny things.

jangame

Very simple javascript game engine
Writen in a fast way getting something for there and here

On line in jangame.66ghz.com

Simple Demos

Documentation (more or less)

Pintable objects: Can be painted directly o be the paintable(viewable) object of a sprite.
  • Circle
  • Box
  • Img
  • ImgAnim
  • Text

Game objects:

  • Sprite: Basic game element
  • Sound: Can play sound effects
  • Game: The main object that do the job for you

Game

Methods.
  • load: Charge a scene (a function)
  • clear: Clear the canvas
  • update: Paint/update all sprites.
  • box/rect/text: Direct paint without pre-created object.

Sprite

Methods.
  • update: Paint/update the sprites.

And when... the examples are explained by itself.

About

Very basic javascript 2D game engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published