Tag Archives: Mario

Squash Those Bugs! (and amusing mario fact)

I know I shouldn’t expect you guys to read so much.  It’s only been a few days since my last post, but give me a chance!  I’m new at this, and soon the glossy finish will wear off and I’ll slow down the torrent of posts.  Plus, I had some classes get canceled this week and got a lot of work done.

I’ve fixed several major bugs, including an erratic message box display, (got to watch those Vectors) a weird extra pause menu that I don’t remember coding in, and an error with skipping bits of story line.

I also implemented a save feature!  Hooray!  Campaigns can be saved now, and levels in Level select mode are locked until beaten in campaign.  All-time stats are also recorded, so you can see how many times you’ve died throughout the entire game. 🙂 I plan on adding high scores and perhaps awards (for fast times, no deaths, etc) for each level soon.

What I’ve got to share:

First off, jagged arrays!  I may use this for my high scores list.  In C#, they are used like this:

// Declare a jagged array
int[][] jaggedArray = new int[6][]; 

// Set the values of the first array in the jagged array structure
jaggedArray[0] = new int[4] { 1, 2, 3, 4 };

I always thought this should be doable, but never knew how.  Know I do!  It’s use should be fairly self-explanatory to anyone with programming knowledge.  It’s an array of arrays – almost the same thing as a two-dimensional array in practice.

Second, did anyone else know that the old Mario games used the same image for the clouds and bushes, just in different colors?  I always had my suspicions, but here’s the proof.  It just goes to show how much of video games are just smoke and mirrors.  Whoever had this idea knew what he was doing – he saved time, money, virtual space, and virtual processing in one fell swoop.  And it didn’t hurt the game a bit!  (If you have time, check out the blog that posted the Mario thing – it’s really interesting)

I’ll probably create a poll sometime soon to get some feedback on my content and see what everyone likes.  For now, I’ve got to get to class!