ok
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user