mBattle is a fast-paced browser-based action game. Fight against bots, unlock heroes, skins, and climb the ranks!
The project is organized as follows:
index.html: Main entry point.src/css/style.css: All styles.src/js/main.js: Game entry point (initializes Game and UI).src/js/core/: Core game logic (Game loop, Input, Storage, etc.).src/js/entities/: Game entities (Player, Bot, etc.).src/js/data/: Game data (Constants, Heroes, Modes, etc.).src/js/ui/: UI components.
This project uses native ES Modules. No build step is required. Simply serve the root directory.
- Push to GitHub.
- Enable GitHub Pages in settings pointing to the root branch.
- Import the repository.
- It should auto-detect the static site.
To run locally, you need a local server (to support ES modules):
npx serve .
# or
python3 -m http.serverThen open http://localhost:8000.