Bumper car boundary fix


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 7 of 7

Thread: Bumper car boundary fix

  1. #1
    Join Date
    Nov 2004
    Posts
    10

    Bumper car boundary fix

    I've been working on this program for a while now, and I can't seem to get it to work right.

    Classes here

    My problem is that I cannot get the cars to stay inside the "grid" no matter what I do. I've tried different methods to do it, the one I have now works "in theory" but I cannot produce the results on screen that I do when I run through the numbers in my head.

    If someone could run through it and see if there is a logic error in there or if "in theory" just won't do it with this particular set-up, that would help a bunch.

    You don't even have to spell out what it is, give me an idea as to where to begin and I will hopefully will be able to learn more and figure it out my self. Right now, I need some guidance becuase it's got me stumped. Thanks in advance guys!

  2. #2
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    I am not able to download the files, could you just zip the java and send as an attatchment in an email to me, and I will have a look at it.
    eschew obfuscation

  3. #3
    Join Date
    Sep 2004
    Posts
    103

    no go zone

    You could make a method, letting the coordinates know what area is inaccessbile, Havn't read your files have time to read them later, but some ideas, Make sure your bumper cars are on the grid.

    heres a good website on java gaming

    http://fivedots.coe.psu.ac.th/~ad/jg/index.html

  4. #4
    Join Date
    Nov 2004
    Posts
    10
    I have included a link on that same page to download all the files instead of just looking at all the code..

    Thanks for the ideas, I will look into that site. Basically, this isn't necessarily a game, it's just a project using random number generation and the different uses of classes.

  5. #5
    Join Date
    Nov 2004
    Posts
    10
    Bump- anybody?

  6. #6
    Join Date
    Nov 2004
    Posts
    10
    One more bump- anybody get the chance to look at it and find anything wrong?

  7. #7
    Join Date
    Nov 2004
    Location
    Norway
    Posts
    1,560
    I would like to have a go at your code but I am not able to get all the source files, two of them comes through, the others just 'appear' like this:

    "You do not have permission to access http://theguy.8m.com/carclass.txt
    Data files must be stored on the same site they are linked from."

    You could zip the whole thing and mail it to me at:

    sjalle@start.no

    and I'll fix it...
    eschew obfuscation

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center