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) => {
|
const createChatText = (text: Phaser.GameObjects.Text) => {
|
||||||
text.setName(props.character?.name + '_chatText')
|
text.setName(props.character?.name + '_chatText')
|
||||||
|
text.setResolution(10)
|
||||||
text.setFontSize(13)
|
text.setFontSize(13)
|
||||||
text.setFontFamily('Arial')
|
text.setFontFamily('Arial')
|
||||||
}
|
}
|
||||||
|
@ -59,13 +59,7 @@ const gameConfig = {
|
|||||||
width: window.innerWidth,
|
width: window.innerWidth,
|
||||||
height: window.innerHeight,
|
height: window.innerHeight,
|
||||||
type: Phaser.AUTO, // AUTO, CANVAS, WEBGL, HEADLESS
|
type: Phaser.AUTO, // AUTO, CANVAS, WEBGL, HEADLESS
|
||||||
scale: {
|
resolution: 10,
|
||||||
mode: Phaser.Scale.RESIZE,
|
|
||||||
autoCenter: Phaser.Scale.CENTER_BOTH,
|
|
||||||
width: window.innerWidth,
|
|
||||||
height: window.innerHeight
|
|
||||||
},
|
|
||||||
resolution: 2,
|
|
||||||
pixelArt: true
|
pixelArt: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user