Showing posts with label crowd. Show all posts
Showing posts with label crowd. 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.



Thursday, November 18, 2010

Allar's Dev Blog #11: Pathing Fail

Sorry about the long time between posts... been working over at Emotional Robots, Inc so I've been busy working on stuff I can't talk about... but I have a pretty big update coming soon that I know a few people out there will really enjoy. in the mean time, heres this.