Friday, February 18, 2011

Weekly Blog Post 2/18/11

When it comes to using the timer, we could use it when counting down how long you have to answer a question or finish a game level. It can be used to countdown to the start of a level, which can give the player time to get ready. If you want to make the timer faster, you can either

[1] Start the timer on a smaller number (if counting down)
Example; This section of the code can be changed so 60 is a smaller number, giving you full control over how many numbers must be counted down.
timer = 60; is a longer wait than time = (#)<60

OR

[2] Change the time used between each number.
Example; This section of the code can be changed so you can reduce the time between each counted number.
countdownInterval = setInterval(countdown,1000); makes the wait time between numbers longer than if you changed 1000 to any number less than such. If you change 1000 to 999 or lower, the time taken to count down, depending on how less the number is, will be shortened.
 I would have to rate this tutorial a 10 because it was well stated, organized, and it was kept simple and easy to understand.

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. really enjoyed reading your post. I especially liked the explaination on how to change the code to smaller numbers, and how to make it go faster or slower. Keep up the good work.

    ReplyDelete