{"id":13782298,"url":"https://github.com/samme/phaser-parcel","last_synced_at":"2025-10-25T03:31:11.383Z","repository":{"id":59639752,"uuid":"142339121","full_name":"samme/phaser-parcel","owner":"samme","description":"A Phaser 3 game template using Parcel bundler","archived":false,"fork":false,"pushed_at":"2023-10-03T18:42:17.000Z","size":1917,"stargazers_count":74,"open_issues_count":0,"forks_count":21,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-01-31T05:33:19.411Z","etag":null,"topics":["coffeescript","es6","phaser","phaser-boilerplate","phaser3","typescript"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-07-25T18:33:01.000Z","updated_at":"2024-05-29T10:53:10.000Z","dependencies_parsed_at":"2024-01-07T00:08:24.159Z","dependency_job_id":null,"html_url":"https://github.com/samme/phaser-parcel","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-parcel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-parcel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-parcel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samme%2Fphaser-parcel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samme","download_url":"https://codeload.github.com/samme/phaser-parcel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238075254,"owners_count":19412302,"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":["coffeescript","es6","phaser","phaser-boilerplate","phaser3","typescript"],"created_at":"2024-08-03T18:01:34.945Z","updated_at":"2025-10-25T03:31:06.057Z","avatar_url":"https://github.com/samme.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized","Examples"],"sub_categories":["Uncategorized"],"readme":"Phaser 3 with Parcel\n====================\n\nThis is a simple Phaser game template using [Parcel](https://parceljs.org). Most common transformations ([CoffeeScript](https://parceljs.org/coffeeScript.html), [Babel/Flow](https://parceljs.org/javascript.html), [TypeScript](https://parceljs.org/typeScript.html)) work “out of the box”.\n\nUse\n---\n\n```sh\n# If you don't have Parcel, install it:\nnpm install -g parcel-bundler\n\n# Clone or download this repo or its template \u003chttps://github.com/samme/phaser-parcel/generate\u003e\n# From the project directory, install:\nnpm install\n\n# Auto-compile and run dev server:\nnpm run start\n\n# Compile for production:\nnpm run build\n```\n\nYou can edit these scripts in [package.json](./package.json) to suit your needs. See:\n\n- [Parcel: Getting Started](https://parceljs.org/getting_started.html)\n- [Parcel: Production](https://parceljs.org/production.html)\n- [Parcel: CLI](https://parceljs.org/cli.html)\n\nGame assets\n-----------\n\nStatic assets used in your JavaScript must be imported:\n\n```javascript\nimport space from './assets/space.png'; // -\u003e './space.89e3a46b.png'\n// OR\nimport images from './assets/*.png'; // -\u003e { space: './space.89e3a46b.png', … }\n```\n\nSee [BootScene](./src/BootScene.js) for an example.\n\nIf you prefer, you can [use a parcel plugin to copy static assets](https://github.com/elwin013/parcel-plugin-static-files-copy 'parcel-plugin-static-files-copy') instead. You **must** copy [file pack](https://newdocs.phaser.io/docs/3.60.0/focus/Phaser.Loader.LoaderPlugin-pack) and [multitexture atlas](https://newdocs.phaser.io/docs/3.60.0/focus/Phaser.Loader.LoaderPlugin-multiatlas) assets using a plugin. See the [static-files-copy branch](https://github.com/samme/phaser-parcel/tree/static-files-copy).\n\nPackage aliasing\n----------------\n\nYou can use [package.alias](https://parceljs.org/module_resolution.html#aliasing) to specify an alternative Phaser build, e.g.,\n\n```json\n{\n  \"name\": \"my-phaser-game\",\n  \"alias\": {\n    \"phaser\": \"./node_modules/phaser/src/phaser-arcade-physics.js\"\n  }\n}\n```\n\nSee the [phaser-src branch](https://github.com/samme/phaser-parcel/tree/phaser-src).\n\nCustom Phaser\n-------------\n\nSee the [imports branch](https://github.com/samme/phaser-parcel/tree/imports).\n\n\nHot reload\n----------\n\nWhen running the dev server the game is destroyed and then recreated after you save changes to your files. Rarely, this can fail. Just refresh the browser.\n\nIf you don't like [hot reload](https://parceljs.org/hmr.html) at all, you can turn it off:\n\n```sh\nparcel serve src/index.html --no-hmr\n```\n\nMore Phaser with Parcel\n-----------------------\n\n- [phaser3-parcel-template](https://github.com/ourcade/phaser3-parcel-template)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamme%2Fphaser-parcel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamme%2Fphaser-parcel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamme%2Fphaser-parcel/lists"}