CatProtectPlanMingame is a tower defense game built with Cocos Creator 3.8.6 and TypeScript. Deploy various cat heroes to defend your castle against waves of mouse enemies!
- 11 Unique Cat Heroes - From Orange Cat Archers to Scottish Marksmen
- 8 Ranged Heroes (Physical & Magic shooters)
- 3 Melee Heroes (Knights & Assassins)
- 16 Enemy Types - Including 7 challenging Boss enemies
- 10 Progressive Levels - Unlock all heroes in first 3 levels, face unique bosses in remaining 7
- Unified Projectile System - All heroes attack using projectiles (bullets, magic missiles, shockwaves)
- Pure Tower Defense Mechanics - Heroes never die, enemies never attack heroes
| Gameplay Scene 1 | Gameplay Scene 2 |
|---|---|
![]() |
![]() |
| Tower defense battle in progress | Heroes defending the castle |
| Gameplay Scene 3 | Gameplay Scene 4 |
|---|---|
![]() |
![]() |
| Strategic hero deployment | Wave-based combat system |
Scan to play on WeChat Mini Program
- Cocos Creator 3.8.6 (Required)
- Node.js v16+ (Recommended)
- Clone the repository
git clone https://github.com/yourusername/CatProtectPlanMingame.git
cd CatProtectPlanMingame-
Open the project
- Launch Cocos Creator 3.8.6
- Click "Open Project"
- Select the project directory
-
Run the game
- Click the Preview button in the toolbar
- Or press
Ctrl/Cmd + P
assets/
├── scripts/ # TypeScript source code
│ ├── components/ # Game components
│ │ ├── heroes/ # 11 hero types
│ │ ├── enemies/ # 16 enemy types
│ │ ├── game/ # Game objects (Castle)
│ │ └── ui/ # UI components
│ ├── managers/ # Game managers
│ ├── projectiles/ # Projectile system
│ ├── systems/ # Core systems
│ ├── types/ # Type definitions
│ └── utils/ # Utility functions
├── resources/ # Game resources
│ └── images/ # Sprites and icons
└── scenes/ # Game scenes
- Engine: Cocos Creator 3.8.6
- Language: TypeScript (Strict mode)
- Architecture: Component-based architecture
- Design Patterns: Factory, Singleton, Object Pool
- Target Platforms: Web, Mobile
Heroes are permanent defensive units that:
- Deploy on an 11x6 grid
- Attack enemies using projectiles
- Never die or take damage
- Have unique abilities and attack patterns
Enemies focus on breaking through defenses:
- Move towards the castle
- Damage the castle upon arrival
- Have various abilities (armor, stealth, summoning)
- Never attack heroes (pure tower defense)
- Victory: Survive all waves in a level
- Defeat: Castle health reaches zero
- On defeat, game resets to Level 1
- Development Guide - Comprehensive development documentation
- Component Architecture - System architecture
- Game Mechanics Design - Detailed game design
- Game Balance Design - Balance and difficulty
Contributions are welcome! Please read our Contributing Guide first.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Cocos Creator
- Developed with assistance from Claude AI
- Special thanks to all contributors
- Issues: GitHub Issues
- Discussions: GitHub Discussions
CatProtectPlanMingame 是一款使用 Cocos Creator 3.8.6 和 TypeScript 开发的塔防游戏。部署各种猫咪英雄,保护城堡抵御一波波的鼠群攻击!
- 11种独特的猫咪英雄 - 从橘猫射手到苏格兰折耳猫射手
- 8种远程英雄(物理和魔法射手)
- 3种近战英雄(骑士和刺客)
- 16种敌人类型 - 包含7种具有挑战性的BOSS敌人
- 10关渐进解锁系统 - 前3关解锁所有英雄,后7关面对独特BOSS
- 统一投射物系统 - 所有英雄都使用投射物攻击(子弹、魔法弹、冲击波)
- 纯塔防机制 - 英雄永不死亡,敌人永不攻击英雄
- Cocos Creator 3.8.6(必需)
- Node.js v16+(推荐)
- 克隆仓库
git clone https://github.com/yourusername/CatProtectPlanMingame.git
cd CatProtectPlanMingame-
打开项目
- 启动 Cocos Creator 3.8.6
- 点击"打开项目"
- 选择项目目录
-
运行游戏
- 点击工具栏的预览按钮
- 或按
Ctrl/Cmd + P
assets/
├── scripts/ # TypeScript源代码
│ ├── components/ # 游戏组件
│ │ ├── heroes/ # 11种英雄类型
│ │ ├── enemies/ # 16种敌人类型
│ │ ├── game/ # 游戏对象(城堡)
│ │ └── ui/ # UI组件
│ ├── managers/ # 游戏管理器
│ ├── projectiles/ # 投射物系统
│ ├── systems/ # 核心系统
│ ├── types/ # 类型定义
│ └── utils/ # 工具函数
├── resources/ # 游戏资源
│ └── images/ # 精灵图和图标
└── scenes/ # 游戏场景
- 引擎: Cocos Creator 3.8.6
- 语言: TypeScript(严格模式)
- 架构: 组件化架构
- 设计模式: 工厂模式、单例模式、对象池
- 目标平台: Web、移动端
英雄是永久性防御单位,特点是:
- 部署在11x6网格上
- 使用投射物攻击敌人
- 永不死亡或受到伤害
- 拥有独特能力和攻击模式
敌人专注于突破防线:
- 向城堡移动
- 到达城堡后造成伤害
- 拥有各种能力(护甲、潜行、召唤)
- 永不攻击英雄(纯塔防机制)
- 胜利: 在关卡中生存所有波次
- 失败: 城堡生命值降至零
- 失败后,游戏重置至第1关
欢迎贡献!请先阅读我们的贡献指南。
- Fork 本仓库
- 创建您的特性分支 (
git checkout -b feature/AmazingFeature) - 提交您的更改 (
git commit -m 'Add some AmazingFeature') - 推送到分支 (
git push origin feature/AmazingFeature) - 打开一个 Pull Request
本项目采用 MIT 许可证 - 详见 LICENSE 文件。
- 使用 Cocos Creator 构建
- 在 Claude AI 的协助下开发
- 特别感谢所有贡献者
- 问题反馈: GitHub Issues
- 讨论交流: GitHub Discussions
⭐ 如果这个项目对你有帮助,请给一个 Star!



