building setup
This commit is contained in:
16
choco.lua
16
choco.lua
@@ -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
|
||||
Reference in New Issue
Block a user