Friday, August 26, 2011

Let's Make A Game! Episode 12: WHAT IS WRONG

I moved on to the enemy-making portion of the project last night. Basically, what we're doing is creating a new class called "Enemy" and then using an array to manage multiple enemies at a time.

However, as is becoming de rigeur for me, I must have mis-typed or put some code in the wrong location, because enemies decided that they didn't want to appear on screen. There were no errors in the program that were readily apparent, so there was nothing I could point at and say "there's the problem."

I figured it might have something to do with the fact that my ship is slightly off-screen. It wasn't an outlandish guess. I mean, if my math is slightly off in one class, it's not inconceivable that it could affect another one, right? Then again, the classes generally don't intertwine in that way. Either way, even if I was way off on that guess, I decided that the safest thing to do would be to go out and get the fresh code from Microsoft and continue onward.

I downloaded the fresh code and ran it. What did I get?



So I have enemies on screen and everything behaves as it should EXCEPT that. How? How is this happening? This makes about as much sense as a moustachioed duck riding a purple tricycle in Abu Dhabi. So NOW I'm going to want to start over and take a closer look at what happened. SIGH.

In the meantime, I was pointed here for more help. It's a list of guidelines for future reference. It's already proved pretty useful.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.