JSPM

  • Created
  • Published
  • Downloads 258
  • Score
    100M100P100Q92590F
  • License MIT

LittleJS - Tiny and Fast HTML5 Game Engine

Package Exports

  • littlejsengine

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (littlejsengine) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

LittleJS Logo LittleJS - The Tiny JavaScript Game Engine That Can

All aboard!

LittleJS is a super lightweight 2D JavaScript game engine with fast WebGL rendering. It is designed to be small, simple, and easy to use for various applications, from game jams to commercial releases. This engine has everything necessary to make high-quality games, including fast rendering, physics, particles, sound effects, music, keyboard/mouse/gamepad input handling, update/render loop, and debug tools. 🚂

LittleJS Documentation - LittleJS Trailer - LittleJS Trello Roadmap

LittleJS Screenshot

Example Projects

Hello World - Clean project with only a few things to get you started

Puzzle Game - Match 3 puzzle game with HD rendering and high score tracking

Platformer - Platformer/shooter with procedural generation and destruction

Breakout - Breakout game with mouse/touch or gamepad control

Stress Test - Max sprite/object test and music system demo

Features

  • Very small footprint with no dependencies
  • Can render 10,000+ objects at 60fps, often several times more
  • Object oriented system with base class engine object
  • 2D physics and collision handling for axis aligned boxes
  • Positional audio effects with zzfx and music with zzfxm, mp3s, or wavs
  • Input processing system with keyboard, mouse, gamepad, and touch support
  • Engine helper functions and classes like Vector2, Color, and Timer
  • Tile layer cached rendering and collision system for level data
  • Particle effects system (particle editor/designer in progress)
  • Medal system tracks and displays achievements with Newgrounds and OS13k integration
  • Several easy to understand example projects you can build on
  • Debug tools and debug rendering system
  • Example projects are compatible with mobile devices
  • Full documentation automatically generated from the source code block tags with JSDoc
  • Build system automatically combines everything, minifies, and removes unused code
  • For size coding competitions like js13kGames, starter project builds to a 7KB zip
  • Easily build a Windows executable with electron for distribution on platforms like Steam
  • Open Source with the MIT license so it can be used to make commercial games

Games Made With LittleJS

  • Space Huggers - A more developed version of the platformer example
  • Send me your games!

LittleJS Logo