initial commit

This commit is contained in:
2026-05-15 18:12:55 +02:00
commit 0e06d5eefa
11 changed files with 1271 additions and 0 deletions

13
src/entities/Platform.ts Normal file
View File

@@ -0,0 +1,13 @@
import Phaser from "phaser";
export class Platform extends Phaser.GameObjects.Rectangle {
static readonly COLOR = 0x4a7c3a;
declare body: Phaser.Physics.Arcade.StaticBody;
constructor(scene: Phaser.Scene, x: number, y: number, width: number, height: number) {
super(scene, x, y, width, height, Platform.COLOR);
scene.add.existing(this);
scene.physics.add.existing(this, true);
}
}