Play game
Duel!'s itch.io pageHow many characters of code did you use?
559
Include your code here, if you'd like to show it off!
cls()poke4(12800,4011)s=spr
?"웃~"
memcpy(0,24576,512)b=btn
h=64j=60k=print
::m::k("❎ duel! ⬅️ ai",36,9)a=nil
if(b(0))a=1
if(b(5))d=t()c=1p="READY.."goto _
goto m
::_::
m=t()r=rnd
cls()s(0,26,j,2,1)s(0,86,j,2,1,true)
if(m-d>=c)d=m+r(c*5)p="STEADY.."c+=.5
color(3+c*2)
if(c>=2)p="bang!"
x=(m-d)*4+2y=h-x
if(y<h)k(p,48,y)
f=c>=2and y<h
if(r()>.9and a and f)poke(24397,16)
if b()&4112>0then
sfx(0)
if(c>=2)n=2else n=5
o=28
if(b(4,0))o=99
pset(o+r(n),j+r(n),n)pal(0,7,1)flip()
w=1if(o==99!=f)w=2
pal()k("★player "..w.." wins!★",28,0,10)goto m
end
flip()goto _
Leave a comment
Log in with itch.io to leave a comment.