diff --git a/src/board/BuildingTile.svelte b/src/board/BuildingTile.svelte
index db46fad..1465665 100644
--- a/src/board/BuildingTile.svelte
+++ b/src/board/BuildingTile.svelte
@@ -5,3 +5,4 @@
{ building.name }
+{ building.level }
diff --git a/src/board/Outside.svelte b/src/board/Outside.svelte
new file mode 100644
index 0000000..aa8839d
--- /dev/null
+++ b/src/board/Outside.svelte
@@ -0,0 +1,48 @@
+
+
+
+
+ { #each getKeysAsNumbers($village.outsideTiles) as y }
+
+ { #each getKeysAsNumbers($village.outsideTiles[y]) as x }
+ { #if $village.outsideTiles[y][x] >= 0 }
+ openBuildingPanel($village.outsideTiles[y][x]) }
+ >
+
+
+ { :else if $village.outsideTiles[y][x] === VILLAGE_TILE }
+ gameTab.set('village') }
+ />
+ { /if }
+ { /each }
+
+ { /each }
+
+
+
+
diff --git a/src/board/Village.svelte b/src/board/Village.svelte
index 386d8fa..b5bbba0 100644
--- a/src/board/Village.svelte
+++ b/src/board/Village.svelte
@@ -1,6 +1,5 @@
{ #if $showBuildingCreator !== null }
@@ -29,10 +31,10 @@
- { #each Object.entries(buildings) as [type, building] }
+ { #each constructible as building }
{ building.name }
-
+
{ /each }
diff --git a/src/hud/Game.svelte b/src/hud/Game.svelte
index 8530829..64e81bb 100644
--- a/src/hud/Game.svelte
+++ b/src/hud/Game.svelte
@@ -6,6 +6,10 @@
import BuildingCreator from "./BuildingCreator.svelte";
import Resources from "./Resources.svelte";
import BuildingPanel from "./BuildingPanel.svelte";
+ import Outside from "../board/Outside.svelte";
+ import Navigation from "./Navigation.svelte";
+ import type { GameTab } from "../types";
+ import gameTab from "../stores/gameTab";
onMount(() => {
@@ -21,14 +25,23 @@
cancelAnimationFrame(frame);
}
});
+
+ function setTab(newTab: GameTab) {
+ gameTab.set(newTab);
+ }
-
+
+ { #if $gameTab === 'village' }
+ { :else if $gameTab === 'resources' }
+
+ { /if }