Save all: Fixed blue screen, VibeVoice audio, Tiled setup
This commit is contained in:
@@ -14,8 +14,8 @@ class TiledTestScene extends Phaser.Scene {
|
||||
|
||||
// Try to load the tilemap
|
||||
try {
|
||||
// Load the micro farm tilemap
|
||||
this.map = this.make.tilemap({ key: 'micro_farm_128x128' });
|
||||
// Load the USER'S NovaFarma tilemap
|
||||
this.map = this.make.tilemap({ key: 'NovaFarma' });
|
||||
console.log(`📐 Map size: ${this.map.width}x${this.map.height} tiles`);
|
||||
console.log(`📐 Tile size: ${this.map.tileWidth}x${this.map.tileHeight}px`);
|
||||
console.log(`📐 Map dimensions: ${this.map.widthInPixels}x${this.map.heightInPixels}px`);
|
||||
@@ -33,7 +33,6 @@ class TiledTestScene extends Phaser.Scene {
|
||||
});
|
||||
|
||||
// Add tilesets - mora biti enako kot v .tmx!
|
||||
// BELEŽKA: Ta imena morajo biti enaka kot v micro_farm_128x128.tmx
|
||||
const tilesets = {};
|
||||
|
||||
// Poskusi dodati tilesets
|
||||
@@ -81,11 +80,8 @@ class TiledTestScene extends Phaser.Scene {
|
||||
|
||||
this.cameras.main.setBounds(0, 0, mapWidth, mapHeight);
|
||||
|
||||
// Zoom out to see the whole 128x128 map
|
||||
// 128 tiles * 48px = 6144px
|
||||
// Typical screen is ~1920x1080
|
||||
// Zoom = 1920 / 6144 ≈ 0.3 (adjust for comfort)
|
||||
const zoomLevel = 0.4;
|
||||
// Zoom IN for small 8x8 map
|
||||
const zoomLevel = 2.0;
|
||||
this.cameras.main.setZoom(zoomLevel);
|
||||
console.log(`📷 Camera zoom set to ${zoomLevel}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user