Go Back   Android Forums > Android Development > Application Development > Developer 101

Developer 101 101 Tutorials



Reply
 
LinkBack Thread Tools
Old March 16th, 2010, 10:00 AM   #1 (permalink)
New Member
 
Join Date: Mar 2010
Posts: 5
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with Tower Defence

I have decided to do a Tower Defence on Android platform for my final University project. After i builed the map/road/hill i found myself stuck on building the Tower and how to make them interact with monsters.
I want to know if i should make a new class that implements view or use the class that does all the drawing.
Any examples of Tower defence implementations would be nice.

Jinam is offline  
Reply With Quote
Sponsors
Old March 16th, 2010, 11:35 AM   #2 (permalink)
Senior Member
 
KlaymenDK's Avatar
 
Join Date: May 2009
Location: Denmark
Posts: 1,205
 
Device(s): Desire (Android v2.3.5 w/Oxygen rom; Revoked ClockworkMod recovery)
Thanks: 28
Thanked 121 Times in 93 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
Old March 18th, 2010, 08:15 AM   #3 (permalink)
New Member
 
Join Date: Mar 2010
Posts: 5
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Being my first post in a forum hope you believe me when i say the double post was without intention. Back to my problem...i followed your advice and found a nice open source java TD named hexTD and read most of its classes and found myself with another problem. The fact is that all the monsters/towers classes are actualy interfaces(Ex: public interface tower), but in all the Android app i have never seen a interface so i guess what i'm asking is did the Android platform replace interface with something like view?? Btw thx for the fast reply
Jinam is offline  
Reply With Quote
Reply

Bookmarks


Go Back   Android Forums > Android Development > Application Development > Developer 101 User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Android Tower Defence Game? frazmand Android Games 14 July 31st, 2011 01:19 PM
Tower Raider best tower defense game ever. zx12richard HTC Hero (Sprint) 0 July 23rd, 2010 11:17 AM
Help with Tower Defence Jinam Gaming 1 May 11th, 2010 12:26 PM
Letter Tower defence Demand Android Games 1 January 24th, 2010 10:12 AM
Tower Defence Game Vini Android Games 7 February 17th, 2009 04:38 AM



All times are GMT -5. The time now is 09:22 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo


SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.