Code Monkey home page Code Monkey logo

wx-phaser-cli's Introduction

目录结构

    .
    ├── build // webpack 配置目录
    │   └── webpack.config.js
    ├── dist // 小游戏的根目录
    │   ├── assets
    │   ├── game.js
    │   ├── game.json
    │   ├── main.js
    │   └── vendor.js
    ├── node_modules
    ├── package-lock.json
    ├── package.json
    └── src  //小游戏源代码目录
        ├── assets  //小游戏 静态资源目录
        │   ├── atlas // tiled 资源
        │   ├── images // 图片资源
        │   └── media // 音频视频资源
        ├── game.js  //小游戏必备文件(建议不要编辑此文件)
        ├── game.json //小游戏必备配置文件
        ├── js  //小游戏 js 部分
        │   └── states //场景 js
        │       ├── BootState.js
        │       ├── GameState.js
        │       └── PreloadState.js
        ├── libs //phaser及工具
        │   ├── phaser-wx.js
        │   └── weapp-adapter.js
        └── main.js  //游戏入口(代码入口)

使用说明

phaser -h

Example

step1:

$ phaser example
$ cd phaser-plane
$ npm run dev

step2:

打开微信小程序开发工具,将 dist 目录作为根目录添加到开发工具中(配置小程序appid)

step3:

微信开发工具编译运行

wx-phaser-cli's People

Contributors

coolnuanfeng avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

linecode z2014

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.