aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-12 22:51:01 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-12 23:19:03 +0200
commit08c26de540f711ec888a46a922c1f4b89386d8c6 (patch)
tree4196538302b97e3cf9888713461e958a6c1a197c /src/game
parent5226dc466354cd15dd50b3c11660db7cb38eabed (diff)
downloadjancity-08c26de540f711ec888a46a922c1f4b89386d8c6.tar.gz
camera: remove dependency against terrain
This will allow using camera for purposes other than showing the game map.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/src/game.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/src/game.c b/src/game/src/game.c
index 3c03dd5..dc3d55b 100644
--- a/src/game/src/game.c
+++ b/src/game/src/game.c
@@ -28,6 +28,12 @@ int game(void)
{
.sel_periph = PERIPHERAL_TYPE_KEYBOARD_MOUSE,
.padn = i,
+ .dim =
+ {
+ .w = MAP_W,
+ .h = MAP_H,
+ },
+
.pl =
{
.team = PLAYER_COLOR_BLUE,