AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Wechat mini program dom to canvas8/8/2023 ![]() As this is unlikely to be large enough for your game, you will need to host some resource files on your own server. To improve loading speed, WeChat launches the first-package and a sub-package with a maximum size of 8M. Link: WeChat API & JS SDK Documentation How Do WeChat Mini Programs and Games launch? So it can be better to develop with an engine that knows the limitations of the WeChat development environment and SDK. Also, available storage space, memory and performance are lower than native apps, so be sure to test extensively for crashes.īe aware that WeChat Mini Programs don’t fully use the HTML5 standard. This means you may have problems with some third-party libraries, such as JQuery (which uses the DOM API). Please note that CSS and DOM cannot be used during development of a WeChat Mini Program or Game. About 50% of the Mini Games on WeChat use the Cocos engine, with the second-most popular being Laya (25%).įor now, popular foreign HTML5 game engines such as Phaser.js, Three.js do not offer direct support, but can still be used with adaptations. The three major game engine makers in China support WeChat Mini Games: Cocos Creator, Egret, and Laya. You can also use the JavaScript APIs (application programming interfaces) that the WeChat Mini Games framework supports (Canvas 2D and WebGL) to draw graphics, animations, and do real-time rendering. WeChat Mini Programs only support JavaScript (the main programming language of the Web), but also languages that can be compiled to JavaScript, such as TypeScript and CoffeeScript. How Do You Program a WeChat Mini Program or Game? QR codes for WeChat Mini Programs Games follow a less traditional visual style.
0 Comments
Read More
Leave a Reply. |