This commit is contained in:
2026-01-16 02:43:46 +01:00
parent bc2225ad64
commit 3ae8d39f9c
218 changed files with 87850 additions and 353 deletions

View File

@@ -18,12 +18,31 @@ class GameScene extends Phaser.Scene {
this.townRestorationSystem = null;
}
preload() {
// 🎨 STYLE 32 ASSET PIPELINE (SMOOTH 512px)
// Loading the new high-res vector assets
// Load Kai (Style 32 - Smooth)
this.load.image('player_style32', 'assets/sprites/smooth/kai_main.png');
// Load Backgrounds (Style 32 - Noir)
this.load.image('bg_farm', 'assets/sprites/smooth/kai_style32.png'); // Using farm mockup as BG for now
this.load.image('bg_town', 'assets/sprites/smooth/town_style32.png'); // Using town mockup
// Load UI/Zombie Assets (Style 32)
this.load.image('zombie_miner', 'assets/sprites/smooth/mine_style32.png'); // Placeholder till we slice
console.log('✨ Style 32 Smooth Assets Loaded');
}
async create() {
console.log('🎮 GameScene: Initialized!');
// 🖼️ SETUP BACKGROUND (Direct Farm Image)
// Checks 'farm_background' (from Phase 1) or fallback 'intro_chaos'
const bgKey = this.textures.exists('farm_background') ? 'farm_background' : 'intro_chaos';
// Checks 'farm_background' (from Phase 1) or fallback 'bg_farm' (New Style 32)
const bgKey = this.textures.exists('bg_farm') ? 'bg_farm' :
this.textures.exists('farm_background') ? 'farm_background' : 'intro_chaos';
if (this.textures.exists(bgKey)) {
this.add.image(0, 0, bgKey)
.setOrigin(0, 0)