December 20, 2009

Ghost in the Phone

After spending a lot more work on the menu system than anyone should be expected to handle, I finally took the time to implement the time-trial mode ghost cars.


As I had expected, it was a lot easier to implement than the AI cars. As a bonus, it also needed less than half of the CPU cycles to run it. The ghost cars are essentially keyframed animations recorded when you play. The keyframes and some meta data are serialized to a plain text ghost file format.

We all know how fun it is to race against a ghost of yourself or a friend. I have fond memories of I and my brother playing Moto Racer on my first PC. Naturally, we want to enable this competitive excitement in our game, even when you play a quick game on the bus. (Or if you don't have any friends.)

Anyway... Ghosts are uploaded to our server and shared with other player over the world. You race against your own best time, plus two downloaded ghosts. Whenever you beat the best one, it will be replaced by a new one, at least 0.3 seconds faster than your best time. This means you will always race against ghosts slightly better or worse than yourself.

The result is a great gaming experience! Even after playtesting this all day long the last few days, it's still hard to put the game down when you lost the race by a fraction of a pixel.

Another great thing is that when you drive alongside a ghost, you can easily spot the tiniest gain or loss as you cut corners along the race track, allowing you to perfect your driving technique.

49 comments:

  1. I read this blog once, then lost it. Took me forever to come back and find it. I wanted to see what comments you got. Great blog by the way.
    Racing Games

    ReplyDelete
  2. However instead of risking such actions from the authorities the best thing is to acquire a cheap auto insurance Massachusetts which should serve you well as long as you are in the state. Any wise car owner knows that the risk associated with driving without valid auto insurance is not worth it.
    Learn more

    ReplyDelete
  3. Upon the receipt of the utilized iPhone, assess the thing precisely for outside harm and inside water harm, and afterward test the thing to ensure it works. http://freeiphone7plusgiveaway.win

    ReplyDelete
  4. Sounds pretty good, doesn't it? Can you just feel the rush of adrenaline your son will get when he sees all the party decorations set up? He will feel like he is on that track, with you and Dad as his party pit crew.automoves

    ReplyDelete
  5. It is basically a website that holds the details of your app and is used to send your iPhone app binary code to Apple for them to approve..Visit website

    ReplyDelete
  6. Apple utilizes an armada of automatons to make the upgraded Maps App give more significant bearing and data to clients. Check This Out

    ReplyDelete
  7. Amazing work on the writer's part and This blog has a positive and excited outcome.
    Rogue buddies 2 unblocked

    ReplyDelete
  8. I know this is a really old post, but thank you anyway.
    Minecraft APK

    ReplyDelete
  9. The power supply gives out three different DC voltages to your computer 12VDC, 5VDC, and 3VDC which are used differently by computer components.Best Pickleball Paddles

    ReplyDelete
  10. Moreover, with a wide range of applications that an iPhone offers, people have become so dependent on their iPhones that they find it difficult to stay away from it for even an hour..computer repair

    ReplyDelete
  11. Some interesting terminology which will boost your understanding and help you educate yourself about games designing for Android phones are listed in this short glo2D side-scroller - Parallax layers, tile-based worlds, animated sprites the right hardware buttons: input systems, OpenGL, ES Writing Java code for Android phones.games unblocked

    ReplyDelete
  12. In 2010, a video game distributor in Brazil revealed that a game localized into Portuguese multiplied its sales 15 times!csgo smurf kaufen

    ReplyDelete
  13. As mentioned before due to the increased access of the internet, the advanced technological graphics used simply make games very addictive.gamecube roms

    ReplyDelete
  14. In this technological age, it is difficult to find a website like https://www.marketing1on1.com/professional-seo-services-company/ which allow smalller websites to opt for cheap seo so that they can make their voice be heard by more people.
    affordable seo agency

    ReplyDelete
  15. So loosing weight through diet is not something everyone can do that’s why some people use pure forskolin pills pure forskolin. It burns fat a lot more quicker than the conventional dieting method.

    ReplyDelete
  16. I suppose that is an informative make recognized and it's miles agreed useful and knowledgeable. therefore, i might related to to thank you for the moves which you have made in writing this text. all of the content material is virtually expertly-researched. thank you... auto service deal

    ReplyDelete
  17. Will the harms to your property be secured by the organization? Will every one of the travelers be secured or just your family? Imagine a scenario in which your girl was driving your vehicle. What is the narrowest booster seat?

    ReplyDelete
  18. It’s not that I want to copy your website, but I really like the design and style. Could you let me know which theme are you using? Or was it tailor made? snapchat lens

    ReplyDelete
  19. Waow this is quite pleasant article, my sister love to read such type of post, I am going to tell her and bookmarking this webpage. Thanks fortnite-tool.com

    ReplyDelete
  20. That doesn't make it terrible; it just makes it the off-base kind of game for a multi year old. 1 토토 1 스포츠토토

    ReplyDelete
  21. Yes i am totally agreed with this article and i just want say that this article is very nice and very informative article.I will make sure to be reading your blog more. You made a good point but I can't help but wonder, what about the other side? !!!!!!Thanks auto repair Freehold NJ

    ReplyDelete
  22. This comment has been removed by the author.

    ReplyDelete
  23. I Have Read Your Article its Amazing Thanks For Sharing Your Knowledge..
    Best Bow Sights For Hunting

    ReplyDelete
  24. This is actually the kind of information I have been trying to find. Thank you for writing this information. 메이저놀이터

    ReplyDelete
  25. I was very pleased to find this site I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post. 먹튀폴리스

    ReplyDelete
  26. Great tips and very easy to understand. This will definitely be very useful for me when I get a chance to start my blog 토토사이트

    ReplyDelete
  27. Every weekend i used to pay a quick visit this web site, because i want enjoyment, for the reason that this this
    web page conations really nice funny data too.웹툰사이트

    ReplyDelete
  28. Hey there, You’ve done an incredible job. I’ll definitely digg it
    and for my part suggest to my
    friends. I am confident they will be benefited from this site.|선물옵션사이트

    ReplyDelete
  29. Thank you Superb article. When I saw Jon’s email, I know the post will be good and I am surprised that you wrote it man! buy traffic

    ReplyDelete
  30. I honestly appreciate the blog you have posted. Really looking forward to this kind of words.

    ReplyDelete
  31. really fun and enjoyable for me. Thank you guys for sharing this. Click here, if you want to visit our site too Please make time to read, this may help you 사설토토

    ReplyDelete
  32. Wow, superb blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is magnificent, 토토사이트

    ReplyDelete
  33. 보증업체 get some handsome returns at all times. Due to this fact, business people will do so many hours of searching of a marvelous site like yours.

    ReplyDelete
  34. I can grow up with. Please continue to do well and always do well It's cool every day 토토커뮤니티

    ReplyDelete
  35. Thank you for sharing your thoughts. I really appreciate your every pressured me to take a look at and do it 안전놀이터

    ReplyDelete
  36. wonderful points altogether,Perfect먹튀검증업체 Very helpful advice in this particular article!

    ReplyDelete
  37. With these significant written entries, - in combination with the great services of getting a limousine - this rental website becomes a worthy website for anyone. Luxury SUV Rental

    ReplyDelete
  38. Wow that was strange. I just wrote an incredibly long comment but after I clicked submit my comment didn't show up.
    풀싸롱

    ReplyDelete
  39. I blog often and I truly appreciate your content.
    야설

    Also visit my web site;
    야설

    ReplyDelete
  40. This great article has truly peaked my interest.
    일본야동
    Also visit my web site 일본야동

    ReplyDelete
  41. I’m going to bookmark your site and keep checking for new details about once per week.
    국산야동
    Also visit my web site 국산야동

    ReplyDelete
  42. I subscribed to your Feed too.

    일본야동
    Also visit my web site 일본야동

    ReplyDelete
  43. Hi there! This article could not be written much better!
    야설
    Also visit my web site <a href="https://www.japanyadong.com/""_blank"

    ReplyDelete
  44. Every time you have this place like this, Your post has really helped me a lot 스포츠토토

    ReplyDelete
  45. Your post has really helped me a lot 토토사이트추천 You’re incredible! Thank you!

    ReplyDelete
  46. Thank you for sharing your thoughts. I really appreciate your I'm surprised there's such a wonderful article 온라인카지노

    ReplyDelete
  47. 스포츠토토추천 instructive substance and composed well for a change. It's pleasant to see that a few individuals still see how to compose a quality post!

    ReplyDelete
  48. to take part in a contest for one 안전공원추천 of the best blogs online. I am going to highly recommend this blog!

    ReplyDelete
  49. This site seems to inspire me a lot. Thank you so much for organizing and providing this quality information in an easy to understand way. I think that a healthy era of big data can be maintained only when such high-quality information is continuously produced. And I, too, are working hard to organize and provide such high-quality information. It would be nice to come in once and get information.

    Also visit my site:먹튀검증


    ReplyDelete

Games, design and programming for web and handheld devices.