Saturday, July 10, 2010


Still plugging away on the XNA book. Today's chapter was all about starting a time and using the variable created from the timer to translate a score. Of course I'm already running into trouble and the frustration is building. The concept behind the chapter is to begin a timer when the "Start" button is pressed. The code sets the timer to -120 when the button is pressed, then the timer is told to update afterward. Once the timer hits "0", it is supposed to play a ding noise.

I have set up the code according to the book and added the sound effect to the content directory (although the book did not explicitly tell me to). I'm hitting the start button and am not hearing anything, which I should after 2 seconds.

It would be nice if these problems were a little more spread out, but I'm hitting snags at every chapter. Its also not helping that I feel that my questions might be annoying the forums, but I promised myself that I wouldn't be afraid to ask questions or let it deter me. On the bright side, I'm noticing the book isn't giving me all code (and not signifying that it might leave something out) so I'm constantly being tested to add in steps. I don't know if its to help me learn, but it has helped me realize that I am picking a lot of this up.
On a happier note, I recently finished "Alan Wake". I know that I wasn't particularly impressed with it at first, but after the first 2 chapters I found myself growing more interested in the story and characters. I also decided to stop playing it so late at night, which says a lot to the power of the atmosphere. I'd definitely recommend it, but wait till it drops in price. I caught it for about $40 per a sale posted on CheapAssGamer.
Also, the other night I read through the Indiana Jones 4 script written by Frank Darabont (Shawshank Redemption, The Mist, Green Mile). Everyone who knows me knows of the deep scars left by Indiana Jones and the Kingdom of the Crystal Skull. Counting Raiders of the Lost Ark as one of my favorite movies of all time, I saw that movie as a blatant slap in the face. While I do believe Darabont's script would have made a better movie (because of its superior depiction of Indiana Jones, more true-to-form Marion Ravenwood, and lack of Mutt) it still included "Nuked Fridges", giant red ants, and space ships. I never felt like those concepts belonged in that series, but can appreciate their sticking with an homage to the movie serials that inspired them. If you want to check out the script, you can find it at "My PDF Scripts".

Update: Once again, the forums straighten me out within minutes of my post. Turns out I missed the line of code that declared my game pad. Seems like a pretty stupid mistake that I was hoping was more the book's fault than my own. Sadly, it was my fault again. Thanks to Jrett at for his help.

No comments:

Post a Comment