Closed JSideris closed 2 years ago
A pretty radical idea.
requestAnimationFrame
GameClientPlugin
renderUpdate
DrawEngine
DrawEngine2d
GameObject
Painter2d
A pretty radical idea.
requestAnimationFrame
in theGameClientPlugin
which will send outrenderUpdate
events.DrawEngine
. Move everything intoDrawEngine2d
or elsewhere.DrawEngine2d
to represent the PIXI world. The canvas plugin can still have a reference to it.DrawEngine2d
's lifecycle aroundGameObject
's.Painter2d
can let the current 2D DE know about the creation of objects that it extends.