feat: add poc

This commit is contained in:
Juan Sebastián Montoya 2026-01-06 14:02:09 -05:00
parent 43d27b04d9
commit 4a4fa05ce4
53 changed files with 6191 additions and 0 deletions

27
src/world/World.js Normal file
View file

@ -0,0 +1,27 @@
/**
* World manager - handles areas and world state
*/
export class World {
constructor() {
this.areas = [];
this.currentArea = null;
this.areas.push({
id: 'cave',
name: 'Dark Cave',
type: 'cave',
spawnTypes: ['humanoid', 'beast', 'elemental'],
spawnRate: 0.5
});
this.currentArea = this.areas[0];
}
getCurrentArea() {
return this.currentArea;
}
getSpawnTypes() {
return this.currentArea ? this.currentArea.spawnTypes : ['beast'];
}
}