dodelani dnevnik
This commit is contained in:
27
src/systems/ExpansionSystem.js
Normal file
27
src/systems/ExpansionSystem.js
Normal file
@@ -0,0 +1,27 @@
|
||||
class ExpansionSystem {
|
||||
constructor(scene) {
|
||||
this.scene = scene;
|
||||
this.unlockedZones = ['FARM_START']; // List of IDs
|
||||
this.islandsDiscovered = [];
|
||||
console.log('🌍 ExpansionSystem: Initialized');
|
||||
}
|
||||
|
||||
// Preveri, če je igralec v dovoljeni coni
|
||||
checkAccess(x, y) {
|
||||
// TODO: Map coordinates to Zone ID
|
||||
return true;
|
||||
}
|
||||
|
||||
unlockZone(zoneId) {
|
||||
if (!this.unlockedZones.includes(zoneId)) {
|
||||
this.unlockedZones.push(zoneId);
|
||||
console.log('🔓 Zone Unlocked:', zoneId);
|
||||
// TODO: Remove fog/barrier
|
||||
}
|
||||
}
|
||||
|
||||
travelToIsland(islandId) {
|
||||
console.log('🚤 Traveling to:', islandId);
|
||||
// TODO: Load island map / scene
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user