All Projects → zhuowenli → luobo

zhuowenli / luobo

Licence: MIT license
🚀 基于Cocos2d-JS重构《保卫萝卜》

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to luobo

GoldMiner
基于 cocos2d-js 的 html5 版黄金矿工游戏
Stars: ✭ 80 (+207.69%)
Mutual labels:  cocos2d-js
funny-billards
一个用 Javascript 写的台球游戏
Stars: ✭ 29 (+11.54%)
Mutual labels:  cocos2d-js

保卫萝卜

该项目完全基于es6开发,可在开发阶段实现自动编译代码,并且集成了热刷新功能。

该仓库通过 Cocos Consolecocos new [project] -l js 创建,并且移除了 frameworks

开发时需要自己手动引入,可以通过 cocos new [project] -l js 创建一个新的工程,然后将该工程下的 frameworks 拷贝过来。

TODO LIST

  • 主页面
  • 关卡选择
  • 游戏关卡

快速入门

# 安装yarn,或者直接使用相对应的 `npm install`、`npm run dev` 等命令。
npm i -g yarn

# 安装依赖
yarn

# 开发模式
yarn dev

yarn dev 执行后,可以直接打开 http://localhost:8080 预览页面。

编译命令

# 编译web版本
yarn build:web

目录结构

.
├── CMakeLists.txt
├── LICENSE
├── README.md
├── index.html
├── main.js                 # 游戏入口文件
├── manifest.webapp
├── package.json            # npm配置文件
├── project.json
└── yarn.lock
├── build                   # 编译配置目录
│   └── webpack.config.js
├── frameworks              # 引擎目录
├── publish                 # 平台包目录
├── src                     # 编译后的项目代码
│   ├── app.js
│   └── app.js.map
├── res                     # 资源目录
├── lib                     # 开发时的项目代码
│   ├── app.js
│   ├── models
│   ├── resource.js
│   └── views
│       └── helloworld.js
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].