I’ve been messing around with an infinite runner clone at run.huth.io, where you control a car and keep moving forward avoiding traffic and other obstacles. It’s using Zustand, Cannon, free assets from Kenny, and R3F under the hood.
I’m a little iffy on the performance on this, and suspect there might be something related to Cannon itself as I had some janky behaviour even when running nothing but a single vehicle, but I’ve papered over the cracks as best as possible for now.
Would love some feedback on performance and feel. I’m more interested in underlying systems and visuals than actual game design tho, so game feel could probably use some more love.
- Controls on touch devices are a little tricky, if anyone has a better suggestion than the current touch and slide for direction and magnitude I’m all ears
- The skybox was fun, and much less complex to implement than expected
- I’ve also added a very simple/stupid fake AO pass (fun!)
- Code is also at GitHub - tommhuth/run: Infinite runner clone · GitHub and theres a debug mode available by adding ?debug to the url
- The only thing I have left i want to try out is GTA3 style road/wind particles, but might leave that for another time
