Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 745 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 745 Bytes

phaser-ts-bun with webpack

To install dependencies:

bun install

To run, webpack and serve server.

bun start

This project was created using bun init in bun v1.1.3. Bun is a fast all-in-one JavaScript runtime.

Architecture

This template uses a component-based architecture.

Adding new components

Adding new components is farily easy, by creating a new folder, and new .ts file in the root/components folder we can easily import it into our index.ts

export class Component extends Phaser.Scene

^ The above, is needed to be able to import it in to our scenes in index.ts

Index.ts

var config = {
    ... // rest of code
    scene: [StartScene, App, NewComponent]
}