In light of yesterday's promise to restart work on "PIXELMAN," I decided to start back at basics, so to speak. Instead of jumping right in to the confusing mess Pixelman is, I started work on a simple pong-type game. I figured that I should refresh myself on SDL and C++ classes and headers. (That's my problem, I learn it, use it successfully in an application, and then I lose it all when I stop programming for an extended period of time) Anyhow, I've got a "Ball" class and I actually got the animation to (sort of) work. The main reason I'm posting this, however, is because I was able to get "pointers" to work! When I first started using them last summer I had no idea how they worked or why; I just kinda went with the concept and hoped everything would work. But after reading this explanation, I am much more familiar with the concept. Everyone always talked about how powerful pointers were, and I never really got it. But now I realize that they are incredibly useful. Basically they "point" to the location of a variable in the computer's memory. So you can access and change the value of a variable without actually needing to declare that variable in the current scope. (And if that makes sense to you then congrats, you're about as nerdy as it gets)
In any case, just thought I'd share my revelations with you all (even though at the moment, there's not many of "you") Enjoy your weekend and check back for future updates!
No comments:
Post a Comment