just a little something i'm working on.. thought i would post it here for others to have a look at.
features:
- ability to add tiles, and collision polys
- uses Box2d physics
- can save and load maps
- multiple layers
2d scrolling game editor
2d scrolling game editor
Last edited by sysex on Thu Feb 19, 2009 6:17 am, edited 2 times in total.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: 2d scrolling game editor
I'm can't do a lot with it at the moment, but that might just be a lack of skill, looking good though, I want GTA!
Re: 2d scrolling game editor
OKay here you go. A little GTA style demo.
The collision response hasnt been written yet. But everything else is pretty much there, if you can figure it out.
I cleaned up the code a bit, so it should be easier to follow now.
If anyone who is more experienced with the box2d physics stuff, I'd really appreciate some help in getting the collision response working
The collision response hasnt been written yet. But everything else is pretty much there, if you can figure it out.
I cleaned up the code a bit, so it should be easier to follow now.
If anyone who is more experienced with the box2d physics stuff, I'd really appreciate some help in getting the collision response working
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: 2d scrolling game editor
Doesn't work:
love: box2d/Source/Collision/Shapes/b2Shape.cpp:102: void b2Shape::CreateProxy(b2BroadPhase*, const b2XForm&): Assertion `inRange' failed.
Re: 2d scrolling game editor
it works for me... perhaps your version of love is different?
hmm i thought i fixed the collision but i didnt...
heres an updated version anyway
hmm i thought i fixed the collision but i didnt...
heres an updated version anyway
Last edited by sysex on Thu Feb 19, 2009 8:03 am, edited 2 times in total.
Re: 2d scrolling game editor
If you do manage to get it running heres how you control it.
Keys:
b - bounding box draw mode
t - tile draw mode
w, a, s, d to drive car
arrow keys - move map around without driving
-, + keys - scale width
[, ] keys - rotate tile
<, > keys change tile
F2, F3 save, load map (context sensative to what mode you are in)
You can place a bounding box or a Tile by clicking with your mouse.
Keys:
b - bounding box draw mode
t - tile draw mode
w, a, s, d to drive car
arrow keys - move map around without driving
-, + keys - scale width
[, ] keys - rotate tile
<, > keys change tile
F2, F3 save, load map (context sensative to what mode you are in)
You can place a bounding box or a Tile by clicking with your mouse.
Re: 2d scrolling game editor
Ooh, fun. Slippery cars. Feels like they're on ice.
Also, the second thing you uploaded does not work for me, but the first one does.
Also, the second thing you uploaded does not work for me, but the first one does.
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: 2d scrolling game editor
The last one still doesn't work, maybe it's because I'm running linux?
Re: 2d scrolling game editor
It could be because youre running linux.
I'm also using box2d incorrectly, but i think ive figured out whats wrong...
I'll post a new version as soon as i get it written.
I'm also using box2d incorrectly, but i think ive figured out whats wrong...
I'll post a new version as soon as i get it written.
Re: 2d scrolling game editor
Working now.
thanks to osuf, kaze, and pundit in #loveclub for the help with box2d
thanks to osuf, kaze, and pundit in #loveclub for the help with box2d
Who is online
Users browsing this forum: Ahrefs [Bot], Amazon [Bot], Bing [Bot] and 2 guests