# Game does not display correctly when published

**URL:** <https://phaser.discourse.group/t/game-does-not-display-correctly-when-published/10039>\
**Category:** Phaser 3\
**Created:** [July 30, 2021, 6:53am UTC](https://phaser.discourse.group/t/game-does-not-display-correctly-when-published/10039 "2021-07-30T06:53:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@Steve](https://phaser.discourse.group/u/Steve)\
**Post date:** [July 30, 2021, 6:53am UTC](https://phaser.discourse.group/t/game-does-not-display-correctly-when-published/10039/1 "2021-07-30T06:53:35Z")

</div>

Hi

I’ve got my game uploaded to itch but it does not display correctly. The text does not show in the correct places while the sprites do show in the correct places. The first screen shot shows how the game looks on my own development server and the second screen shot shows what happens when I attempt to play the game loaded on to itch. It seems to only affect the y position of the text and the larger the font the more pronounced the error.  
 ![image1](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/f/fc4cd225b3753be59189037d18a582dbec51de53.png)

![image2](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/8/8d4b7d8b8d7337c16ac38583e8a78d48823aac2c.png)

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [July 30, 2021, 2:35pm UTC](https://phaser.discourse.group/t/game-does-not-display-correctly-when-published/10039/2 "2021-07-30T14:35:40Z")

</div>

What’s your code for the text?

---

<div class="post-metadata">

**Author:** ![Steve](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@Steve](https://phaser.discourse.group/u/Steve)\
**Post date:** [July 30, 2021, 10:09pm UTC](https://phaser.discourse.group/t/game-does-not-display-correctly-when-published/10039/3 "2021-07-30T22:09:14Z")

</div>

import Phaser from ‘phaser’  
import { textStyle } from ‘./TextStyle’

export default class TitleScreen extends Phaser.Scene  
{  
constructor()  
{  
super(Keys.Scene\_Title)  
}

```
 create()
 {
     this.add.text(0, 0, 'some text at 0, 0')
     this.title(textStyle)
 }

  title(textStyle)
 {
     const textMessage = 'Mario\nBreak Out \n '
     textStyle.fontSize = '64px'
     textStyle.strokeThickness = 4.5
     textStyle.align = "center"
     const textDisplayed = this.add.text(256, 260, textMessage, textStyle).setOrigin(0.5)
 }

```

}

I’ve noticed that if I enlarge the text size it seems to push the display further down the screen. Also the x position does not changed only y. ‘some text at 0, 0’ should be at the top left corner. Setting this text larger pushes it down the screen further.

---

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [July 31, 2021, 3:16pm UTC](https://phaser.discourse.group/t/game-does-not-display-correctly-when-published/10039/4 "2021-07-31T15:16:30Z")

</div>

Have you tested in different browsers?

You can try adding [text metrics](https://labs.phaser.io/edit.html?src=src/game%20objects%5Ctext%5Ctext%20metrics.js), which you can find in the text object that’s displayed correctly.

---

<div class="post-metadata">

**Author:** ![Steve](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@Steve](https://phaser.discourse.group/u/Steve)\
**Post date:** [August 1, 2021, 11:57am UTC](https://phaser.discourse.group/t/game-does-not-display-correctly-when-published/10039/5 "2021-08-01T11:57:25Z")

</div>

I tested it in Microsoft Edge and it worked. I’ve been using Brave to make the game. I tried the text metrics as you described and it worked. So it seems that the problem is with the Brave browser, it needs the extra metrics information to get the game to show correctly when using Brave.

---

<div class="post-metadata">

**Author:** ![Telinc1](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/telinc1/32/60_2.png) [@Telinc1](https://phaser.discourse.group/u/Telinc1)\
**Post date:** [August 1, 2021, 12:10pm UTC](https://phaser.discourse.group/t/game-does-not-display-correctly-when-published/10039/6 "2021-08-01T12:10:16Z")

</div>

> [@Steve](#):
>
> So it seems that the problem is with the Brave browser

More specifically, [it’s this issue](https://github.com/photonstorm/phaser/issues/5625), related to Brave’s privacy features.
