Showing posts with label target. Show all posts
Showing posts with label target. Show all posts

Thursday, November 25, 2010

Allar's Dev Diary #16: Day 7, Tower Defense Side Project

Day 7 (11/24/2010)


12. Getting Towers to Track Their Targets



Today I decided to switch gears back into actual tower development, as that is the real nature of the game isn't it? In any case, we need a way for our enemies to be registered as enemies for our towers. We don't want our towers to be attacking every actor that is within its range, it should only track and attack enemy targets. To do this, I've decided to make another Interface that way I can make any class an enemy instead of having all my enemies derive from a single class. Right now there is no actual use of the interface than to register a class as an enemy, but I've decided to throw in a function that could be used to allow for classes implementing this interface to decide that a particular instance of it is not an enemy. Today I haven't created that checks this or requires this, but I think it might come handy in the future.



Friday, May 29, 2009

When compiling XNA on an x64 machine...

FOR THE LOVE OF GOD REMEMBER TO COMPILE WITH x86 AS YOUR PLATFORM TARGET.
I forgot about this and wasted an hour of debugging.

Right click your project -> Properties -> Build -> Platform Target -> x86