This is great. It feels like a complete game that clearly achieves what it set out to do. I guess it'd be good to have a number of holes (18) and a final score, but that ain't going to happen with three characters spare! Well done!
Play game
Golf Trainer 500's itch.io pageHow many characters of code did you use?
497
Include your code here, if you'd like to show it off!
_set_fps(60)s=0o=0j=128f=rnd
g=cos
h=sin::_::cls(3)if(o<1)x=f(j)y=f(j)u=f(j)v=f(j)a=0z=30o=1w=f()r=2+f(4)
d=r*g(w)e=r*h(w)for i=0,63do
m=i%8*16n=i\8*16line(m-d-e,n-e+d,m,n,13)line(m-d+e,n-e-d)end
circ(u,v,2,15)?s
if o<2do
b=btn()a-=.005*((b&2)/2-(b&1))z=mid(z-(b&8)/8+(b&4)/4,80)m=z*g(a)n=z*h(a)circ(x,y,2,6)line(x,y,x+m,y+n,11)if(btnp(4))o=2b=m*.1c=n*.1
else
x+=b
y+=c
a=(b*b+c*c)^.5b+=d*a/500c+=e*a/500b*=.96c*=.96circfill(x,y,2,7)if((x-u)^2+(y-v)^2<5and a<1)s+=1o=0
if(a<.1)o=0
end
flip()goto _
Leave a comment
Log in with itch.io to leave a comment.