A 2D GAME FRAMEWORK FOR HYPERCASUAL GAMES
npm install bottlecapbottlecap.js is a lightweight 2D game framework written in ES6. It offers a set of modular components, referred to as bottlecaps, that can be easily combined to create engaging 2D games.
``shell
npm create vite@latest my-bottlecap-game -- --template vanilla # vanilla-ts for TypeScript
npm i bottlecap
`
src/main.js:
`javascript
import * as Bottlecap from 'bottlecap';
// your code
`
src/main.js:
`javascript
import * as Bottlecap from 'https://unpkg.com/bottlecap@latest';
// your code
``
Explore the comprehensive documentation in the wiki to get started with bottlecap.js.
Check out the live demo.
!Demo
- Hydrogen
- Play Or Die
- Sneaky Tails
- SlideToShoot
Feel inspired by these creations? Start your own journey with bottlecap.js and join the growing community of game developers. Share your masterpiece and let the world experience your unique vision! If you have a game developed using bottlecap.js that you'd like to showcase, consider adding it to the list by opening a pull request. Happy gaming!