Control a div sprite with Phaser and Typescript
"I thought I’d share a little experiment I’ve been working on. You can use Phaser to control div elements outside of the Phaser’s stage."
"When this post launches you should see a blue arrow ship somewhere in the middle of the page. Use the arrow keys to move the ship around the screen. It should wrap around the edges of the window. If it doesn’t wrap correctly you might need to resize the window. If you don’t see it at all then it’s not working on your browser. Download the code and run it locally to see it."