C++
Math trickery for 1D & 2D arrays
Once upon a time, there was a language that didn’t have 2 dimensional arrays. This greatly upset the programmer. Fortunately, the programmer was swift in the art of arithmetic and overcame this obstacle easily. Lets say for example, we only have access to a 1 dimensional array data structure and it has 50 elements in …
What is the difference between aggregation and composition?
This question has bothered me for some time and I always forget. So I wrote it down here and added an answer. Composition : An object contains another object. When the container object dies, so does the composited objects. Aggregation : An object pseudo-contains another object (contains a pointer to it). When the container object …
The hidden default constructor in C++
I think I’m going to start posting about general C++ stuff too and since C++ is my favorite language (aside from assembly) I thought it would be interesting to post obscure C++ things that I find. Today I’m going to talk about a blog post that I found a while ago regarding constructors. The fellow …
A Few Code Snippets
Periodically I’ll stumble across a small but useful piece of code. I have a small list right now, but as I stumble across them, I’ll post them here. Note: I do not take credit for any of this code. Pausing your application __asm int 3; or __debugbreak(); Convert any data type to a std::string object …
Sundown Cerose
Description: A fast-paced comic book style 3D isometric based action/adventure game where the player must battle hordes of minions in order to save the galaxy. Gameplay video footage of Sundown Cerose. Position: Technical Director Date: 2008 – 2009 Accomplishments: Designed and coded the input, using DirectInput, scene management system, using TinyXML, physics, collision detection, and …
