2d scrolling game editor

Show off your games, demos and other (playable) creations.
User avatar
sysex
Prole
Posts: 6
Joined: Mon Feb 16, 2009 7:16 pm

2d scrolling game editor

Post by sysex »

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
Last edited by sysex on Thu Feb 19, 2009 6:17 am, edited 2 times in total.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: 2d scrolling game editor

Post by bartbes »

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! :P
User avatar
sysex
Prole
Posts: 6
Joined: Mon Feb 16, 2009 7:16 pm

Re: 2d scrolling game editor

Post by sysex »

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 :)
LoveRacerEditor.love
(178.82 KiB) Downloaded 453 times
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: 2d scrolling game editor

Post by bartbes »

Doesn't work:
love: box2d/Source/Collision/Shapes/b2Shape.cpp:102: void b2Shape::CreateProxy(b2BroadPhase*, const b2XForm&): Assertion `inRange' failed.
User avatar
sysex
Prole
Posts: 6
Joined: Mon Feb 16, 2009 7:16 pm

Re: 2d scrolling game editor

Post by sysex »

it works for me... perhaps your version of love is different?

hmm i thought i fixed the collision but i didnt... :P

heres an updated version anyway
LoveRacerEditor.love
(178.83 KiB) Downloaded 602 times
Last edited by sysex on Thu Feb 19, 2009 8:03 am, edited 2 times in total.
User avatar
sysex
Prole
Posts: 6
Joined: Mon Feb 16, 2009 7:16 pm

Re: 2d scrolling game editor

Post by sysex »

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.
User avatar
Skofo
Party member
Posts: 146
Joined: Mon Dec 22, 2008 10:55 pm

Re: 2d scrolling game editor

Post by Skofo »

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.
Working on: Viator
Need a 64-bit Debian package for LÖVE? Here it is!
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: 2d scrolling game editor

Post by bartbes »

The last one still doesn't work, maybe it's because I'm running linux?
User avatar
sysex
Prole
Posts: 6
Joined: Mon Feb 16, 2009 7:16 pm

Re: 2d scrolling game editor

Post by sysex »

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.
User avatar
sysex
Prole
Posts: 6
Joined: Mon Feb 16, 2009 7:16 pm

Re: 2d scrolling game editor

Post by sysex »

Working now.
LoveRacerEditor.love
(187.01 KiB) Downloaded 659 times
thanks to osuf, kaze, and pundit in #loveclub for the help with box2d
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest