Skip to content

twopmstudios/twopm-phaser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forked from https://github.com/geocine/phaser3-rollup-typescript

Not many changes yet, updated dependencies and intergrated butler for publishing on itch.io. I will be working towards a functional programming inspired architecture with an event-driven design (via rxjs).

Public build of this project is available at https://twopm.itch.io/set-phasers-to-fun

Original README below:



header
Phaser 3 TypeScript Starter

This is a Phaser 3 starter with TypeScript, Rollup for bundling and nollup as development server.

Available Commands

Command Description
yarn install Install project dependencies
yarn dev Builds project and open web server, watching for changes
yarn build Builds code bundle with production settings (minification, no source maps, etc..)
yarn start Run a web server to serve built code bundle

Development

After cloning the repo, run yarn install from your project directory. Then, you can start the local development server by running yarn dev.

After starting the development server with yarn dev, you can edit any files in the src folder and nollup will automatically recompile and reload your browser (available at http://localhost:8080 by default).

The development server makes use of nollup which makes hot reload very fast.

Production

After running yarn build, the files you need for production will be on the dist folder. To test code on your dist folder, run yarn start and navigate to http://localhost:5000