KO
|
EN
gitlite โ search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
tower-defense
โ 18
Open GitHub โ
Tower defense browser game
Download README (.md)
Explore Similar Repositories
open-docs-mcp
:
An open-source MCP implementation providing document management functionality
custom-siri
:
No description available.
mcp-code-runner
:
No description available.
GeekNews-MCP-Server
:
๐ฐ GeekNews MCP Server
info-c.cn
:
ไธชไบบไธป้กตใๆตฎ้ณๅ็ซ ใ
// repository documentation
Was this content helpful?
โ 0
(0 ratings)
Select Rating:
โ
โ
โ
โ
โ
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
tower-defense
?
Download (.md)
# Tower Defense Game A modern tower defense game built with React, TypeScript, and Vite. Defend your territory against waves of monsters by strategically placing and upgrading towers. ## Features - ๐ฎ Interactive tower placement and management - ๐ Multiple monster types with unique behaviors - ๐๏ธ Various tower types with different abilities - ๐ฅ Dynamic bullet and effect systems - ๐ฏ Level-based progression system - ๐จ Modern UI with Tailwind CSS ## Game Mechanics ### Core Gameplay - Place towers strategically along the monster's path - Defend against waves of monsters trying to reach the end - Earn rewards by defeating monsters - Manage your resources to build and upgrade towers ### Tower Types - **Stone Tower**: Basic defensive tower with balanced stats - **Spike Tower**: Specialized tower with high damage output - Each tower has unique characteristics: - Range of attack - Damage per hit - Attack speed - Cost to build - Visual range indicator ### Monster System - Monsters follow predefined paths - Different monster types with varying: - Health points - Movement speed - Reward value - Visual appearance - Monsters can move in four directions (up, down, left, right) ### Combat System - Towers automatically target monsters within their range - Visual indicators show tower attack ranges - Bullet system with different projectile types - Cooldown periods between attacks - Monster health tracking and damage calculation ### Resource Management - Earn currency by defeating monsters - Strategic tower placement to maximize coverage - Balance between tower costs and monster rewards - Upgrade system for existing towers ## Tech Stack - React 19 - TypeScript - Vite - Tailwind CSS - Headless UI - Hero Icons ## Getting Started ### Prerequisites - Node.js (v18 or higher) - Yarn package manager ### Installation 1. Clone the repository: ```bash git clone https://github.com/yourusername/tower-defense.git cd tower-defense ``` 2. Install dependencies: ```bash yarn install ``` 3. Start the development server: ```bash yarn dev ``` 4. Open your browser and navigate to `http://localhost:5173` ### Building for Production To create a production build: ```bash yarn build ``` The built files will be in the `dist` directory. ## Project Structure ``` src/ โโโ assets/ # Game assets (images, sounds) โโโ bullet/ # Bullet system implementation โโโ components/ # Reusable UI components โโโ effects/ # Visual effects โโโ game/ # Core game logic โโโ level/ # Level management โโโ monsters/ # Monster types and behaviors โโโ towers/ # Tower types and behaviors โโโ types/ # TypeScript type definitions โโโ utils/ # Utility functions โโโ vampire/ # Vampire-specific game mechanics ``` ## Development - `yarn dev` - Start development server - `yarn build` - Build for production - `yarn lint` - Run ESLint - `yarn preview` - Preview production build locally ## Contributing Contributions are welcome! Please feel free to submit a Pull Request. ## License This project is licensed under the MIT License - see the LICENSE file for details.