This commit is contained in:
2025-12-12 00:13:55 +01:00
parent 158beec572
commit e15b429e75
17 changed files with 482 additions and 202 deletions

View File

@@ -26,7 +26,7 @@ class OceanSystem {
}
update(time, delta) {
if (!this.scene.player) return;
if (!this.scene.player || !this.scene.terrainSystem) return;
const playerPos = this.scene.player.getPosition();
const tile = this.scene.terrainSystem.getTile(playerPos.x, playerPos.y);
@@ -83,6 +83,8 @@ class OceanSystem {
return;
}
if (!this.scene.terrainSystem) return;
// Check if on water or near water?
// Actually, let's allow "deploying" boat anywhere, but only moving fast on water?
// OR: Only allow deploying on water tile.