Mini Soccer Simulator 500

The real definitive soccer simulator that everyone was waiting for. Lead the ball towards enemy goal and don't let the opponents get too close. The pitch is endless, so you will have to run a lot.

A tiny TweetTweetJam-9 entry in 500 characters of code.

Controls:

  • Left/Right/Up: move left/right/up
  • Down: remember you are a soccer hero, so going back is not allowed.

Code:

_set_fps(60)m=64x=64y=64e=0f=-1p={}n=5l=10s=0::_::cls(3)n-=.1for i=0,3do
a=i*48-y%48rectfill(0,a,128,a+24,5)end?s,7
b=btn()u=(b&2)/2-(b&1)v=-(b&4)/4x=mid(6,x+u,115)y+=v
if(u!=0or v!=0)e,f=u,v
z=x+e*6w=m+f*6if(n<0)add(p,{x=x+rnd(m)-32,y=y-m,u=0,v=1})l*=.99n+=l
for q in all(p)do
q.x+=q.u
q.y+=q.v
c=m+q.y-y
a=z-q.x
b=w-c
if(c>128)del(p,q)s+=1?"\ascd"
d=(a*a+b*b)^.5?"웃",q.x,c,9
if(d<4)run()
if(q.d)?"4",q.x+2,c+1
if(q.d!=1and b>0and d<40)q.d=1q.u=a/d*2q.v=b/d*2
end?"●",z,w,15
?"웃",x,m,12
flip()goto _

Comments

Log in with itch.io to leave a comment.

This is a brilliant simulation of Karou Mitoma's amazing goal for Brighton against Wolves this season (YouTube) and I thank you for making it :D

Nice! Amazing goal! It's so great there isn't enough chars in the universe to make an accurate tribute in a PICO-8 TweeTweetCart.