Skip to content

Commit

Permalink
wisp moves with other player
Browse files Browse the repository at this point in the history
  • Loading branch information
insulationman committed Sep 1, 2023
1 parent 711b167 commit e293518
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Scenes/Game/OrustScene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export default class OrustScene extends Phaser.Scene {
private house!: GameObjects.GameObject;
private websocket!: WebSocket;
private lastUpdate = 0;
private ghost!: GameObjects.Sprite;
private ghostObject!: Ghost;
private ghost!: Ghost;

preload() {
this.cameras.main.setBackgroundColor("#696969");
Expand Down Expand Up @@ -68,7 +67,7 @@ export default class OrustScene extends Phaser.Scene {

create() {
this.player = new Player(this, 300, 500);
this.ghostObject = new Ghost(this, 300, 500, "wispspritesheet");
this.ghost = new Ghost(this, 300, 500, "wispspritesheet");
this.initMap();
this.initGhost();

Expand Down

0 comments on commit e293518

Please sign in to comment.