GithubHelp home page GithubHelp logo

fruitguess's Introduction

水果猜猜猜

水果猜猜猜是使用 cocos2d-js v3.2 开发的一款游戏,有 android 版和 IOS 版。游戏下载地址: http://game.allenice233.com/fruitguess/

运行

水果猜猜猜使用 grunt 构建,所以需要 nodejs 的运行环境,并安装 grunt。

# clone 或直接下载 zip 包
git clone [email protected]:Allenice/fruitguess.git

# 创建 cocos2d-js 游戏
cd fruitguess
mkdir game
cd game
cocos new fruitguess -l js -d ./

# 返回上层目录,fruitguess
cd ..

# 安装 npm 包
npm install

# 初始化项目
grunt init

运行 grunt init 后,游戏就可以运行了,打开 game/fruitguess/index.html 查看游戏。注意一定要运行在 http 服务器。

开发

修改代码时,请执行 grunt 任务

grunt

navtive 相关

游戏集成了分享、广告、统计这三个跟 native 相关的功能。这部分的代码没有开源出来是因为涉及到敏感数据。其实 js 调用 native 代码页很简单,只是用 jsb.reflection.callStaticMethod 这个方法就完成了,具体使用请参考:

至于哪个功能要用哪一家的 SDK, 这个自己决定。一般这些 sdk 文档都比较详细,所以我这里也不写了。

fruitguess's People

Contributors

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