A browser-based tower defense game built with Phaser.js.
-
Clone the repository:
git clone <repository-url> cd td-game
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open the game:
- Open your browser and navigate to
http://localhost:5173
(or the URL shown in your terminal) - The game will load automatically from the root page
- Open your browser and navigate to
- Place Towers: Click on a tower type in the bottom panel, then click on the game area to place it
- Select Towers: Click on an existing tower to select it
- Upgrade Towers: Select a tower and click the "Upgrade" button
- Start Wave: Click the "Start Wave" button to begin enemy spawning
- Space: Start wave or pause/resume game during wave
- 0: Pause/unpause the game (during active wave)
- 1-9: Set game speed multiplier (1x, 2x, 3x, up to 9x speed)
- B: Select Basic Tower
- R: Select Rapid Fire Tower
- C: Select Cannon Tower
- M: Select Multishot Tower
- U: Upgrade Tower
Defend against waves of enemies by strategically placing and upgrading towers. Don't let enemies reach the end of the path!
- Multiple tower types with different strategies
- Wave-based progression with increasing difficulty
- Tower upgrade system
- Visual effects and animations
This project is licensed under the MIT License.