Skip to main content

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

Tweet Tweet PongView game page

Pong for TweetTweetJam4
Submitted by Pixel Shock (@pxlshk) — 2 days, 16 hours before the deadline
Add to collection

Play game

Tweet Tweet Pong's itch.io page

How many characters of code did you use?
547

Include your code here, if you'd like to show it off!
for a=0,8 do for i=0,2 do poke(12868+a*68+i,6+2*a)end end d=0v=64p={v,v}c=0j=-1k=j::s::x=v h=127y=v s=sfx::l::for i=1,2 do t=p[i]a=i-1q=btn if(q(2,a))p[i]-=3 if(q(3,a))p[i]+=3 m=a*124rect(m,t,m+3,t+16,7)w=abs if(i<2)b=x<6 if(i>1)b=x>121 if(y>t and y<t+16 and b)k=-(t+8-y)/4s(5)j=w(j)*sgn(v-x) end x+=j y+=k if(y<0)k=w(k)s(3) if(y>h)k=-w(k)s(3) if(x<0)c+=1j=1s(1)goto s if(x>h)d+=1j=-1s(1)goto s if(c>10)u=2goto w if(d>10)u=1goto w ?d,50,1 ?c,76,1 line(v,0,v,h)circ(x,y,1)flip()cls()goto l::w:: if(q(4))run() ?u.."p wins\npress z",50,v flip()goto w

Leave a comment

Log in with itch.io to leave a comment.

Comments

No one has posted a comment yet