Add apple icon
This commit is contained in:
BIN
assets/game.png
BIN
assets/game.png
Binary file not shown.
|
Before Width: | Height: | Size: 368 KiB After Width: | Height: | Size: 368 KiB |
File diff suppressed because one or more lines are too long
@@ -316,6 +316,7 @@ typedef enum EntityType {
|
||||
ENTITY_WORKER,
|
||||
ENTITY_WOOD,
|
||||
ENTITY_STONE,
|
||||
ENTITY_APPLE,
|
||||
ENTITY_GOLD,
|
||||
ENTITY_POP,
|
||||
ENTITY_COUNT,
|
||||
@@ -336,8 +337,9 @@ static EntityType getEntityTile(EntityType type) {
|
||||
case ENTITY_WORKER: return 27;
|
||||
case ENTITY_WOOD: return 7424;
|
||||
case ENTITY_STONE: return 7425;
|
||||
case ENTITY_GOLD: return 7426;
|
||||
case ENTITY_POP: return 7427;
|
||||
case ENTITY_APPLE: return 7426;
|
||||
case ENTITY_GOLD: return 7427;
|
||||
case ENTITY_POP: return 7428;
|
||||
default: return -1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -335,11 +335,13 @@ static void renderGame(Game *game, float dt) {
|
||||
BzTileset *tileset = &game->tileset;
|
||||
Rectangle woodRec = bzTilesetGetTileRegion(tileset, getEntityTile(ENTITY_WOOD));
|
||||
Rectangle stoneRec = bzTilesetGetTileRegion(tileset, getEntityTile(ENTITY_STONE));
|
||||
Rectangle foodRec = bzTilesetGetTileRegion(tileset, getEntityTile(ENTITY_APPLE));
|
||||
Rectangle goldRec = bzTilesetGetTileRegion(tileset, getEntityTile(ENTITY_GOLD));
|
||||
Rectangle popRec = bzTilesetGetTileRegion(tileset, getEntityTile(ENTITY_POP));
|
||||
uiGameResCount(100, -1, woodRec, tileset->tiles);
|
||||
uiGameResCount(100, -1, stoneRec, tileset->tiles);
|
||||
uiGameResCount(100, -1, goldRec, tileset->tiles);
|
||||
uiGameResCount(100, -1, foodRec, tileset->tiles);
|
||||
uiGameResCount(250, -1, goldRec, tileset->tiles);
|
||||
uiGameResCount(25, 100, popRec, tileset->tiles);
|
||||
bzUIPopParent(UI);
|
||||
|
||||
|
||||
BIN
rawAssets/Apple.png
Normal file
BIN
rawAssets/Apple.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 450 B |
Binary file not shown.
|
Before Width: | Height: | Size: 368 KiB After Width: | Height: | Size: 368 KiB |
@@ -5507,10 +5507,20 @@
|
||||
"type":"string",
|
||||
"value":""
|
||||
}],
|
||||
"type":"gold"
|
||||
"type":"apple"
|
||||
},
|
||||
{
|
||||
"id":7427,
|
||||
"properties":[
|
||||
{
|
||||
"name":"entity",
|
||||
"type":"string",
|
||||
"value":""
|
||||
}],
|
||||
"type":"gold"
|
||||
},
|
||||
{
|
||||
"id":7428,
|
||||
"properties":[
|
||||
{
|
||||
"name":"entity",
|
||||
|
||||
@@ -1971,12 +1971,17 @@
|
||||
<property name="entity" value=""/>
|
||||
</properties>
|
||||
</tile>
|
||||
<tile id="7426" type="gold">
|
||||
<tile id="7426" type="apple">
|
||||
<properties>
|
||||
<property name="entity" value=""/>
|
||||
</properties>
|
||||
</tile>
|
||||
<tile id="7427" type="pop">
|
||||
<tile id="7427" type="gold">
|
||||
<properties>
|
||||
<property name="entity" value=""/>
|
||||
</properties>
|
||||
</tile>
|
||||
<tile id="7428" type="pop">
|
||||
<properties>
|
||||
<property name="entity" value=""/>
|
||||
</properties>
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user