My PixiJS game template has keyboard support now, including the ability to temporarily disable the keyboard during scene transitions like the old game template... So you can pause by pressing P. Now I need to decide how scenes are going to handle adding/removing their actors from the stage in a consistent understandable way. Probably move all actor management into mount() and unmount() or something. Scenes can individually decide if they need to unmount the previous scene before mounting themselves (sometimes you want to add onto a scene rather than replace it, which is why the previous scene isn't destroyed when changing scenes in the first place).
I'm still trying to decide what game I'm going to make when I'm satisfied with the new template. I want it to be relatively simple so I can complete it within a week or two, like my old games. Currently considering Snake but it'd require a virtual keyboard for mobile support (like Rodent's Revenge has) so if I can think of something more touch-oriented then I'll probably change my mind.
#blog #pixijs #javascript