Good news for all of the andengine developers. :) basic level editor is here.
For my game i had to find the very basic level editor, but all of the threads on andengine forum were either closed or have buggy level editors.
So i decided to make my own level editor and share it to community. Though andengine has very less documentation but matim-dev provided great tutorials to make the developers life easy. Thanks to him.
Since its very basic and i am following his level xml example so you can have the format like that. where type will automatically be picked from the image file name. let me show you how.
<level width="1000" height="780"> <entity x="100" y="100" type="platform1"/> <entity x="200" y="200" type="platform1"/> <entity x="400" y="200" type="platform3"/> <entity x="550" y="300" type="platform2"/> <entity x="720" y="240" type="platform3"/> <entity x="400" y="270" type="coin"/> <entity x="500" y="400" type="coin"/> <entity x="600" y="400" type="coin"/> </level>
First of all we need to load the resources that we are gonna use within our level. For this go to Sprites menu and press load sprites.In above example, plateform1,plateform2,plateform3,coin are sprites. Once its done you will be able to see those sprite in left column.
On right column you can set the height and width of the level.
Now you can either load the existing level by going to file menu and press load level or you can create your own level just by grabbing the entities from the left panel to canvas.
Place the items where you want and save it from file menu and you are done :)
Umar Hadyatullah
Senior Software Engineer
1 comment:
Hi, I found your post at andengine forum and I tough your post is great but I have a problem about your basic level editor installer, I can't install it because windows can't opened.
What is the minimal requirement or what OS I need it.
I use Windows 7 64x pro.
thanks for your time answer me.
att> Charly Gtz
Post a Comment