Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Physics engine for 2D games  (Read 2295 times)
0 Members and 1 Guest are viewing this topic.
Offline Jenny

Junior Newbie




Java games rock!


« Posted 2004-07-13 11:50:43 »

Greetings,

This is my first post, so first I like to say hello to everyone  Smiley

I have never done any game programming before, I have worked with java for a few years thou. Anyways, me and a few friends are working on a small 2D RPG, much like the old game called Flashback but with more side quests and character development. A platform game with RPG elements may sound strange, but I think we have a few good ideas for making a fun and interesting game. Well, thats some background about me and the project I'm working on. The reason I post here is because I cant find any physics engine for 2D, like ODE and Havoc for 3D games. Maybe thats because there is no such engines, but if there is, can someone tell me where I can find one?

Also interested in all kinds of tutorials and guides, any link is welcome. As I said, Im new to game programming and my math really need to be updated a bit   :-/

Best regards,
Jenny

ps. sorry for any misspellings, my english is not that good
Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #1 - Posted 2004-07-13 12:33:28 »

There are 2D physic engines, but I don't know one for Java.

However, from reading the description I would say that you won't need one. (And well even if you get one it might be somewhat painfull to use it)

The stuff you usually need in a platformer is really simple stuff like gravity (x_velocity-=time_fraction*gforce) and some interaction with entities (standing on the ground, pushing crates etc).

http://grexengine.com/sections/externalgames/

articles->java2d->space invaders 101 and 102

弾幕 ☆ @mahonnaiseblog
Offline Jenny

Junior Newbie




Java games rock!


« Reply #2 - Posted 2004-07-13 15:12:39 »

Hiya!

Thanks for the link oNyx.

Yes, interaction with game objects is exactly what I was looking for. Not just between the player and objects, but also objects with other objects. I have already made tests, some of them worked ok but collision between objects and how to make objects behave like they should is too complex for me (example, players throws an object on a few crates that are stacked on each other, how they would react on the collision and fall down in a natural way). Thats why I was looking for an already made physics engine, so I dont have to worry about all this complex math  Wink

This is too hard for me, Im going to take a break from all these physics formulas and help with building the game editor. We are going to have a brainstorm how to implement our own script-language and parser, need to be able to script functions events. I think we need to stop having all these brainstorm meetings and acctually start to make the make, or we will never be able to finnish anything  Roll Eyes
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Catharsis

Junior Member


Exp: 18 years


TyphonRT rocks!


« Reply #3 - Posted 2004-07-13 20:46:54 »

Quote

We are going to have a brainstorm how to implement our own script-language and parser, need to be able to script functions events. I think we need to stop having all these brainstorm meetings and acctually start to make the make, or we will never be able to finnish anything  Roll Eyes


I'd suggest using a scripting language that already exists for Java. Groovy, Judoscript, Jython, JRuby, etc.
http://groovy.codehaus.org/

http://www.judoscript.com/

Also check into JSR 223. It is a generic interface for supporting scripting languages in Java.  A reference implementation was recently released.  

I'm just looking at the above, so I haven't integrated it into my work yet, but it looks promising.

Offline oNyx

JGO Coder


Medals: 1


pixels! :x


« Reply #4 - Posted 2004-07-14 07:37:15 »

Hm... I see...

Well, that's somewhat complicated then and since you'll need lot's of rotations it might be a good idea to use one of the opengl bindings (doing that in Java2d will produce a quite huge performance hit right now).

"rigid body dynamics" is the thing you should google for (with quotes). You can find alot of 2D examples (written in Java). Eventually you can recycle some of those examples, but you won't find a ready-to-use physic engine.

弾幕 ☆ @mahonnaiseblog
Offline jherber

Junior Member




Java games rock!


« Reply #5 - Posted 2004-07-14 19:38:03 »

you don't have to vary your z axis.   if you hold the z constant are you not effectively constraining the 3d physics engine two 2 dimensions?
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (37 views)
2014-07-24 01:59:36

Riven (38 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (50 views)
2014-07-17 23:47:54

danieldean (42 views)
2014-07-17 23:41:23

MustardPeter (44 views)
2014-07-16 23:30:00

Cero (60 views)
2014-07-16 00:42:17

Riven (57 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!