I made a 2d engine for Libgdx

Anything libgdx related goes here!

I made a 2d engine for Libgdx

Postby Redkin » Mon Jun 24, 2019 11:33 am

You can download it here:

https://bitbucket.org/Redkin555/physicsengine2d/downloads/
On the downloads there is also a demostration.jar ;)

It has a wiki:
https://bitbucket.org/Redkin555/physicsengine2d/wiki/Home
Redkin
 
Posts: 89
Joined: Sat Apr 22, 2017 7:21 pm

Re: I made a 2d engine for Libgdx

Postby Zappp » Mon Jun 24, 2019 10:44 pm

Nice project for adquiring experience and skills, but I think its a bit ambitious try to compete with box2d :P
Zappp
 
Posts: 77
Joined: Sat Mar 29, 2014 3:34 am

Re: I made a 2d engine for Libgdx

Postby Redkin » Sun Jun 30, 2019 11:17 am

Ye bro, but im not trying to compete, box2d has more options but mine is simple, the old style games dont require so much physics and thats why i made this, and thanks!
Redkin
 
Posts: 89
Joined: Sat Apr 22, 2017 7:21 pm

Re: I made a 2d engine for Libgdx

Postby fran86 » Wed Jul 03, 2019 9:47 pm

Just had a look and is very interesting.
Is great to have an old school like physics engine for libgdx.

I played a bit with the .tmx of the example and found some collision problems when the slope is too high (more than 60 degrees), but apart from that is very solid.

Keep up the good work!
fran86
 
Posts: 46
Joined: Thu Jun 06, 2013 11:12 am

Re: I made a 2d engine for Libgdx

Postby Redkin » Sat Jul 06, 2019 5:55 pm

thanks fran86! Maybe it need more ajustements but i think for normal oldschool games it works well :P thanks again!
Redkin
 
Posts: 89
Joined: Sat Apr 22, 2017 7:21 pm

Re: I made a 2d engine for Libgdx

Postby Redkin » Sat Jul 06, 2019 8:16 pm

I tried with more than 60 degrees and it goes as it should, the thing is when u go down the slope, it "jumps" couse the gravity is not enough to make the y+with/2 position collide with the line, (i made it so it collides when the diference of the y+with/2 position of the rectangle and the line is les than 1 unit), that dont happens on a regular line that goes thru a rectangle of tiled couse the gravity is high enough to push the rectangle down. Anyways oldshcool games uses asets for going in a diagonal way that are the half of an rectangle in tiled, so there are no problems. If u want that the rectangle dont jump just increase the gravity and it should go well :p
Redkin
 
Posts: 89
Joined: Sat Apr 22, 2017 7:21 pm

Re: I made a 2d engine for Libgdx

Postby Redkin » Sat Jul 13, 2019 4:45 pm

I updated the engine so if u downloaded it do it again to get the last changes
Redkin
 
Posts: 89
Joined: Sat Apr 22, 2017 7:21 pm


Return to Libgdx

Who is online

Users browsing this forum: Google [Bot] and 1 guest