nope
This commit is contained in:
parent
7decfe721f
commit
c336d45261
2 changed files with 9 additions and 6 deletions
|
@ -16,7 +16,7 @@ local gfx <const> = playdate.graphics
|
||||||
local disp <const> = playdate.display
|
local disp <const> = playdate.display
|
||||||
local font <const> = gfx.font.new("gfx/big")
|
local font <const> = gfx.font.new("gfx/big")
|
||||||
|
|
||||||
local dev = false
|
dev = false
|
||||||
|
|
||||||
gfx.setFont(font)
|
gfx.setFont(font)
|
||||||
gfx.setBackgroundColor(gfx.kColorBlack)
|
gfx.setBackgroundColor(gfx.kColorBlack)
|
||||||
|
|
|
@ -77,14 +77,17 @@ function updateSaws()
|
||||||
end
|
end
|
||||||
|
|
||||||
for spinner = 1, #spinblades, 1 do
|
for spinner = 1, #spinblades, 1 do
|
||||||
|
for arm = 1, spinblades[spinner].arms do
|
||||||
for armlen = 1, spinblades[spinner].armlen do
|
for armlen = 1, spinblades[spinner].armlen do
|
||||||
for blade = 1, #spinblades[spinner].blades do
|
for blade = 1, #spinblades[spinner].blades do
|
||||||
spinblades[spinner].time += spinblades[spinner].speed
|
spinblades[spinner].time += spinblades[spinner].speed
|
||||||
local newpos = {x=math.sin(math.rad(spinblades[spinner].time)) * 20 * armlen,y=math.cos(math.rad(spinblades[spinner].time)) * 20 * armlen}
|
local degrees = spinblades[spinner].time / 360 * arm
|
||||||
|
local newpos = {x=math.sin(math.rad(degrees)) * 20 * armlen,y=math.cos(math.rad(degrees)) * 20 * armlen}
|
||||||
spinblades[spinner].blades[blade]:moveTo(spinblades[spinner].mid.x + newpos.x, spinblades[spinner].mid.y + newpos.y)
|
spinblades[spinner].blades[blade]:moveTo(spinblades[spinner].mid.x + newpos.x, spinblades[spinner].mid.y + newpos.y)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function killBlades()
|
function killBlades()
|
||||||
|
|
Loading…
Reference in a new issue