Giter Site home page Giter Site logo

flychess's Introduction

flychess

编译方式: 1.下载 Cocos Creator,https://www.cocos.com/creator/

2.网页试运行,点击cocos creator的->菜单->项目->运行预览.

3.原生编译:

1).iOS -> 点击cocos creator的->菜单->项目->构建发布->选中构建平台ios->点击构建->等待完成->点击发布路径的打开-> build/jsb-link/frameworks/runtime-src/proj.ios_mac/flychess.xcodeproj -> 打开项目并用xcode编译.

4.文件构成:

assets目录:

animate目录,使用动画编辑器做的动画。

images目录,普通的图片资源,包括背景图,棋子。

scripts目录:

Chessboard.js  //棋盘脚本,棋子在图中的运动逻辑主要在这里。

Chesspiece.js  //棋子脚本,主要存数据结构。

Common.js  //通用数据。

Game.js  //游戏数据调度逻辑及启动后的初始化工作运行脚本。

GameControl.js   //游戏底部面板及骰子的逻辑在这里。

Netdata.js  //网络版后游戏的传输数据结构。

Player.js   //玩家相关的数据及逻辑,包括玩家各自的跑道数据。

功能:

1.点击开始启动新一轮游戏

2.点击骰子处自己局投一次骰子

3.点击机器人他人局投一次筛子

flychess's People

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.