Display correctly the username on Brave browser

This commit is contained in:
Alexis Faizeau 2022-01-24 16:55:58 +01:00
parent ad2dd1c8d5
commit 4829964127

View File

@ -88,6 +88,11 @@ export abstract class Character extends Container {
fontSize: "8px",
strokeThickness: 2,
stroke: "gray",
metrics: {
ascent: 20,
descent: 10,
fontSize: 35,
},
});
this.playerName.setOrigin(0.5).setDepth(DEPTH_INGAME_TEXT_INDEX);
this.add(this.playerName);