{"id":17710600,"url":"https://github.com/gnesher/phaser-capacitor","last_synced_at":"2025-05-12T20:53:48.283Z","repository":{"id":41122890,"uuid":"177452612","full_name":"gnesher/phaser-capacitor","owner":"gnesher","description":"Provides a simple boilerplate for Phaser 3 / Typescript games with the ability to easily deploy to iOS, Android and Desktop ","archived":false,"fork":false,"pushed_at":"2019-05-12T11:14:06.000Z","size":1142,"stargazers_count":32,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-01T03:29:42.454Z","etag":null,"topics":["capacitor","phaser3","typescript"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gnesher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-24T18:23:47.000Z","updated_at":"2024-07-29T10:55:38.000Z","dependencies_parsed_at":"2022-08-26T10:11:35.818Z","dependency_job_id":null,"html_url":"https://github.com/gnesher/phaser-capacitor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnesher%2Fphaser-capacitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnesher%2Fphaser-capacitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnesher%2Fphaser-capacitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnesher%2Fphaser-capacitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnesher","download_url":"https://codeload.github.com/gnesher/phaser-capacitor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253822135,"owners_count":21969806,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["capacitor","phaser3","typescript"],"created_at":"2024-10-25T07:07:08.510Z","updated_at":"2025-05-12T20:53:48.226Z","avatar_url":"https://github.com/gnesher.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Phaser-Capacitor boilerplate\nThis skeleton app allows you to easily develop a Phaser 3 game for iOS / Android / Desktop using the Ionic Capacitor library. It uses Typescript (though can also be written in JS) and Webpack\n\n* Ionic Capacitor is still in Beta and there are some bugs / quirks that are still being ironed out. Head to https://github.com/ionic-team/capacitor to find more about it's current progress.\n\n* important! Electron recently came out with a major release (5) which is still not supported by Capacitor at the moment. \n\n### Installation\nSimply clone or download the repository and then run \n```npm install``` within the folder\n\n### Development\nTo set up a webpack development server simply run ```npm run dev``` you can also run ```npm run build``` to create a production build\n\n### Deployment\nIn order to set up a deployment target simply run ```npx cap add \u003cplatformName\u003e``` where platformName can either be android, ios or electron - directory with the platform name will be created.\n\nonce you've set up your deployment target simply run ```npm run build-\u003cplatformName\u003e``` - for example ```npm run build-android``` this will build the app to the dist folder, copy the files into the Android project and lunch Android Studio. Running an iOS build works similarly just with Xcode\n\n\u003e keep in mind - the build process will fail if you have not installed the necessery software required to develop for your requested platform (Android / iOS). \n\nElectron builds work a little differently as there's no IDE (like Android / Xcode) that is used to run them. Once you run ```npm run build-electron``` simply enter the Electron folder ```cd electron``` and then run ```npm run electron:start``` to have the Electron app start\n\n\u003e If you wish to bundle your Electron app you will need to install a seperate bundler like electron-builder https://github.com/electron-userland/electron-builder. A complete guide can be find in the supplied link and there are additional bundlers you can choose.\n\n\u003e Webpack exposes a global variable called BUILD_TARGET which contains the target platform (ios, android, electron or web) - web is the default when not building for a specific platform\n\n### important\n- While multiple deployment targets are supported different targets (desktop / mobile) will likely require some code changes.\n- This is still a work in progress, comments \u0026 suggestions are welcome\n- Some users reported problems with running the electron app in the first attempt. If you encounter a problem when running ```npm run electron:start``` You might need to run ```npm install``` within the electrong folder first.\n\nGuy N.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnesher%2Fphaser-capacitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnesher%2Fphaser-capacitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnesher%2Fphaser-capacitor/lists"}