Monthly Archives: February 2014

Initializing a C++ class with a reference to another class

I’ve been working on a small game that has a Player class and a Render class. The Render class needs to know about the Player class so that it can draw the player in the right spot. My first pass … Continue reading

Posted in Programming | 1 Comment

Rotation!

I was so surprised that this worked that I actually jumped out of my chair. When I hold down the “A” key the line rotates counter-clockwise around the blue circle (like a clock hand). I spent ages working this out … Continue reading

Posted in Programming | Leave a comment

Moving Around

I was thinking about Command & Conquer this morning, and realized that there’s a very simple feature in that game that I couldn’t work out in my head how to do myself: click on a location on the screen and … Continue reading

Posted in Programming | Leave a comment