dipsywong98 / photosynthesis

Board game Photosynthesis

Home Page:http://dipsywong98.github.io/photosynthesis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fix replay game

dipsywong98 opened this issue · comments

currently will be very laggy and construct a new gameworld instance
if have time need test rejoin, should be working now if no accident

@dipsywong98 I currently have no way of destructing GameWorld. However, GameWorld can be reset. Do not simply drop the reference to a GameWorld instance, as ECS will keep on running and Three JS resources are not deallocated.

If it can pause animation frame and don't consume computation power when invisible I am fine

Also need to find a way to make the automatic testing work again

@dipsywong98 gameWorld.world.stop() will pause systems. We'll need to find a way to pause this when nothing is happening in the canvas in the future.

done