All Projects → samme → phaser-parcel

samme / phaser-parcel

Licence: other
A Phaser 3 game template using Parcel bundler

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to phaser-parcel

phaser-jam-template
A Phaser Template to kick off your Game Jam with everything you need. Typescript, code quality, building for itch, various input methods, examples, bootloader, preloader, main game, end screen, credits screen and license screen.
Stars: ✭ 18 (-71.87%)
Mutual labels:  phaser, phaser-boilerplate, phaser3
phaser3-typescript-starter-kit
This repository contains the code necessary to start making a game in Phaser 3 using TypeScript.
Stars: ✭ 94 (+46.88%)
Mutual labels:  phaser, phaser-boilerplate, phaser3
phaser-typescript-webpack
Another Phaser CE boilerplate using TypeScript and Webpack.
Stars: ✭ 17 (-73.44%)
Mutual labels:  phaser, phaser-boilerplate
phaser3-simple-rpg
A simple Phaser3 RPG using Typescript ⚔️
Stars: ✭ 80 (+25%)
Mutual labels:  phaser, phaser3
phaser-3-palette-swapping-example
Example of using palette swapping on a spritesheet in Phaser 3.
Stars: ✭ 32 (-50%)
Mutual labels:  phaser, phaser3
phaser-boilerplate
Phaser Boilerplate
Stars: ✭ 15 (-76.56%)
Mutual labels:  phaser, phaser-boilerplate
phaser-ui-comps
Phaser 3 UI Components built by Adobe Animate
Stars: ✭ 60 (-6.25%)
Mutual labels:  phaser, phaser3
Phaser3.Boilerplate
Phaser 3 Boilerplate project for rapid development.
Stars: ✭ 15 (-76.56%)
Mutual labels:  phaser, phaser-boilerplate
ts-phaser-bomb-game
Bomberman clone using websockets and phaser 3
Stars: ✭ 18 (-71.87%)
Mutual labels:  phaser, phaser3
mmo-arch
Base Architecture for creating scalable games using microservices through Angular, Phaser, NestJS, NATS, and MySQL
Stars: ✭ 25 (-60.94%)
Mutual labels:  phaser, phaser3
phaser-starter
Minimal starter project to get a Phaser game environment up and running with ease.
Stars: ✭ 73 (+14.06%)
Mutual labels:  phaser, phaser-boilerplate
phaser3-webpack-es6-dev-starter
Development set up for Phaser 3, Webpack, and ES6.
Stars: ✭ 44 (-31.25%)
Mutual labels:  phaser, phaser3
phaser3-faq
A guide to Phaser 3
Stars: ✭ 69 (+7.81%)
Mutual labels:  phaser, phaser3
template
使用 phaser3 + es6 + webpack4.8.1 配置开发游戏(基本模版)
Stars: ✭ 12 (-81.25%)
Mutual labels:  phaser, phaser3
Opensc2k
OpenSC2K - An Open Source remake of Sim City 2000 by Maxis
Stars: ✭ 4,753 (+7326.56%)
Mutual labels:  phaser, phaser3
phaser-plugin-game-scale
Scale or resize the game canvas. Phaser v3.15 only
Stars: ✭ 35 (-45.31%)
Mutual labels:  phaser, phaser3
phaser3-typescript-template
A Phaser 3 TypeScript Template
Stars: ✭ 30 (-53.12%)
Mutual labels:  phaser-boilerplate, phaser3
Cavemen-GGJ2019
A multiplayer survival game developed during Global Game Jam 2019.
Stars: ✭ 21 (-67.19%)
Mutual labels:  phaser, phaser3
marthas rescue shooter game
This is a shooter game featuring Martha, a battle aircraft pilot who's trying to rescue her father. In this app, you will be able to help her by shooting and destroying the enemy's aircraft. Built with Javascript and Phaser 3.
Stars: ✭ 31 (-51.56%)
Mutual labels:  phaser3
ionic4-phaser3-template
Ionic 4 and phaser 3 template
Stars: ✭ 19 (-70.31%)
Mutual labels:  phaser3

Phaser 3 with Parcel

This is a simple Phaser game template using Parcel. Most common transformations (CoffeeScript, Babel/Flow, TypeScript) work “out of the box”.

Use

# If you don't have Parcel, install it:
npm install -g parcel-bundler

# Clone or download this repo or its template <https://github.com/samme/phaser-parcel/generate>
# From the project directory, install:
npm install

# Auto-compile and run dev server:
npm run start

# Compile for production:
npm run build

You can edit these scripts in package.json to suit your needs. See:

Game assets

Static assets used in your JavaScript must be imported:

import space from './assets/space.png'; // -> './space.89e3a46b.png'
// OR
import images from './assets/*.png'; // -> { space: './space.89e3a46b.png', … }

See BootScene for an example.

If you prefer, you can use a plugin to copy static assets instead.

Package aliasing

You can use package.alias to specify an alternative Phaser build, e.g.,

{
  "name": "my-phaser-game",
  "alias": {
    "phaser": "./node_modules/phaser/src/phaser-arcade-physics.js"
  }
}

Custom Phaser

See the imports branch.

Hot reload

When 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.

If you don't like hot reload at all, you can turn it off:

parcel serve src/index.html --no-hmr

More Phaser with Parcel

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].