qw3n / kontra

A lightweight JavaScript gaming micro-library, optimized for js13kGames.

Home Page:https://straker.github.io/kontra/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub version Build Status Coverage Status

Kontra.js

The goal of Kontra.js is not to implement everything you could possibly need to make a game. There are already libraries out there that do that (like Phaser or Jaws).

Instead, Kontra.js aims to implement basic game requirements like asset loading, keyboard input, the game loop, and sprites to keep the library very small and focused. This allows it to be used when your game size is limited (a la Js13k).

Kontra.js does provide some more advance data structures like object pools and quadtrees that have been fine tuned to be small, fast, and memory efficient.

Kontra.js prides itself in being:

  • lightweight: 12.5 kB minified (4.9 kB gzipped) for the entire library. The basic bundle is 3 kB minified (1.3 kB gzipped).
  • modular: pick and choose what modules you want when you download. No inter-dependencies.
  • extensible: everything is customizable and can be extended.
  • fast: all logic has been removed from the update and render cycles.
  • memory conscious: takes up as little memory as needed and tries not to be wasteful about the memory it does take up.

Use it When

  • you want to get something up and running fairly quickly.
  • you want a basic structure that is easy to scale and extend.
  • in conjunction with other libraries (like Playground.js).
  • prototyping.
  • game jams.

Documentation

All the documentation can be found on the github page.

Community tutorials

Games made with Kontra

About

A lightweight JavaScript gaming micro-library, optimized for js13kGames.

https://straker.github.io/kontra/

License:MIT License


Languages

Language:JavaScript 100.0%