crisp-game-lib as a library with the minimum functionality needed to create classic, arcade-like mini-games.
English | 日本語
Sample games and sample codes
Sample games are listed on my browser games page. Click
Play to play the game in your browser (PC or mobile).
Sample code for each game is
main.js in each directory in the crisp-game-lib-games/docs directory.
index.htmlin a text editor and write the code of your game in the
index.htmlin a browser and play the game.
You can publish the game by putting
index.htmlon your web server.
Write your own game (with the help of IntelliSense and Live Reload)
Clone or download this repository.
docs/_templatedirectory and rename it to
docs/[your own game name].
docs/[your own game name]/main.js…
I have already made more than 150 games using
crisp-game-lib, and this library has been well dogfooded. With
crisp-game-lib, you can create browser games that work on PC and mobile by simply writing the game's
description, and the
The game has all the functions necessary for mini-games: drawing functions for boxes, lines, arcs, text, characters, etc.,
a collision detection function integrated with these drawing functions,
In addition, there is a BGM function that is automatically generated simply by setting
true in the options. If you don't like the sound generated, you can change the sound by giving an appropriate integer to
There is also a replay function that can be enabled simply by setting
true. By merely selecting
theme, we can change the game's appearance to retro CRT style, dot art style, etc. We can define the pixel art with the
crisp-game-lib is not suitable for creating complex, long-playing games. But we can make simple action games with this library in a short time. I would be happy if you could use it to create mini-games for your daily hobbies or prototyping hyper-casual games.