Skip to content

stevetaggart/td-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tower Defense Game

A browser-based tower defense game built with Phaser.js.

How to Play

  1. Clone the repository:

    git clone <repository-url>
    cd td-game
  2. Install dependencies:

    npm install
  3. Start the development server:

    npm run dev
  4. 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

Game Controls

Mouse Controls

  • 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

Keyboard Controls

  • 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

Objective

Defend against waves of enemies by strategically placing and upgrading towers. Don't let enemies reach the end of the path!

Features

  • Multiple tower types with different strategies
  • Wave-based progression with increasing difficulty
  • Tower upgrade system
  • Visual effects and animations

License

This project is licensed under the MIT License.

About

Very basic Tower Defense game in JavaScript

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages