1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Turn Based Racing Game (formulky)

Discussion in 'Off Topic' started by popojan, Dec 28, 2015.

  1. Absolutely.

    7 vote(s)
    63.6%
  2. Maybe.

    3 vote(s)
    27.3%
  3. I do not think so.

    0 vote(s)
    0.0%
  4. I have no idea.

    1 vote(s)
    9.1%
  1. Hi,

    let me go off-topic while having a break from hot-lapping in AC.

    I got an idea for a turn based racing game. It sounds weird, right? For impatient readers here is a direct link to a proof-of-concept prototype: Turn Based Bézier Racing.

    The idea has been around for some time, originally as a paper and pencil game (Race Track, online as Vector Racer), then my first PC attempt without a grid (Formulky aneb Závody na papíře), then reinvented by someone for Android as Turn Based Racing. And now I made the trajectory smooth by employing Bézier curves.

    The idea is that you do not have to hurry (you take turns) and plan as fast a trajectory around a track as possible. It could by played by several players or even asynchronously. However the given prototype works only in hot lap mode: http://hraj.si/?en#formulky.

    Please let me know what you think about such game concept. I know it is way too simple, nevertheless I kind of like it. And no matter how I try I cannot reach my own world record 2:28.826 again. Sorry for a lengthy post, back to real simulators :)

    Jan
     
  2. Omer Said

    Omer Said
    Weresloth Staff Premium Member

    Hello Jan,

    I think the concept of not having squares and not only straight lines compared to Vector Racer sounds great. This concept looks very promising. Of course it needs much polish and features, but in it's core, very very promising if you can turn this into an online multiplayer game.

    Thank you and please keep up the great work! :)

    By the way, tried three times so far and crashed in each of them. :D
    Edit: Finished with a 3:47... How did you 2:28?! :confused:
    Edit2: 2:52 now. This is addicting!
     
    Last edited: Dec 28, 2015
  3. Lars Hansen

    Lars Hansen
    RDs Ion-Engine....0-60 in six days. Staff Premium Member

    This is a fantastic concept!
    Can't even begin to tell you how much I played Race Track as a kid.
    Really hope you'll continue to build on this. :)
    EDIT: Oh and.....2:39.9 :D
     
    Last edited: Dec 28, 2015
  4. Thank you for your kind comments and votes.

    It seems the time has come to code a new feature.
    I am choosing among two:
    • improve the backend and offer several different tracks (maybe even circuits)
    • implement an asynchronous multiplayer mode displaying a random/suitable/chosen "ghost" trajectory one can race with (it would always move last, after the actual players, to disallow simple copying)
    Which one would be more appreciated?
     
    • Like Like x 1
  5. Ricoow

    Ricoow
    420 Premium Member

    Best so far is 2:44 :p

    Edit: Your ranking seems to be bugging. I did a 2.50.8 for P27, then improved several times to 2:44 not having to enter my name, then a new 2.50.4 for P26 and my name had to be entered.

    Reached 2:37 now
     
    Last edited: Dec 30, 2015
  6. Hi Ricardo, thanks for trying the game.

    Make sure you click anywhere on the track after completing the race. If you click restart or abandon on the page with static green lap time overlay, it neither asks for a name nor saves the lap time and trajectory.

    Edit: you are right, it is not intuitive, I have noticed many laps not getting recorded because of this design
     
  7. Omer Said

    Omer Said
    Weresloth Staff Premium Member

    I think you should polish the single driving before implementing features like multiplayer. There are some weird movements such as car can turn around 180 degrees sometimes. Fastest Lap Times table is more than enough until the driving is mastered imo. :thumbsup:
     
  8. Ricoow

    Ricoow
    420 Premium Member

    The laptime itself does pop up instantly, so if it is top 50(?) material just let the ranking pop up as well.
    Or even different, ask for the nickname on opening, add a edit nickname button and make it enter the charts automatically, show the laptime and under that: Rank: #23 for example

    But indeed as Omer says, you should keep focussing on the base first ;)
     
  9. Unfortunately there is nothing to be done about this if we wanna keep the geometry plain and simple. My idea was to avoid physics and stick with geometry. Once physics get involved, it would become a simulator - and why would anyone play a simulator in a turn based way. It would be like playing a racing game with extremely low FPS.

    I understand the 180 degree turns this way (even though I do not like the jagged trajectories of slow players at all):

    Each move is a fixed period of time (here approximately 5.9 s). If you are going too slow, you have enough time to take a U-turn. On the spot? Well, that is the only simplification for the sake of keeping the geometry simple. Think of it as of handbrake turn, whatever... ;)


    As for the ranking / laptimes... totally agreed. Moreover each player should be in the table only once, with her best lap.
     
    • Like Like x 1
  10. Ricoow

    Ricoow
    420 Premium Member

    Put this on my watchlist.
    Saw your change in the rankings @popojan . All it needs now is a check if your current laptime beats your best before popping the rankings up :)

    Also, I took P2 in 2:35.2
     
    • Winner Winner x 1
  11. Thanks for noticing the slight change in ranking. It needs a complete rewrite though, server-side.
    Internally I will save all laps anyway to have many trajectories to choose from when offering "asynchronous opponents". Unnecessary pop-ups are annoying, agreed, and will be removed.

    Congrats :) I will tell my co-worker as P2 was his.

    I will put it on my TODO list then! ;)
     
  12. Ricoow

    Ricoow
    420 Premium Member

    Made it 2:34.7 Quite addicting to spend some time on while waiting
     
  13. Waiting for what? :p
    I thought I was the only addict.
     
  14. Ricoow

    Ricoow
    420 Premium Member

    Friends that are going to play games with me and stuff :p

    May I ask what language do you use for coding this?
     
  15. Most important libraries used by client-side javascript are Raphael.js and KevLinDev's intersection library, backend to date pure PHP, but I plan to switch to something more suitable, probably Node.js as it will allow the same code to be run on the server.

    I would like to validate all trajectories. Now it is possible to cheat and submit an invalid but fast lap-time programatically and it will not get noticed until you click it in the Top Scores table and display the trajectory client-side.
     
  16. Finally a minor update:
    • zooming and panning
    • new circuit: Valencia
     
  17. Ricoow

    Ricoow
    420 Premium Member

    Circuit is way too hard to brake at

    Also: Gives an error when starting ("Invalid Trajectory")
    Does play afterwards

    edit:
    2 little bugs I found when beating your time on Valencia ->
    1) When the screen pops up with your leaderboard entry, instead of moving #1 time to #2, it just overrides your result.
    So it looked like this:
    1. [_____________] 2:59.???
    2. Ricoow +3.???
    Instead of
    1. [_____________] 2:59.???
    2. popojan +1.???

    It does show up properly after the time is posted

    2) The fastest laptime on the top left does not update when you beat it, only updates after reloading the page. Maybe you can make that dynamic?
     
    Last edited: May 25, 2016
  18. MoerasGrizzly

    MoerasGrizzly
    Premium Member

    Ever tried Qvadriga? It's a turn based chariot racing game :)
     
  19. Thanks for your feedback. There is one parameter to tune, which basically lowers acceleration and increases braking. You could try with a lower value S=0.75 if it feels better for you.
    As for the error, I thought I had fixed it - deleting today's cached content might help.

    Never heard of it. I am going to give it a try. Thank you!
     
  20. Ricoow

    Ricoow
    420 Premium Member

    You also read my later edit? :)

    The lower S value makes turning and accelerating act strange actually, I would keep it the original way (or maybe slightly lower S)