NJUCS 2021 年秋季学期《高级程序设计》课程项目:基于 Qt 实现的简单塔防小游戏,现有可供下载的 Demo
采用了Qt的Graphics View
框架
---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
direction LR
MainWindow <--> Game
Game *-- Statistic
Game *-- Map
Map o-- Shop
Map o-- Enemy
Map o-- Tower
GameItem <|-- Tower
GameItem <|-- Enemy
Tower --> InfoPanel
Tower --> Bullet
style MainWindow fill:#3647AD
style Game fill:#008A7C
style Statistic fill:#008A7C
style Map fill:#008A7C
style GameItem fill:#008A7C
direction TB
Tower <|-- GunTower
Tower <|-- LaserTower
Tower <|-- MissileTower
Tower <|-- Bomb
Tower <|-- Repeller
Tower <|-- SawTooth
Tower <|-- Shield
direction TB
Enemy <|-- BlackWarrior
Enemy <|-- FallenWarrior
Enemy <|-- Ghost
Enemy <|-- CowardPlane
Enemy <|-- Dragon
Enemy <|-- RobotSoldier
Enemy <|-- Shaman
Enemy <|-- Spirit
4张地图,7种防御塔和8种敌人
- 游戏内
ESC
返回主菜单,F5
暂停 游戏平衡做的稀巴烂 (仅为课设完成度)
- Qt >= 5.12
- Ubuntu
build-essential
&cmake
qt5-default
,qtmultimedia5-dev
- Windows