forked from noxious/client
Removed scale, added resolution to game config and phaser text obj
This commit is contained in:
parent
2a8d75b459
commit
5f44a9aebd
@ -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')
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user