ActionsMenu WIP
This commit is contained in:
parent
ad2dd1c8d5
commit
fd012d6c69
5 changed files with 80 additions and 3 deletions
|
@ -2,7 +2,7 @@ import type { GameScene } from "../Game/GameScene";
|
|||
import type { PointInterface } from "../../Connexion/ConnexionModels";
|
||||
import { Character } from "../Entity/Character";
|
||||
import type { PlayerAnimationDirections } from "../Player/Animation";
|
||||
import { requestVisitCardsStore } from "../../Stores/GameStore";
|
||||
import { requestVisitCardsStore, requestActionsMenuStore } from "../../Stores/GameStore";
|
||||
|
||||
/**
|
||||
* Class representing the sprite of a remote player (a player that plays on another computer)
|
||||
|
@ -44,7 +44,8 @@ export class RemotePlayer extends Character {
|
|||
|
||||
this.on("pointerdown", (event: Phaser.Input.Pointer) => {
|
||||
if (event.downElement.nodeName === "CANVAS") {
|
||||
requestVisitCardsStore.set(this.visitCardUrl);
|
||||
// requestVisitCardsStore.set(this.visitCardUrl);
|
||||
requestActionsMenuStore.set(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1915,6 +1915,7 @@ ${escapedMessage}
|
|||
}
|
||||
|
||||
const texturesPromise = lazyLoadPlayerCharacterTextures(this.load, addPlayerData.characterLayers);
|
||||
console.log(addPlayerData);
|
||||
const player = new RemotePlayer(
|
||||
addPlayerData.userId,
|
||||
this,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue