Git Product home page Git Product logo

loredalert's Introduction

###Unity开发版本

Unity 5.1.2


###开发语言

C#


###实现功能

  • 视角控制

    • 按下方向键或鼠标停靠在屏幕边缘进行屏幕滚动;
    • 滚动鼠标滚轮拉近拉远视角;
    • 按下鼠标右键滑动鼠标来旋转视角。
  • 建筑系统

    • 资源足够情况下可以点击建造建筑的按钮;
    • 点击相应的建筑按钮等待冷却结束会出现相应的建筑;
    • 鼠标决定建造位置;
    • 建筑物底部网格绘制;
    • 建筑物简单地功能实现。
  • 作战单位

    • 按下鼠标左键滑动鼠标框选多个目标;
    • 左键点击作战单位选中一个目标;
    • 鼠标右键点击地面使当前目标移动。

###代码框架

  • ** CameraController 摄像机控制器 **

实现摄像机移动、缩放和旋转功能

  • ** GameController 游戏控制器 **

控制游戏中一些

  • ** BuildingController 建筑物控制器 **

主要实现建筑物建造

  • ** Building 建筑物 **

建筑物的价格大小等一些共同的属性; 建筑物中销毁、建造、出售等共同的方法。

  • ** Wood 木材厂 **

木材厂每秒生产木材

  • ** Factory 工厂 **

实现提升金币和木材生产效率

  • ** Keng 矿坑 **

每秒生产金币

  • ** Barrack 兵营 **

实现士兵的创建


###开发**

每个建筑物都有 Building 脚本,同时还有专门实现自己功能的脚本,采用聚合**实现建筑物功能


loredalert's People

Contributors

applexiaohao avatar

Watchers

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