Skip to content

Remich/2d-game-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D Game Engine

This is a 2D Game Engine written in Javascript. It was written for educational purposes only.

It is not intended for serious projects as there are still a lot of features missing.

Features

  • Animations with Spritesheets
  • Sprite Rotation & Flipping
  • Parallax Scrolling of Backgrounds
  • Camera Interpolation
  • Double Buffering
  • Simple Collision Detection via Rectangular Hitboxes
  • Input Handling (supports Key-Combinations)
  • Maps encoded as JSON-Files
  • Zoom

Demo

You can view a Demo here.
Best performance with Chromium / Chrome.

Controls

  • ←,→: Walk, Run, Brake
  • : Look Up
  • : Roll, Crouch
  • SPACE: Jump
  • SPACE + ↑: Peel Out (when Standing)

Missing Features

  • Sound
  • State Machine for different Scenes
  • Loading Screen with Progress
  • Reloading of Local Cache
  • z-index of Objects (Currently the order in which the objects are created determines their z-index.)

About

A 2D Game Engine written in Javascript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published