A zero-dependency and simple data-oriented game engine for JavaScript that has everything you need to get started and to get things done.
There won't be extensive documentation as the game engine is intended to be simple, the documentation in the code and the examples below should get you in the right direction.
You can get started instantly by copying the Ridder template repo with the following command, be sure to replace <project-name>
with the name of your game.
npx degit patrickswijgman/ridder-template#main <project-name>
cd <project-name>
npm ci
npm start
Or install manually in your own project with the following command.
npm install ridder
See the table below for the code of each example or play it instantly (using Github Pages).
Play | Code | Keywords | |
---|---|---|---|
input | link | link | keyboard mouse |
font | link | link | ttf |
mobile | link | link | vectors mouse transforms |
platformer | link | link | collision gravity camera transforms |
polygon | link | link | hitbox mouse |
render-texture | link | link | render-texture transforms |
sprite | link | link | sprite animation transforms |
top-down | link | link | vectors depth-sorting render-texture camera camera-shake transforms |
tween | link | link | animation |
Or you can clone this project and run an example from the examples folder like so:
# make sure to install the dependencies first, you only need to do this once:
npm ci
# run an example
npm start -w <example> # e.g. npm start -w platformer