Skip to content

Flying-Tom/TDGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TDGame

GPLv3 License Version Windows Release Ubuntu Release

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

Loading

4张地图,7种防御塔和8种敌人

  • 游戏内ESC返回主菜单,F5暂停
  • 游戏平衡做的稀巴烂 (仅为课设完成度)

游戏截图

level1.png level2.png
level3.png level4.png

编译环境

  • Qt >= 5.12
  • Ubuntu
    • build-essential & cmake
    • qt5-default, qtmultimedia5-dev
  • Windows

About

NJUCS 2021 秋季学期<高级程序设计>课设

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages