RTS Game

Copyright © 2010 Adam Talbot.

RTS Game

Download source files

Tools Used

Visual C++ 2008

DirectX 9.0

EGG Framework




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

Code Examples


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.