Saturday, July 31, 2010

Chapter 10 finished

Seeing as my Saturday is going to be busier than usual, I thought I would stay in tonight and catch up on some programming (seeing as I haven't done any in 2 weeks). This evening was "Chapter 10: Using C# Methods to Solve Problems" and was exciting because it was the introduction to the final third of the book (Part III: Writing Proper Games). This chapter was mainly about adjusting the rectangle for drawing 2D textures, creating your own Methods, working with "floats", and using breaking points to help debug your code.

Had very few problems with this chapter, which was a nice change from the last few where I'd been absolutely stumped by some unforeseen problem. I remember opening the book and dreading the threat of having to post on the forum with another problem that was clearly my own fault. Luckily, that wasn't the case.

Once again, he is not terribly clear on where to be putting code, but more alarming are the instances where he adds code without telling you. There is one section where you are starting with a picture that is much larger than the screen. You are to gradually shrink the picture, but only to the point where it matches the screen size. He explains a bit of code that works out pretty well and everything comes together. Later, you add a bunch of new code and, without any inclination, the previous code is replaced with an entirely new one. Now, I'm not sure if this is by design, but its a little annoying. Oddly enough, all of this searching for the differences in my code and the book's online examples are probably teaching me a great deal.

All in all, it was a fine and I was relieved that everything I had learned hadn't flown out of my head during my 2 weeks of neglect. If I'm lucky, I'll try and do the next chapter on Sunday night.

Book: Microsoft XNA Game Studio 3.0: Learn Programming Now! (Pro - Developer)

No comments:

Post a Comment