Results 1 to 2 of 2
  1. #1
    emo bob is offline Member
    Join Date
    Apr 2011
    Posts
    1
    Rep Power
    0

    Default Tower Defense problems

    I am making a simple (the most advanced things I know are 'while' loops and basic recursion, and I've only got 2 weeks to do the project) tower defense for a computer science final project. I've got most of it down, but I'm having several problems which I would appreciate help with.
    1: how can I determine a range (max distance in a circle where the tower can pick a target to fire at) for my towers?
    2: how can I make the Projectile class fired by the towers track and move toward the target creep passed to it by the creating tower?
    3: how can I make the Projectile class detect when it is close enough to a creep to damage it and control itself?

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,016
    Rep Power
    10

    Default

    Honestly, you're probably biting off more than you can chew. You've basically asked "how do I write this game?", which we can't really answer.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. InputStream/Jar Problems/File IO Problems
    By rdjava in forum Advanced Java
    Replies: 31
    Last Post: 01-17-2011, 12:12 PM
  2. In defense of the Garbage Collector
    By Katanagas in forum Advanced Java
    Replies: 2
    Last Post: 10-25-2010, 07:40 PM
  3. RMI Problems
    By michaeln31 in forum New To Java
    Replies: 4
    Last Post: 10-23-2010, 01:52 PM
  4. Gui problems
    By bulldog in forum Advanced Java
    Replies: 1
    Last Post: 12-11-2009, 01:35 PM
  5. Few Problems Help!
    By elad_bj in forum New To Java
    Replies: 4
    Last Post: 04-07-2009, 04:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •