Giter Site home page Giter Site logo

minigame-demo's Introduction

微信小游戏示例

微信小游戏示例源码,欢迎扫描以下小程序码体验。

提示:请使用微信开发者工具或微信客户端 6.7.2 及以上版本运行。


导入项目与配置

  1. 克隆微信小游戏示例源码
git clone https://github.com/wechat-miniprogram/minigame-demo.git

  1. 进行导入,填写开发者自己的小游戏 AppID(注意,因涉及到云开发相关功能,不能使用测试AppID)


  1. 此示例demo使用了小程序云开发,所依赖的云开发环境搭建请参考 云开发示例说明

目录结构

.
├── cloudfunction               // 云函数目录      
├── miniprogram                 // 运行示例dome目录
│   ├── images                  // icon目录
│   ├── js             
│   │   ├── api                 // API示例目录 
│   │   │   ├── abilityOpen     // 开放能力
│   │   │   ├── facility        // 设备
│   │   │   ├── media           // 媒体
│   │   │   └── network         // 网络
│   │   ├── errMsg              // 错误提示目录
│   │   └── libs                // PIXI.js
│   ├── workers                 // 多线程文件目录
│   ├── game.js        
│   ├── game.json 
│   ├── test.zip 
│   └── TheSenom-2.ttf   
├── readmeImages            
├── .eslintrc.js  
├── CLOUD_REAMDE.md 
├── project.config.json              
└── README.md   

注意

  1. 目录里面的所有view.js仅用于UI绘制,开发者不需要关心。
  2. 如需正常运行网络相关功能,请开MP配置合法域名或打开“调试模式”。
  3. 使用手机预览时请在“详情”把“上传时进行代码保护”给剔除掉。

使用

使用微信开发者工具打开该示例代码。

截图

minigame-demo's People

Contributors

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