How does this still work? Why does it improve performance so much???¿¿

This commit is contained in:
2024-09-16 16:22:45 +02:00
parent 5bd0ffd2e1
commit 799cf3a69c
4 changed files with 63 additions and 57 deletions

View File

@ -7,7 +7,7 @@
<Objects />
<ZoneSettings />
<TeleportModal v-if="shouldShowTeleportModal" />
<TilemapLayerC :tilemap="zoneTilemap as Tilemap" :tileset="tileArray as any" :layerIndex="0" :cull-padding="10" />
<!-- <TilemapLayerC :tilemap="zoneTilemap as Tilemap" :tileset="tileArray as any" :layerIndex="0" :cull-padding="3" />-->
<Controls :layer="tiles as TilemapLayer" />
<Container :depth="2">

View File

@ -1,5 +1,5 @@
<template>
<TilemapLayer :tilemap="zoneTilemap" :tileset="tileArray" :layerIndex="0" :cull-padding="10" />
<!-- <TilemapLayer :tilemap="zoneTilemap" :tileset="tileArray" :layerIndex="0" :cull-padding="0" />-->
<Controls :layer="tiles" :depth="0" />
</template>

View File

@ -62,7 +62,13 @@ const gameConfig = {
name: 'New Quest',
width: window.innerWidth,
height: window.innerHeight,
type: Phaser.AUTO,
type: Phaser.AUTO, // AUTO, CANVAS, WEBGL, HEADLESS
render: {
pixelArt: true,
antialias: true,
roundPixels: true
},
banner: false, // Disable Phaser banner
resolution: 5,
pixelArt: true
}