View Single Post
Old March 16th, 2010, 10:35 AM   #2 (permalink)
KlaymenDK
Senior Member
 
KlaymenDK's Avatar
 
Join Date: May 2009
Location: Denmark
Posts: 1,215
 
Device(s): HTC Desire Z (rooted, CyanogenMod v7.1; Revoked ClockworkMod) HTC Desire (rooted, Oxygen rom; Revoke
Thanks: 29
Thanked 127 Times in 98 Posts
Default

Welcome to the forum!
(...but please don't double-post )
FYI, I've moved this to the "Developer" subforum. As it's obviously not about a finished app.

-> For this type of game, you should definitely consider making separate base classes for the environment, the monsters, and the towers (and then make subclasses for each type of tower and monster).
-> You don't want your "when-tower-sees-an-enemy" code in the same module as the painting code! You might want to use a model/view/controller setup, that'd be one way to make sure the physics are not frame-rate dependent.

There's a ton of tower defence source code out there...
__________________
Don't forget to hit the "Thanks" button when someone helps you!!!
How To Ask Questions The Smart Way
-- 010\001\111 --
KlaymenDK is offline  
Reply With Quote