This repository contains Kaspa Pong — a browser-based canvas game (game.js).
How to run locally
- Open a terminal in this folder (project root).
- Start a simple local server (recommended):
python -m http.server 8000
# then open http://localhost:8000 in your browser- Or open
index.htmlin a browser (for some browsers a local server is required for resources).
Deploy to GitHub Pages
- Initialize a git repo and push to GitHub (instructions below):
git init
git add .
git commit -m "Initial commit — Kaspa Pong"
# create remote repo on GitHub (via web UI or `gh repo create`)
# then:
git remote add origin https://github.com/<your-username>/<repo>.git
git branch -M main
git push -u origin main- Enable GitHub Pages: in the repository Settings → Pages, set Source to
mainbranch and Root (/). - After a minute your game will be available at
https://<your-username>.github.io/<repo>/.
Notes
- Keep all asset paths relative (they already are). If you move files, update paths in
index.htmlandgame.js. - The dev helper button is hidden by default; use the console helper
startTestLevel15Speed30()if needed for QA.
Licensing
Add a LICENSE file if you want to publish with an explicit license (MIT recommended for permissive reuse).