Log In  


Cart #racerprototype-5 | 2022-06-25 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


A WIP "into the screen racer" prototype.
I've use bezier curves described in this post for the road: https://www.lexaloffle.com/bbs/?pid=65926
Use the controls to move the road around and move the horizon up and down.



I've made some optimisations to avoid pset and draw lines instead which is much more efficient. You can see the difference compared to the old version:

Cart #racerprototype-1 | 2022-06-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA


This shows that pset is a very slow command


1

suggest to look at this tutorial: https://www.lexaloffle.com/bbs/?tid=35767


1

Oh, you posted this twice, @BenAttenborough.

Let me say again good except the lines run the same speed from the distant road to the near road so the 3D effect is incomplete. And once again, nice rotation of lines when turning from left to right.


Thanks @freds72 and @dw817. Yeah I'll have a look at the tutorial although I've actually really enjoyed trying to figure it all out on my own!



[Please log in to post a comment]