Skip to content

Repository files navigation

Icon CTFTNKS: Capture-The-Flag Tank Game

CI codecov

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

Features

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

How to Play

  1. Open ctftnks.github.io
  2. Menu: Use the menu to select a game mode and configure players/bots.
  3. Controls: Default controls for Player 1 are Arrow Keys to move and Space to fire. These can be remapped in the Menu.
  4. Goal: Capture the enemy flag and return it to your base while defending your own!

Documentation

The raw documentation-as-code is placed in the directory /docs/.

First Steps for Development

Prerequisites

Installation of dependencies

First, you need to install the npm-dependencies using the command

npm install

Development

Launch the development server:

npm run dev

The game should now be available in your browser at http://localhost:5173

Build

Build the project for production:

npm run build

The output will be generated in the dist/ directory.

Testing

Run the unit test suite:

npm test

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

About

A browser based tank game with a CTF game mode

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Used by

Contributors

Languages