Copyright © 2010 Adam Talbot.
Visual C++ 2008
A University module to create a very short game demo containing moving sprites using DirectX and the EGG Framework - a small DirectX wrapper allowing for easier importing and transforming of sprites.
Click image to view gallery
This section contains snippets of code from a few functions and formulas used in the program.
Part of a units attacking AI from a finite state machine, this is how a teams units damage opposing units if they're in range.
A funtion from the player class to determine if buildings are within a build radius of the HQ, also checks for collisions for invalid places.
This is a bezier formula i wrote to calculate curves for rocks fired by a catapult unit i plan to implement.