Closed quinton-ashley closed 5 months ago
This would be useful for creating authoritative multiplayer servers with p5play.
This feature will be implemented via a flag like p5play.physicsOnly = true. It will prevent p5.js canvas rendering functions from being called.
p5play.physicsOnly = true
For now, the npm canvas package would need to be used: https://www.npmjs.com/package/canvas
This can now be done by using noCanvas() in setup, disabling sprite drawing allSprites.autoDraw = false, and not attempting to draw anything else to the canvas.
noCanvas()
setup
allSprites.autoDraw = false
This would be useful for creating authoritative multiplayer servers with p5play.
This feature will be implemented via a flag like
p5play.physicsOnly = true
. It will prevent p5.js canvas rendering functions from being called.For now, the npm canvas package would need to be used: https://www.npmjs.com/package/canvas