Skip to content

PixelRPG/phaser-3-version

Repository files navigation

PixelPRG Engine (Phaser 3 version)

Phaser + Typescript + Esbuild + Javelin (ECS)

splitscreen.mp4

This is an experimental 2D engine designed for SNES style RPG games. Currently I'm trying to find out which engine is best suited for this and meets my requirements. For this there is an alternative attempt build in Excalibur + Built-in ECS

Example

The ECS automatically detects the number of players and initializes the splitscreen accordingly. If you want to try the example with less players you can simply edit the world.ts and comment out the other players.

Before

this.spawnPlayer({ name: "Player 1", playerNumber: 1 });
this.spawnPlayer({ name: "Player 2", playerNumber: 2 });
this.spawnPlayer({ name: "Player 3", playerNumber: 3 });
this.spawnPlayer({ name: "Player 4", playerNumber: 4 });

After

this.spawnPlayer({ name: "Player 1", playerNumber: 1 });
this.spawnPlayer({ name: "Player 2", playerNumber: 2 });

Build

Required engine:
node: >=16
npm: >=7

git clone https://github.com/PixelRPG/phaser-3-version.git
cd phaser-3-version
git submodule update --init --recursive
npm install
# Build each package in this workspace
npm run build
# Start the example game
npm run start

Tools