1
0
forked from noxious/client

Removed scale, added resolution to game config and phaser text obj

This commit is contained in:
Dennis Postma 2024-09-25 14:03:04 +02:00
parent 2a8d75b459
commit 5f44a9aebd
2 changed files with 2 additions and 7 deletions

View File

@ -165,6 +165,7 @@ const createChatBubble = (container: Phaser.GameObjects.Container) => {
const createChatText = (text: Phaser.GameObjects.Text) => {
text.setName(props.character?.name + '_chatText')
text.setResolution(10)
text.setFontSize(13)
text.setFontFamily('Arial')
}

View File

@ -59,13 +59,7 @@ const gameConfig = {
width: window.innerWidth,
height: window.innerHeight,
type: Phaser.AUTO, // AUTO, CANVAS, WEBGL, HEADLESS
scale: {
mode: Phaser.Scale.RESIZE,
autoCenter: Phaser.Scale.CENTER_BOTH,
width: window.innerWidth,
height: window.innerHeight
},
resolution: 2,
resolution: 10,
pixelArt: true
}