Coder Social home page Coder Social logo

gdoudeng / hellowasm Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 7.0 0 B

wasm for cocos2dx

Shell 0.01% JavaScript 0.18% C++ 80.51% Python 0.86% C 4.68% Objective-C 1.56% Java 1.31% Lua 8.14% PowerShell 0.02% Objective-C++ 1.69% Makefile 0.21% HTML 0.02% CMake 0.58% GLSL 0.23% AIDL 0.01%

hellowasm's Introduction

经过一段时间的实践和测试,我已经成功地将cocos2dx游戏转换为微信小游戏,并在这个过程中遇到了不少问题。现在,我想分享我的经验并开源我的代码,以便更多的人能够参与进来,共同协作改进,填补漏洞。希望这个仓库能够引起大家的关注,为cocos2dx转换为微信小游戏的过程提供有益的帮助。

目前只支持cocos2dx 3.17.2版本的转换,下面是环境搭建流程:
1. 安装emsdk,然后切换到2.0.34版本

2. 安装指定版本cocos2dx 
https://github.com/WuJiayiSH/cocos2d-x

3. 编译 python3 
wasmtools/buildWasm.py release

4. 新建一个资源服务器,并指向webroot路径,然后使用微信开发者工具打开工程,并修改 js/libs/cocosPlugin.js里面的Module.CNDUrl变量.

为了方便大家交流,可以加qq群: 15973429 

hellowasm's People

Contributors

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