This is no longer maintained


kilo (kiswa game library => kglib => kilo) is a 2D game library written in JavaScript. It is meant to be easy to use and lightweight, without any external dependencies.

Licensed under the Apache License, Version 2.0.

If you like using kilo, I appreciate your contributions in the form of source code patches, constructive criticism or even a donation.

To 'Build':

  • In the build directory, run the script for your platform (.bat for Windows, .sh for Linux/Mac) to generate kilo output files.

  • The kilo.js file is intended for development use, while kilo.min.js has been minified and is meant for production use.


The main kilo directory includes an index.html file which links to various demos of the library. The demos are also available live here (though possibly behind).

Spend some time exploring them to become familiar with kilo.

If there are still questions, please report an issue with documentation as the component. For problems with a demo, please use demos as the component.


Report any issues at the official bitbucket issue tracker.


Touch support needs improvement (it doesn't really work).