GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - harshdoesdev/bottlecap: bottlecap - Lightweight JavaScript 2D Game Engine For Making Cross-Platform Hypercasual Games

BranchesTags
Open more actions menu

Latest commit

 

History

375 Commits
375 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
dist
dist
 
 
src
src
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
banner.png
banner.png
 
 
banner_new.png
banner_new.png
 
 
package.json
package.json
 
 

Repository files navigation

bottlecap.js - 2D Game Framework

bottlecap.js

Table of Contents

  • About
  • Installation and Setup
    • NPM
    • CDN
  • Docs
  • Example

About

bottlecap.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.

Installation and Setup

NPM

npm create vite@latest my-bottlecap-game -- --template vanilla # vanilla-ts for TypeScript
cd my-bottlecap-game
npm i bottlecap

src/main.js:

import * as Bottlecap from 'bottlecap';

// your code

CDN

src/main.js:

import * as Bottlecap from 'https://unpkg.com/bottlecap@latest';

// your code

Docs

Explore the comprehensive documentation in the wiki to get started with bottlecap.js.

Example

Check out the live demo.

Source code

Demo

Games made using bottlecap

  • 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!

About

bottlecap - Lightweight JavaScript 2D Game Engine For Making Cross-Platform Hypercasual Games

bottlecap.js.org

Topics

2d-game-enginebottlecapcollision-detectiongamesjavascript-game-engine

Resources

Readme
MIT license
Activity

Stars

20 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.