13 lines
245 B
Lua
13 lines
245 B
Lua
coins = {}
|
|
|
|
function spawnCoin(x, y)
|
|
local coin = {}
|
|
coin.x = x
|
|
coin.y = y
|
|
|
|
coin.grid = anim8.newGrid(41, 42, 123, 126)
|
|
coin.animation = anim8.newAnimation(coin.grid('1-3', 1, '1-3', 2, '1-2', 3), 0.1)
|
|
|
|
table.insert(coins, coin)
|
|
end
|