Live demo available here
This example is based on the Phaser 3 TypeScript Template, with few modifications:
- Added react react-dom @types/react @types/react-dom
- Added "jsx": "react" to tsconfig.json
- Added
<div id="react"></div><div id="phaser"></div>
to index.html - Renamed files which are using React to .tsx
Bugs:
- [SOVLED in #1361] When the Keyboard in open on a mobile phone, the Game resizes
- [SOVLED in #1656] Don't know how to make something similar to this (
this.input.setTopOnly(true)
) work
The MIT License (MIT) 2019 - Yannick Deubel. Please have a look at the LICENSE for more details.