CTFTNKS is a fast-paced, tank battle browser game featuring multiple game modes, including Capture the Flag, Deathmatch, and King of the Hill. It is built with modern vanilla web technologies.
🎮 Play the game now at: ctftnks.github.io
- Multiple Game Modes: CTF, Deathmatch, Team Deathmatch, and King of the Hill.
- Smart AI Bots: Adaptive bot speed and strategic behavior.
- Dynamic Power-ups: Laser, Machine Gun, Guided Missiles, Wrecking Ball, and more.
- Open ctftnks.github.io
- Menu: Use the menu to select a game mode and configure players/bots.
- Controls: Default controls for Player 1 are Arrow Keys to move and Space to fire. These can be remapped in the Menu.
- Goal: Capture the enemy flag and return it to your base while defending your own!
- 📚 Architecture & Guides (VitePress): High-level design, arc42 documentation, ADRs, and development guides.
- 📝 API Documentation (TypeDoc): Detailed technical documentation of classes, methods, and types.
The raw documentation-as-code is placed in the directory /docs/.
- Node.js (Latest LTS recommended)
First, you need to install the npm-dependencies using the command
npm installLaunch the development server:
npm run devThe game should now be available in your browser at http://localhost:5173
Build the project for production:
npm run buildThe output will be generated in the dist/ directory.
Run the unit test suite:
npm testThis project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.