feat: complete Style 32 overhaul & Tiled integration fix
- Enforced 'Style 32 - Dark Chibi Vector' for all ground assets. - Fixed critical Prologue-to-Game crash (function renaming). - Implemented Tiled JSON/TMX auto-conversion. - Updated Asset Manager to visualize 1800+ assets. - Cleaned up project structure (new assets/grounds folder). - Auto-Ground logic added to GameScene.js.
This commit is contained in:
@@ -45,10 +45,48 @@ class BootScene extends Phaser.Scene {
|
||||
window.SPRITE_TREE_HEALTHY = 'tree_green_final';
|
||||
window.SPRITE_TREE_BLUE = 'tree_blue_final';
|
||||
window.SPRITE_TREE_DEAD = 'tree_dead_final';
|
||||
window.SPRITE_TREE_DEAD = 'tree_dead_final';
|
||||
window.SPRITE_TREE_SAPLING = 'tree_sapling';
|
||||
|
||||
// Takoj po bootu gremo v PreloadScene
|
||||
this.time.delayedCall(100, () => {
|
||||
// 🌍 GLOBAL FLAGS (Story Registry)
|
||||
if (!window.gameState) window.gameState = {};
|
||||
window.gameState.story = {
|
||||
isAmnesiaActive: true,
|
||||
daysPassed: 0,
|
||||
parentsGhostFound: false,
|
||||
introCompleted: false
|
||||
};
|
||||
console.log('📜 Story Registry Initialized:', window.gameState.story);
|
||||
|
||||
// 🛠️ DEBUG HOOK: Press 'G' for Gallery
|
||||
// Note: BootScene is very short-lived, so we put this here just in case,
|
||||
// but typically input listeners are wiped on scene change.
|
||||
// Better: We rely on PreloadScene to carry us, BUT user asked for BootScene hook.
|
||||
// Since BootScene auto-transitions in 100ms, user has to be VERY fast or we pause.
|
||||
|
||||
// Let's pause auto-transition if user holds G?
|
||||
// Better: Just check directly.
|
||||
const keys = this.input.keyboard.createCursorKeys();
|
||||
// Since we can't reliably catch 'G' in 100ms, let's add it to window and check in PreloadScene?
|
||||
// Or simply: Add a global listener that persists (if possible), or just scene start.
|
||||
|
||||
// Let's make BootScene wait a tiny bit longer or add instruction.
|
||||
// Actually, user said "V BootScene... dodaj tisti hook".
|
||||
|
||||
this.input.keyboard.on('keydown-G', () => {
|
||||
console.log('🖼️ Gallery Shortcut Detected!');
|
||||
// Cancel auto transition
|
||||
this.transitionEvent.remove();
|
||||
this.scene.start('AssetTestScene');
|
||||
});
|
||||
|
||||
// Debug Text
|
||||
this.add.text(10, 10, 'Press G for Asset Gallery', { fontSize: '12px', fill: '#00ff00' }).setDepth(1000);
|
||||
|
||||
// Takoj po bootu gremo v PreloadScene (razen če G)
|
||||
this.transitionEvent = this.time.delayedCall(1500, () => {
|
||||
// Increased delay slightly to 1.5s so user has time to read/press G
|
||||
// This is Development Mode ONLY tweak
|
||||
this.scene.start('PreloadScene');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user