aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-27 17:53:11 +0100
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2024-01-28 04:12:46 +0100
commite49e3073c67af785447ddb0ecbdc521b68cf3ea9 (patch)
tree6eb641e4aaa6e86c2767aba1093a54b541c52164 /src/game
parentdb3ee0d63620bd42f27a6b359f0996df927481dd (diff)
downloadjancity-e49e3073c67af785447ddb0ecbdc521b68cf3ea9.tar.gz
Add unit sprites
Diffstat (limited to 'src/game')
-rw-r--r--src/game/src/res.c36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/game/src/res.c b/src/game/src/res.c
index f38443e..dead212 100644
--- a/src/game/src/res.c
+++ b/src/game/src/res.c
@@ -73,6 +73,42 @@ static const struct container c[] =
.type = CONTAINER_TYPE_SPRITE,
.data.sprite = &terrain_sprites[GRASS]
},
+
+ {
+ .path = "unit1",
+ .type = CONTAINER_TYPE_SPRITE,
+ .data.sprite = &unit_sprites[UNIT_1_SPRITE]
+ },
+
+ {
+ .path = "unit2",
+ .type = CONTAINER_TYPE_SPRITE,
+ .data.sprite = &unit_sprites[UNIT_2_SPRITE]
+ },
+
+ {
+ .path = "unit3",
+ .type = CONTAINER_TYPE_SPRITE,
+ .data.sprite = &unit_sprites[UNIT_3_SPRITE]
+ },
+
+ {
+ .path = "unit4",
+ .type = CONTAINER_TYPE_SPRITE,
+ .data.sprite = &unit_sprites[UNIT_4_SPRITE]
+ },
+
+ {
+ .path = "unit5",
+ .type = CONTAINER_TYPE_SPRITE,
+ .data.sprite = &unit_sprites[UNIT_5_SPRITE]
+ },
+
+ {
+ .path = "unit6",
+ .type = CONTAINER_TYPE_SPRITE,
+ .data.sprite = &unit_sprites[UNIT_6_SPRITE]
+ }
};
static bool init;