Skip to content
/ Phaser-TS-Bun Public template

A Phaser 3 (TS) teamplate using Bun as package manager.

Notifications You must be signed in to change notification settings

Aloxion/Phaser-TS-Bun

Repository files navigation

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]
}

About

A Phaser 3 (TS) teamplate using Bun as package manager.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published