How chathamhung/thebuttongame2 works
Project type and purpose
• This is a static, front-end-only web game (“The Button Game 2”) consisting of HTML, CSS, and JavaScript files, plus a set of prebuilt level pages and image assets.
• Purpose: deliver 20 interactive puzzle levels in the browser, hosted via GitHub Pages or any static-file server.
File structure
• Top-level files:
• index.html – entry point
• globalScript.js & script.js – game-wide logic and per-level scripts
• globalStyle.css & style.css – base styles and component-specific styling
• levels/ – 20+ HTML files, one per level (0.html…21.html, + examples)
• res/imgs/Captcha – image assets used for certain levels
• No backend, database, or build pipeline: pure static site.
• README and LICENSE live at root; no config files (no Webpack, no package.json).