54 lines
No EOL
1 KiB
Markdown
54 lines
No EOL
1 KiB
Markdown
{{{
|
|
"planted": "10/24/2020",
|
|
"repotted": "1/4/2026",
|
|
"nobreak": "true"
|
|
}}}
|
|
|
|
* My first #tweetcart! Trying out some lighting
|
|
(not included: generating the screen by calling help)
|
|
#pico8
|
|
(source in thread)
|
|
|
|

|
|
|
|
<div class="code"><p>
|
|
b=0🐱={10,9,4,2,1,0}m=mset
|
|
memcpy(0,6<<12,8192)::_::s=sin
|
|
cls()sspr(0,0,128,128)c=cos
|
|
for d=0,1,.01do
|
|
h=t()/16x=c(h)*s(2*h)*32+64y=s(h)*c(h)*32+64
|
|
❎=c(d)⧗=s(d)
|
|
i=0while i<30do
|
|
p=sget(x,y)
|
|
if(p!=b)i+=6goto l
|
|
pset(x,y,🐱[(i+rnd(3))\5+1])::l::
|
|
y+=⧗
|
|
i+=1x+=❎
|
|
end
|
|
end
|
|
flip()goto _
|
|
</p></div>
|
|
|
|
<div class="code"><p>
|
|
--Mouse!
|
|
poke(0x5f2d,1)🐱={10,9,4,2,1,0}m=mset
|
|
s=sin
|
|
c=cos
|
|
memcpy(0,6<<12,8192)::_::
|
|
cls()sspr(0,0,128,128)
|
|
for d=0,1,.01do
|
|
x=stat(32)y=stat(33)
|
|
❎=c(d)⧗=s(d)
|
|
i=0while i<30do
|
|
p=sget(x,y)
|
|
if(p!=0)i+=4goto l
|
|
pset(x,y,🐱[(i+rnd(3))\5+1])::l::
|
|
x+=❎
|
|
y+=⧗
|
|
i+=1
|
|
end
|
|
end
|
|
flip()goto _
|
|
</p></div>
|
|
|
|
* just realized I had a bunch of deprecated lines in there that could be removed -- oops! These could probably be cut down to 240 characters, not that it matters too much. |