Java-Gaming.org Hi !
 Featured games (91) games approved by the League of Dukes Games in Showcase (756) Games in Android Showcase (229) games submitted by our members Games in WIP (842) games currently in development
 News: Read the Java Gaming Resources, or peek at the official Java tutorials
 Show Posts Pages: [1]
 1 Game Development / Game Mechanics / Re: Simple 2D collisions on: 2012-03-18 04:03:48 Lol, I'm working on it! stuff keeps coming up, but I'm making steady progress )
 2 Game Development / Game Mechanics / Re: Simple 2D collisions on: 2012-03-17 21:42:48 Hey! I'm glad I decided to look at this post again, i wasn't expecting more comments! xD This site never emails me Alright! So finally what I ended up doing is bugging a family friend who also happens to be a mathematics professor at a local university to help me. He did the equations while I translated it into code, and it turned out to be relatively simple once you understand it.If ball B has a speedX and a speedY, and ball B also has these, then when a collision occurs (they're circles, use the distance formula) you simple set A's speed variables equal to B's speeds, and then set B's speeds to what A's were before you changed them. This is assuming identical mass, if one is twice as heavy you just have to use multiplication.A.mass = 1;B.mass = 2;A.speed = B.speed*2;B.speed = A.PreviousSpeed/2;This is a mathematically perfect algorithm assuming no friction, spin, damping, speed averaging, or invading aliens. It's more accurate for atoms than superBalls cause more stuff gets in the way when things are bigger. Hope that comes in handy!
 3 Game Development / Game Mechanics / Re: Simple 2D collisions on: 2012-03-07 13:38:53 Hmmm.... that might actually work. I would put in an auxiliary method to mess up the vector of the larger particle a little bit and make it look more believable, but I think that could work... I'll give it a try after school! Thanks!
 4 Game Development / Game Mechanics / Re: Simple 2D collisions on: 2012-03-07 05:11:24 Right, it's like Al3x said, I need to get the direction aproximantly right. It's for a game, so as long as the player thinks it's realistic it's good enough :oP
 5 Game Development / Game Mechanics / Simple 2D collisions on: 2012-03-05 21:42:07 Hello all! I'm trying to write a java program that, as simply as possible, simulates Brownian motion. In essence, there will be a bunch of circles with different velocity and mass, and I need to know what happens when they hit each other. Detecting the collision is simple, since they are all circles and you can just use the distance formula to see if they're touching, but as for exactly what they do once they touch, I'm somewhat lost. I know this has been done before, but I can't find any code for it. Also, I'd like to avoid using a clunky physics library, as there could be hundreds or circles at once and I'd like to keep the program running smoothly. Thank you!
 6 Games Center / Archived Projects / Re: Anaconda other A on: 2011-03-16 02:54:41 Thanks! I'm glad you enjoyed it
 7 Games Center / Archived Projects / Re: Anaconda other A on: 2011-03-16 00:54:40 Oh, that, you don't have to anymore. Lol, sorry, that was sort of the default....
 8 Games Center / Archived Projects / Re: Anaconda other A on: 2011-03-15 21:23:50 I tried extending JApplet, and it ran, but there were no graphics. In the mean time, there should be a .jar demo download available within the hour. An applet version will follow, and thanks for the help!
 9 Games Center / Archived Projects / Re: Anaconda other A on: 2011-03-15 20:38:46 Thank you for that, I'm actually working on a demo, but was putting very little effort into it because I figured people didn't care. Now I know they do, I will devote my full attention to it. Could you recommended any tutorials for converting existing .jar files into applets? Thanks! doby
 10 Games Center / Archived Projects / Anaconda other A on: 2011-03-15 17:19:54 Hey folks! I'm half of a two man game design team, trying to get the word out about our existence. I found this wiki, which looks pretty awesome, and thought "this looks like a good place!".You should definantly come see our website! It's at http://arfdob.webs.com/ and although we only have one game for sale as of now (Anaconda other A), it's super mega awesome fun-fun addicting!  I've also been looking at some of the other games on this site, and some of them are pretty sweet!  Drop by our website! And I look forward to trying some of the other games on this page!
 11 Game Development / Newbie & Debugging Questions / Re: Problems with online multi-player on: 2010-12-02 22:20:29 But what about other people who play the game? Will I have to include directions for changing router settings? If thats the case it might be easyer to change the code in the long run.
 12 Game Development / Newbie & Debugging Questions / Re: Problems with online multi-player on: 2010-12-02 21:11:17 I'm using TCP, which I guess means a lot of overhead form error catching. I have yet to look into configuring my ports, but in the mean time how would I go about switching to UDP? Also information on port configuration would be appreciated.
 13 Game Development / Newbie & Debugging Questions / Re: Problems with online multi-player on: 2010-12-02 18:46:22 Thank you very much, this seems promising and I will be sure to persue it. In the mean time though, everything I know about routers I learned in a basic computer science 101 class, which I took a couple of years ago as a high school guest student, so I'm not really sure how they work. After lunch I will try and find out things like weather I'm using UDP or TCP, but as of now I don't even know what those stand for. It shouldent take to long to study up on it though, I've still got my textbook and google is on my side.