Displaying the name of a player above its head (names are not passed through the network yet)

This commit is contained in:
David Négrier 2020-05-01 23:38:09 +02:00
parent 42ddd8b858
commit 0c04d4305b
4 changed files with 24 additions and 11 deletions

View file

@ -31,9 +31,10 @@ export class Player extends PlayableCaracter implements CurrentGamerInterface, G
Scene: GameSceneInterface,
x: number,
y: number,
name: string,
PlayerValue: string = Textures.Player
) {
super(Scene, x, y, PlayerValue, 1);
super(Scene, x, y, PlayerValue, name, 1);
//create input to move
this.userInputManager = new UserInputManager(Scene);