Thank you for visiting Blazing Games

BSoDs Comments

As a final touch, I thought it would be nice to have the BSoD heckle the player as they were moving through the map. Originally every step was a comment but I found the comments repeated way too often and it was too distracting. Instead, I opted for a bit less frequent comment. Technically, there is still a comment for every move but blank comments are part of the comment list so don’t show up.

The line that handles showing the quote is in the update function that was shown in the last section. If you missed it, here it is again.

_bsod_text.text = BSOD_QUOTES[Math.floor(Math.random() * BSOD_QUOTES.length)];

It is amazing how a single line of code can add so much to a game. For those who are curious, here are the quotes:

private static const BSOD_QUOTES:Array = new Array(
"Come here and visit.", " ",
"I won't hurt you...that much.", " ",
"Black and White aren't even colors!", " ",
"Penguins are bad.", " ",
"Penguins can't even fly.", " ",
"Stay away from the penguin.", " ",
"Don't go that way.", " ",
"Watch your step.", " ",
"It's not lava...it's red water. Take a dip!", " ");

This just shows you that sometimes adding icing to a game can be very simple.

Previous page
Chapter 41 Page 5

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