Git Product home page Git Product logo

aircraftwar's Introduction

AirCraft

本项目名为“空战英豪”,是一款基于MVC架构的Java空战射击游戏。

MVC是Model View Controller的缩写,所谓的MVC架构把复杂的程序分成Model(模型)、View(视图)、Controller(控制器)三个部分,各部分的功能相互独立,实现了高内聚低耦合的设计理念。

  • Model(模型)部分主要负责游戏元素的生成,通过读取配置文件加载需要的游戏资源,并根据需要创建游戏对象。
  • View(视图)部分主要负责游戏元素在界面的显示,当Model中的游戏元素发生改变时,也会View中相应地显示出来。
  • Controller(控制器)部分主要负责游戏状态的监听,通过读取玩家的键盘输入可以控制英雄的行为以及游戏的状态(开始、暂停、结束)。

aircraftwar's People

Contributors

veggieorz 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.