Skip to content

Instantly share code, notes, and snippets.

@formatt-c
Last active October 31, 2020 12:40
Show Gist options
  • Save formatt-c/d6c4163d9b9c2e5c4d66db889fd99723 to your computer and use it in GitHub Desktop.
Save formatt-c/d6c4163d9b9c2e5c4d66db889fd99723 to your computer and use it in GitHub Desktop.
--direct link (copy-paste link in next line in your url bar, ignore rest)
https://gifboy.io/egg=%7B%7D%0Aegg%5B1%5D=%5B%5B%0A%20%20%20%20%20%20%200%200%0A%20%20%20%20%20%20%20000000%0A%20%20%20%20%200077777700%0A%20%20%20%20077777777770%0A%20%20%20%20077777777770%0A%20%20%2007777707770770%0A%20%20%2007777707770770%0A%20%200888776077706780%0A%20%200777877777777780%0A%20%200776887777777880%0A%20%200776888888888880%0A%20%200228888888888820%0A%20%200115555555555550%0A%20%2001555555555553BB0%0A%20%2001111100001533440%0A%20%20%2004BB0%20%20%20%20003440%0A%20%20%20%20000%20%20%20%20%20%20%20000%0A%5D%5D%0Aegg%5B2%5D=%5B%5B%0A%20%20%20%20%20%20%200%200%0A%20%20%20%20%20%20%20000000%0A%20%20%20%20%200077777700%0A%20%20%20%20077777777770%0A%20%20%20%20077777777770%0A%20%20%2007777707770770%0A%20%20%2007777707770770%0A%20%200888776077706780%0A%20%200888877777777780%0A%20077788877777778860%0A%20077788888888888860%0A%20077628888888888260%0A%20%200115555555555550%0A%20%200555555555555550%0A%20%20%2005555500111110%0A%20%20%2003BB30%20%20033440%0A%20%20%20%200000%20%20%20%200000%0A%5D%5D%0Aegg%5B3%5D=%5B%5B%0A%20%20%20%20%20%20%200%200%0A%20%20%20%20%20%20%20000000%0A%20%20%20%20%200077777700%0A%20%20%20%20077777777770%0A%20%20%20%20077777777770%0A%20%20%2007777707770770%0A%20%20%2007777707770770%0A%20%2008887760777067800%0A%200188887777777778770%0A07778888777777788670%0A07778888888888888670%0A0776288888888888200%0A%2000115555555555550%0A%20%20%20055553BB155550%0A%20%20%20%20015334411110%0A%20%20%20%20%200034404330%0A%20%20%20%20%20%20%20000%20000%0A%5D%5D%0Aegg%5B4%5D=egg%5B2%5D%0A%0Ai=1%0Abg=27%0Amaxframes(128)%0Ascale(6,6)%0A%0Afunction%20draw()%0A%20%20bg=bg-.5%0A%20%20clear(12)%0A%20%20--sky%0A%20%20circlefill(22,6,2,7)%0A%20%20rectfill(20,7,5,2,12)%0A%20%20linedash(3,4,frames()/6)%0A%20%20line(0,2,27,2,7)%0A%20%20linedash(1,0)%0A%20%20--ground%0A%20%20line(0,24,27,24,0)%0A%20%20rectfill(0,25,27,2,3)%0A%20%20--background%20blocks%0A%20%20rectfill(bg,5,12,20,9)%0A%20%20point(bg+9,7,0)%0A%20%20rect(bg,5,12,20,0)%0A%20%20point(bg,5,6)%0A%20%20line(bg,6,bg,23,5)%0A%20%20rectfill(bg+11,15,8,10,13)%0A%20%20point(bg+16,17,0)%0A%20%20rect(bg+11,15,8,10,0)%0A%20%20--little%20flower%0A%20%20point(bg+14,13,0)%0A%20%20point(bg+14+2,13,0)%0A%20%20point(bg+14+1,14,0)%0A%20%20--eggboy%0A%20%20sprite(egg%5Bi%5D,20,3,7)%0A%20%20if%20frames()%258==0%20then%20i=i+1%20if%20i%3E4%20then%20i=1%20end%20end%0Aend.html
---
--FULL Source
--sprite graphics by grafxkid / opengameart
egg={}
egg[1]=[[
0 0
000000
0077777700
077777777770
077777777770
07777707770770
07777707770770
0888776077706780
0777877777777780
0776887777777880
0776888888888880
0228888888888820
0115555555555550
01555555555553BB0
01111100001533440
04BB0 003440
000 000
]]
egg[2]=[[
0 0
000000
0077777700
077777777770
077777777770
07777707770770
07777707770770
0888776077706780
0888877777777780
077788877777778860
077788888888888860
077628888888888260
0115555555555550
0555555555555550
05555500111110
03BB30 033440
0000 0000
]]
egg[3]=[[
0 0
000000
0077777700
077777777770
077777777770
07777707770770
07777707770770
08887760777067800
0188887777777778770
07778888777777788670
07778888888888888670
0776288888888888200
00115555555555550
055553BB155550
015334411110
0034404330
000 000
]]
egg[4]=egg[2]
i=1
bg=27
maxframes(128)
scale(6,6)
function draw()
bg=bg-.5
clear(12)
--sky
circlefill(22,6,2,7)
rectfill(20,7,5,2,12)
linedash(3,4,frames()/6)
line(0,2,27,2,7)
linedash(1,0)
--ground
line(0,24,27,24,0)
rectfill(0,25,27,2,3)
--background blocks
rectfill(bg,5,12,20,9)
point(bg+9,7,0)
rect(bg,5,12,20,0)
point(bg,5,6)
line(bg,6,bg,23,5)
rectfill(bg+11,15,8,10,13)
point(bg+16,17,0)
rect(bg+11,15,8,10,0)
--little flower
point(bg+14,13,0)
point(bg+14+2,13,0)
point(bg+14+1,14,0)
--eggboy
sprite(egg[i],20,3,7)
if frames()%8==0 then i=i+1 if i>4 then i=1 end end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment