This is a sample project. It was created with cordova and phaser. It uses webpack and @flow.
In order to build and run this project follow the further steps. It should be relevant for MacOS and Linux.
- nodejs v18.6.0
- npm v8.13.2
- cordova 11 (
npm install -g cordova
)
- Clone repo to your pc.
git clone https://github.com/DmitryGolovin-azur/cordova-phaser-solitaire.git
cd cordova-phaser-solitaire
- Install the dependencies.
npm i
- Add platform and build it.
cordova platform add browser # android/ios
- Build
cordova build browser # android/ios
- Run
cordova run browser # android/ios
# cordova run browser -- -livereload # run with livereload
Known issue: There is a problem with audio on IOS. It may be fixed with Cordova's plugin cordova-plugin-media
.