PICO-8
1 program
Added 2025-11-07T11:08:58Z
Model: google/gemini-2.5-proTemp: 0.4
Evidence
Report issue
View issues
Aliases: —
Provenance: commit 67e96a641d · authored 2025-11-07T12:08:58+01:00 · model google/gemini-2.5-pro
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Sparks (A simple particle system)
Provenance: commit 67e96a641d · authored 2025-11-07T12:08:58+01:00 · model google/gemini-2.5-pro · Temp 0.4
-- sparks
-- by zep
--
-- a simple particle system
-- global table to store particles
parts={}
-- make a particle
function make_part(x,y,c)
local p = {
x=x, y=y,
c=c,
dx=rnd(2)-1,
dy=rnd(2)-1,
life=10+rnd(10)
}
add(parts,p)
end
function _update()
-- make new particles at mouse
if (btn(0)) then
for i=1,3 do
make_part(stat(32),stat(33),7+rnd(2))
end
end
-- update particles
for p in all(parts) do
p.x+=p.dx
p.y+=p.dy
p.life-=1
if (p.life < 0) del(parts,p)
end
end
function _draw()
cls()
for p in all(parts) do
pset(p.x,p.y,p.c)
end
end