Thank you for visiting Blazing Games

Real time by the frame

My first thoughts when trying to add real-time tracking to the game would be to take advantage of the built in time classes. As is usually the case, these classes are more of a pain to work with than they are worth. Instead, I just set up a variable to count time. There is a second long gap in frames between the wait loop and the end of the loop. This gives the player a bit of time to click on things without the counter being adjusted which gives the player a better chance to score a perfect time bonus. The code for handling the time updating is as follows.

Now comes the fun part. Working out the actual final score. Here is the code that is used to calculate the score.

The first line figures out the bonus. As you can see, I give the player a two second leeway in their attempt to get a perfect score. The second line calculates the actual earned score, which is earned by reaching the appropriate conversation level. Simply, multiply the point in the conversation the player reached by five to work out that portion of the scoring.


Previous page
Chapter 8 Page 4

About - Privacy Policy - Contact - Links - FAQ
Copyright © 2006 Blazing Games Inc. All Rights Reserved