Note:  Hold LEFT while starting to enable AI
A quick game made for TweetTweetJam 5. Code done completely in 559 characters.

 Use player 1/2 Z keys to fire whenever the game says "BANG!". The fastest player wins the duel!

Code:

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 _


StatusReleased
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorValerADHD
Made withPICO-8

Comments

Log in with itch.io to leave a comment.

Nice! cool to see the use of sound in a tweet cart.

The text looks nice. Always cool to have ai in a tweetcart.