Displaying the name of a player above its head (names are not passed through the network yet)
This commit is contained in:
parent
42ddd8b858
commit
0c04d4305b
4 changed files with 24 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue