Sign in to follow this  
shubhamm

Needed non tiled based Level editor 2D

Recommended Posts

shubhamm    111

Hi i am not sure what to ask exact in words for non tile based editor

 

i am making a Hill Racing 2D Game for that i have to make levels which have to be non Linear,Horizontal type

 

For example bezier curve type

 

i tried Tiled Map ,Box2d WCK (Slow on Mobile) so i am looking for a level editor in which i can draw level and then import it to Citrus game engine(Flash) or Libgdx (Java)

 

only Free Editors i have checked R.U.B.E for Box2d but it's Paid

 

Thanks

Share this post


Link to post
Share on other sites
Krohm    5030

Can you afford to rasterize everything or are you memory constrained? If you have the RAM to afford a properly authored asset you might just use Inkscape and then hit the rasterize button!

Share this post


Link to post
Share on other sites
shubhamm    111

RAM is 8 GB no prob. in it

 

but now the Question is if we make level in inkscape and then export it to SVG 

 

How should we import it to Citrus Engine ?

 

How the collision will be happen in box2d ?

 

Thanks Krohm for Reply..

Share this post


Link to post
Share on other sites
shubhamm    111

Try GLEED2D - I haven't used it personally, but it looks like it might have potential.

GLEED2D Is outdated and and the path made by the GLEE2D can not be used in Citrus Engine

 

so i am thinking to buy R.U.B.E for 28$ 

Share this post


Link to post
Share on other sites
Krohm    5030


but now the Question is if we make level in inkscape and then export it to SVG 
 
How should we import it to Citrus Engine ?

Don't import the SVG - unless you're targeting JavaScript as in Chrome or Firefox I'm afraid this will only end in tears. Rasterize everything at the appropriate resolution. If not oversampling too much it's possible to get a quality similar to vector yet using no vectors at all.

It is also possible you could use an intermediate step to convert to distance maps but in general you're being very vague about what you really need so I cannot give you an accurate answer.

Share this post


Link to post
Share on other sites
Kryzon    4624

First set up your units in Inkscape as 'pixels' and work from that, considering the scale in actual pixel sizes and how it will look in the final game.

 

After you finished, rasterize the graphics with Inkscape to PNG (to keep actual the pixel size, use 90 DPI - look in the output size if it matches the size you want).

You'll end up with a very wide PNG (it's your entire level, after all). Then you can use GIMP to 'crop' that big image into several smaller ones with power-of-two sizes so you can load them as textures. EDIT: You can alread crop the level with Inkscape, as it supports rasterizing selections or parts of a bigger graphic, but it's better you do it in GIMP as you'll be dealing with already rasterized pixels and you can edit the level's appearance much better - brightness, contrast, saturation etc.

So you have your level split as several different, transparent images and only need to draw these images whose boundaries intersect the screen.

 

You will have to define some shapes for the physics, so you can also use Inkscape for that: draw polygons to follow your level's silhouette, and save these paths in a Plain SVG file from Inkscape - then you can interpret the SVG file (it's like an XML file) back in your game engine and build physics objects from that.

Edited by Kryzon

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this