Coder Social home page Coder Social logo

luobo's Introduction

保卫萝卜

该项目完全基于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

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.