building setup

This commit is contained in:
bozarre
2025-12-28 20:12:18 +01:00
parent 35b8ce3ef5
commit 0f79131bd9
2 changed files with 62 additions and 29 deletions

View File

@@ -19,9 +19,9 @@ end
ressources =
{
fruits =
fruit =
{
quantity = 5,
quantity = 55,
sprite = 33,
x = 70
},
@@ -33,8 +33,16 @@ ressources =
},
jam =
{
quantity = 0,
quantity = 100,
sprite = 34,
x = 100
}
}
}
function draw_ressource_bar()
rectfill(0, 0, 127, 7, 1)
for _,res in pairs(ressources) do
spr(res.sprite, res.x, 0)
print(res.quantity, res.x + 8, 1, 6)
end
end