image

Orta Therox published some handy notes on using Phaser with Redux: "I've built a few games now with Phaser, and I think I've found a generally good mental groove for writing easily tested TypeScript games. In rough, user inputs trigger redux actions, which updates state, and optionally triggering UI Updates from the game renderer.

Oddly enough, for some of the games I'm making I want to avoid tying too closely to the game engine. There's a non-zero possibility that it will need to render the same game but in more than just a canvas ( e.g. a static svg) and so I want to keep as much logic in 'plain old JS' - this disconnect of 'game' from 'renderer' is not a foreign concept (games working with openGL vs DirectX comes to mind) but this introduces a really important seam for composition and testing."

Read More