What is WeChat:
WeChat is more than a messaging and social media app – it is a lifestyle for one billion users across the world.
What is WeChat Mini Game:
The Mini Game is a brand new game application developed on the WeChat platform,which can be used without downloading and installing. It embodies the concept of “finish and go” and fully saves the memory space of user’s mobile phone.
There are some examples in sketch directory.
Only need very a few changes from the original p5.js example.
p5.we contains “weapp-p5js-adapter“, which is the key to port p5.js on WeChat Mini Game.
WeChat has a basic “weapp-adapter” example.
The WeChat Mini Game only support one
canvas to draw, created at wx.createCanvas() firstly called. If you call wx.createCanvas() multiple times, the canvas except the first one are all
offscreen, they can’t be shown on screen directly.
However, p5.js will create a default canvas firstly itself on start (and the renderer is
So if you want
WEBGL renderer, you could hack the p5.js source code and change the default canvas from
WEBGL. And better solutions PR are welcome~