Driving Simulator 560
Driving Simulator 560
Keep your car on track and try to get as far as possible before time is over. When time is over, the car stops. Use left/right to steer, one button for brake and the other one to restart.
I had a lot of features in my mind for this game. But the 560 characters of code limit nearly kills them all.
https://www.lexaloffle.com/bbs/?tid=37758
This game was made for #TweetTweetJam and contains only 558 characters of code, including art. The code is below:
_set_fps(60)n,x,y,a,b,r,m,l,g,h,p=64,0,0,0,0,20,15,20,btn,mid,{}for i=1,1000 do p[i]={x=x,y=y}c,d=cos(a),sin(a) x+=m*c y+=m*d a+=b if(l<i)l+=20 b=(rnd(2)-1)*.01 end x,y,z,a,w,b,t=-n,-n,0,0,0,.005,9999::_::cls(3)t-=1 if(g(0))a+=b if(g(1))a-=b if(g(4) or t<0)w-=.04 if(g(5))run() w=h(w+.02,4)c,d=cos(a),sin(a) x+=w*c y+=w*d z+=w for i=1,#p do q=p[i]e,f=q.x-x,q.y-y if h(-r,e,128+r)==e and h(-r,f,128+r)==f then circfill(e,f,r,2) if(i>2 and i%4<1)o=p[i-2]line(o.x-x,o.y-y,e,f,7) end end if(pget(n,n)==3)w=.1*w+.1 line(n,n,n+5*c,n+5*d,10) ?t.." "..z flip()goto _
Comments
Log in with itch.io to leave a comment.
this was the exact game I was wanting to create if I had the skill. also just a line for vehicle. I wanted roads that bend but no sharp corners to keep a nice game flow. some bends are very gradual with straight sections. I would love it if it had a simple drifting capability , that was effected by speed/inertia. a choice of vertical or horizontal orientation would be nice with car positioned on edge/bottm rather than middle to give more time to react to road change. and other moving cars to doge.
With a budget of 560 chars you get something like this. But with 1K compressed bytes you get something better. Try this one: https://itch.io/jam/pico-1k-2024/rate/2989753 It has got some drifting, 4 different tracks and AI cars, but there's no collision between cars.
had a look - really impresssive . Some games i bought on itch have multiple carts for more code. I suppose that limits being suitable for the app. I really liked the simple line here as it gave you more space to move on the road. its probably not a visually impressive as your second version.