Skip to content

Instantly share code, notes, and snippets.

@nucleartide
Created November 13, 2018 16:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nucleartide/7c6eb989643feab829ef7a2f62d84dc7 to your computer and use it in GitHub Desktop.
Save nucleartide/7c6eb989643feab829ef7a2f62d84dc7 to your computer and use it in GitHub Desktop.
You thought you liked breakfast...
u=64
x,y=u,u
es={}
c=circfill
f=abs
q=3
g=0
p=cos
o=sin
function _update()
if(btn(0))x-=1
if(btn(1))x+=1
if(btn(2))y-=1
if(btn(3))y+=1
if(btnp(4)and f(x-u)<23 and f(y-u)<23)add(es,{x,y,0})end
function _draw()cls()r=rnd
for i=.05,1,.05 do
c(u+25*p(i)+r(),u+25*o(i)+r(),2,7)
c(u+28*p(i)+r(),u+28*o(i)+r(),2,12)
c(u+30*p(i)+r(),u+30*o(i)+r(),1,13)end
for i=0,3 do
line(20+i,108+i,u+i,u+i,6)end
c(u,u,25,5)c(u,u,23,6)
for i=1,#es do
e=es[i]
e[3]+=1
a,b,d=e[1],e[2],e[3]
c(a,b,11,d>300 and 0 or d>150 and 4 or 7)
c(a,b,10,d>300 and 5 or 7)
c(a,b,3,d>300 and 4 or d>150 and 10 or 9)end
c(x,y,3,15)end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment