Play game
1K Car's itch.io pageCompressed Bytes used
787
Source Code (OPTIONAL)
-- 1k car
-- by werxzy
pal(2,-15,1)
pal(6,-11,1)
cartdata("werxzy_1kcar_1")
function _init()
x=60s=0w=8c=0h=32d=0
cls(1)
end
function _draw()
if h <= 0 then
for i = 0,100 do
r0,r1=rnd(128),rnd(128)
print("β",r0-3,r1-2,pget(r0,r1))
end
for i = 0,10 do
r0,r1=rnd(5)+x,rnd(5)+8
print("γ",r0,r1,8)
print("γ",r0,r1-8,9)
end
rectfill(31,45,93,83,1)
dset(0,max(dget(0),c))
print(" game over\n score:"..c\1 .."\n best :"..dget(0)\1 .."\n\n π
ΎοΈ to restart\n β to boost",33,47,0)
if(btnp(π
ΎοΈ))_init()
return
end
p=btn(β)and 4or 2
if(btn(β¬
οΈ)) x-=p
if(btn(β‘οΈ)) x+=p
x=mid(121,x)
w+=(rnd(2)-(w<1and 0or w>15and 2 or 1))*min(c/10,1)
w+=d
s=""
for i = 0,15 do
if abs(i-w)-max(3,10-c/0.4)>0then s..="β"
else s..=" "end
end
rectfill(2,119,125,125,1)
cursor(0,120,5)
?s
print(s,1,114)
print(s,0,113)
print(s,1,113)
rect(0,120,1,128)
rect(126,120,127,128)
for i = 1,rnd(3) do
r0=rnd(127)
m=pget(r0,114)
if m==1 then
r1="γ.,"
m=2
elseif m==5 then
r1="ββΆβ"
m=6
else
r1=""
end
if(r1~="")print(rnd(split(r1,"")), r0-1,112,m)
end
for z in all({0,6}) do
if pget(x+z,10)==5 then
h-=1
print("β",z+x-4+rnd(3),7+rnd(3),10)
end
end
print("β", x, 0,1)
print("μ\n\f8π±", x, 0,9)
print("score:"..c\1,4,121)
print("health:",64,121)
rectfill(92,120,92+h,126,8)
rect(2,119,125,119,0)
c+=0.1
if c%2==0 then
d=rnd(0.5)-w/32
end
end
Leave a comment
Log in with itch.io to leave a comment.
Comments
Very addicting game! Love the creative car graphics π Personal best 279
I managed to hit 400! The death effect is fantastic.
Wow, the effect in the last screen is amazing :+1 It reminds me of The Lair's last screen
pretty simple and addicting game! my best was 218, good overall, I enjoyed it.
This is a really neat (+fun) entry.
River Raid is one of my fav games, so this felt a bit like playing it in reverse!
I was partilarly impressed with the end-screen effect - that looks great! π€©π
Nice one ππ
(Alas, the best I managed was 178)
Big River Raid vibes on this one!