Git Product home page Git Product logo

pvz's Introduction

pvz

  • 小组:植物大战僵尸组
  • 小组成员:孟庆昊,刘泽铖,黄思蔚

项目描述

总目标

预期实现一个简化版的植物大战僵尸的游戏

需求分析

  1. 游戏模式

    • 普通白天无尽关卡
  2. 支持的游戏内容

    • 僵尸:
      1. 普通僵尸
      2. 路障僵尸
      3. 铁桶僵尸
    • 植物:
      1. 豌豆射手
      2. 向日葵
      3. 寒冰射手
      4. 双发射手
      5. 坚果墙
      6. 樱桃炸弹
  3. 技术细节

    • 通过点击植物栏,更换光标状态
    • 再点击地图,更改地图的状态
    • 设计相应的类,检测豌豆和僵尸的碰撞 等等

开发工具

名称 工具
版本控制 git,github
构建工具 qmake
编程语言 c++ 17
设计模式 MVVM
图形界面 Qt 5.14
文档 Markdown

分工与安排

分工

<style> table th:first-of-type { width: 200px; } table th:first-of-type(2){ width=300px; } </style>
姓名 分工
孟庆昊 common层,管理项目
黄思蔚 model层与viewmodel层
刘泽铖 view层,以及部分的model层

安排

迭代轮次 内容
第一轮 主界面的生成,点击按钮跳转到关卡地图中
第二轮 设计common层中的类,并且可以点击种植植物
第三轮 完成游戏逻辑,生成僵尸,采集阳光

架构说明

common层

  • common类,作为基类,有一些基本的属性
  • plant类,代表植物,继承自common
  • zombie类,代表僵尸,继承自common
  • shootpea类,代表被发射出去的豌豆,继承自common

view层(目前未单独分离出来,后续会改进)

  • 展示地图,植物栏
  • 种植物的时候将植物展示在地图上

model层

  • 存储地图以及植物栏的数据
  • 接受鼠标的点击

viewmodel层

  • 鼠标点击植物栏,再点击地图,来种植物
  • 根据点击的植物不同,将不同的植物种在地图上相应的位置

pvz's People

Contributors

fantasyswind avatar miku03090831 avatar hswerror avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.