Making Code Happen

LittleJS 🚂 The Tiny JavaScript Game Engine That Can!

All aboard!

LittleJS is lightweight 2D JavaScript game engine with a WebGL rendering system. The goal of this project is to be small, simple, and easy to use for a variety of applications from size coding game jams to commercial releases.

This engine has everything necessary for most games including super fast rendering, physics, particles, sound effects, music, keyboard/mouse/gamepad input handling, update/render loop, and debug tools.

🚂 LittleJS Engine on GitHub

Features

  • Very small footprint with no dependencies
  • Super fast tile sheet rendering system, ~50,000 sprites at 60fps
  • Object oriented system with base class engine object
  • 2D physics and collision handling for axis aligned boxes
  • Engine helper functions and classes like Vector2, Color, and Timer
  • Sound effects with zzfx and music with zzfxm, mp3s, or wavs
  • Input processing system with keyboard, mouse, gamepad, and touch support
  • Tile layer cached rendering and collision system for level data
  • Particle effects system (particle editor/designer in progress)
  • Several easy to understand example projects you can build on
  • Debug tools and debug rendering system
  • All example projects are compatible with mobile devices
  • Build system automatically combines everything, minifies, and removes unused code
  • For size coding competitions like js13kGames, starter project builds to a 6k zip
  • Open Source with the MIT license so it can be used to make commercial games

5 responses to “LittleJS 🚂 The Tiny JavaScript Game Engine That Can!”

  1. […] LittleJS is a lightweight 2D JavaScript game engine with a super fast WebGL rendering system. Learn more about it in this article. […]

  2. […] LittleJS is a lightweight 2D JavaScript game engine with a super fast WebGL rendering system. Learn more about it in this article. […]

  3. […] LittleJS 🚂 The Tiny JavaScript Game Engine That Can! […]

  4. […] LittleJS 🚂 The Tiny JavaScript Game Engine That Can! […]

  5. […] LittleJS is a lightweight 2D JavaScript game engine with a super fast WebGL rendering system. Learn more about it in this article. […]

Leave A Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.