Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
A jam submission

Sunflower [PICO8 1k Jam]View game page

PICO-8 golden ratio sunflower spiral graphical demo
Submitted by retroredge — 19 days, 20 hours before the deadline
Add to collection

Play game

Sunflower [PICO8 1k Jam]'s itch.io page

Compressed 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.

Comments

Submitted(+1)

I get dizzy … but I can’t stop looking at it 😂 Even the code is understandable … great job.

Developer(+1)

Thank you :)

Submitted (1 edit) (+1)

Nice looking demo! I like the effects it makes when you make the circles huge, haha!

Developer

Thank you for the feedback :)

Submitted(+1)

This is very nice. Really good job. 

Developer (1 edit)

Thank you for your kind words :)

HostSubmitted(+1)

Cool spiralling demo. 🌌
The use of multicoloured spots works well to add layers of optical illusions.
Nice entry 👍

Developer

Thanks Paul :)

Submitted(+1)

Very hypnotising! Cool patterns, can sit and watch this for a while!

Developer

Thank you for the nice feedback :)