Coder Social home page Coder Social logo

tankwar's Introduction

TankWar

以siki老师的游戏原理为基础,对siki老师的项目进行重构使其更加面向对象。坦克大战 教程

主要类介绍

1、GameFramework 控制游戏的每一帧图像的生产。

2、GameObejctManager 工具类 管理游戏对象:比如游戏对象的存储、游戏对象的创建、绘制、碰撞检测。

3、GameObject 抽象类 所有游戏对象的父类,定义基本属性(坐标、长/宽度、图片)

4、StaticObjec 所有不可移动对象的父类。

5、MovableObject 所有可移动对象的父类。

6、TankImages 用于管理所有的游戏对象要使用的图片。

7、MapTypes 用于存储不同地图数组数据。

类结构图

image

todolist

1、按键监听线程与游戏线程存在资源冲突。(游戏运行中会抛出异常:System.InvalidOperationException) 2、如何不使用函数实现属性 getter setter的重载。

tankwar's People

Contributors

searchd avatar

Watchers

 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.