From e49e3073c67af785447ddb0ecbdc521b68cf3ea9 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 27 Jan 2024 17:53:11 +0100 Subject: Add unit sprites --- src/game/src/res.c | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'src/game') 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; -- cgit v1.2.3