I get dizzy … but I can’t stop looking at it 😂 Even the code is understandable … great job.
Play game
Sunflower [PICO8 1k Jam]'s itch.io pageCompressed Bytes used
312
Source Code (OPTIONAL)
-- sunflower
-- by retroredge,v0.1,2024
function _init()
n=0
f=0.618
d=0.00002
r=1
end
function _draw()
cls()
for i=1,n do
local l=i/n
local a=(3.14*f*i)
local x=(l*cos(a))*64
local y=(l*sin(a))*64
circfill((64)+x,(64)+y,r,c(i))
end
end
function _update()
if (n<501) n+=1
f=f+d
if (btnp(⬅️) and r>0) r-=1
if (btnp(➡️) and r<11) r+=1
end
function c(i)
if i%3==0 then
return 10
elseif i%5==0 then
return 11
elseif i%7==0 then
return 8
else
return 12
end
end
Leave a comment
Log in with itch.io to leave a comment.