Skip to main content

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

Meteor BoyView game page

My first game - pico-8 meteor dodging game
Submitted by vashh โ€” 11 days, 22 hours before the deadline
Add to collection

Play game

Meteor Boy's itch.io page

Compressed Bytes used
677

Source Code (OPTIONAL)
-- meteor boy
-- by vash

cartdata("mboy")
g=2

function _init()
h=dget(0)
st=flr(time())
x=60
y=120
d=1
l={}
s=0
b={}
for i=0,9 do
add(l,{x=rnd(128),y=rnd(128)-128})
end
for i=0,32 do
add(b,{x=rnd(128),y=rnd(128)-128})
end
end

function drawguy()
rectfill(x-4,y-1,x+3,y,12)
rectfill(x-1,y-2,x ,y-1,15)
line(x-1,y-3,x ,y-3,8)
pset(x-1+d,y-2,8)
line(x-3,y+3,x-3,y+1,15)
line( x+2,y+1,15)
line( x+2,y+3,15)

end

function _draw()
cls(1)
foreach(b, function(p)
pset(p.x,p.y,12)
p.y+= 2
p.y%=128
end
)
print("score "..s,0,0,11)
print("high score "..h,0,8,11)
rectfill(0,124,128,128,11)
if (g==0) then
print("\^t\^wyou lose",32,64,8)
print("\^tpress โŽ to retry",32,100,8)
if(btn(โŽ)) g=1 _init()
h=max(h,s)
end
if (g==2) then
print("\^pmeteor boy",32,32,6)
print("\^pby vash",32,48,6)
print("\^tpress โŽ to start",32,64,5)
if (btn(โŽ)) then
g=1
_init()
end
end
if (g==1) then

print("\a"..tostr(time()%16,true))
s=flr(time())-st
drawguy()
h=max(s,h)

foreach(l, function(r)
circfill(r.x,r.y,5,8)
circ(r.x,r.y,5,15)
r.y+= 2.5 + ceil(s/10)/2
if (r.y > 128) r.x=rnd(128) r.y=0

if (abs(r.y-y) < 6 and abs(r.x-x) < 6) then
g=0
dset(0,h)
print("\aaaaaaasssssssaaaaaaalll")
end
end
)

if(btn(โฌ…๏ธ)) x-=2.2 d=1
if(btn(โžก๏ธ)) x+=2.2 d=0
x%=128
end
end

Leave a comment

Log in with itch.io to leave a comment.

Comments

HostSubmitted

This is really cool! ๐Ÿ˜Ž
Impressed how you got a little bit of everything going on here 
(char sprites, music, sfx and game restart logic)
My best was about 25.
P.S. - Glad your Dad was able to help you complete this within the jam "rules" - hope it was a fun (and not too stressful) experience! ๐Ÿ˜‰