https://iliyazelenko.github.io/phaser3-snake-cordova/
Install the dependencies (yarn is recomended):
yarn # Or npm install
Platforms are automatically restored from package.json and config.xml when the 'cordova prepare' command is run.
cordova prepare
Easy development in HMR (Hot Module Replacement) mode:
yarn dev # Or npm run dev
Perform a build (bundle.js) in www
folder with copy assets and html page from src.
yarn build # Or npm run build
Run on real device:
cordova run android --device
Run on emulator (virtual device):
cordova run android
Run on specific emulator:
# shows list of devices
cordova run android --list
# specify device
cordova run android --target "Nexus_4_API_26"
- Phaser.Game
- Phaser.Scene
- Phaser.GameObject.Image
- Phaser.GameObject.Sprite
- Phaser.GameObject.Group
- Phaser.GameObject.Mesh