Save all: Fixed blue screen, VibeVoice audio, Tiled setup

This commit is contained in:
2025-12-27 02:11:06 +01:00
parent 6a01731de0
commit 41fc635f3a
8 changed files with 322 additions and 35 deletions

View File

@@ -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}`);