LevelEditor

  ... information about changes and new features of AndEngine,

LevelEditor

Postby Nicolas Gramlich » Fri Oct 08, 2010 7:03 pm

Hello Community,

(Here you can download an early version: http://www.andengine.org/files/AndEngineLevelEditor.jar the latest version shown below is not available yet.)

recently I got so incredibly frustrated :evil: by making levels using a plain TextEditor that I almost cancelled the project. :roll: So I decided to make sth to make me more productive... 8-)

So I started working on a LevelEditor tool. This LevelEditor is highly flexible as it generates XML code which you can enriched (even manually) with any kind of XML-attributes.
On the other end the developer doesn't even have to handle the actual XML parsing anymore as simple classes are available that make parsing a breeze.

This is what a resulting XML looks like:
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <level width="480" height="320">
  3.     <entity x="120" y="280" width="40" height="120" fixed="false" type="bounce"/>
  4.    
  5.     <anotherentity x="208" y="16" width="40" height="120" type="explode" rotate="45"/>
  6. </level>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4


This is the current version of the LevelEditor:

leveleditor_preview_5.png
leveleditor_preview_5.png (166.89 KiB) Viewed 6237 times


And this is how it can look on an actual device (different level!):
screenshot_raw_5.png
screenshot_raw_5.png (47.52 KiB) Viewed 6238 times


Hope you like it :) I'll keep you up to date :!:

Best Regards,
Nicolas
Nicolas Gramlich
Site Admin
 
Posts: 1734
Joined: Mon Jun 07, 2010 6:20 pm
Location: Schriesheim, Germany

Re: LevelEditor

Postby albrandroid » Fri Oct 08, 2010 8:46 pm

Looks great.. 8-)

This would really save a lot of time for creating xml Levels.
albrandroid
 
Posts: 26
Joined: Thu Aug 12, 2010 9:17 am
Location: Vienna

Re: LevelEditor

Postby Mimminito » Sat Oct 09, 2010 12:19 am

This is the sort of thing I thought of before. I know what you mean about creating levels within a Text Editor. Its a pain!

Nice work though, look forward to testing this baby out!
---------------------------------------
Adam Goodchild
Your AndEngine Forum Moderator!
My Tutorials List
http://www.adam-goodchild.co.uk
---------------------------------------
Mimminito
 
Posts: 360
Joined: Wed Jul 21, 2010 3:08 pm
Location: Chelsmford, UK

Re: LevelEditor

Postby alex » Sat Oct 09, 2010 5:18 am

In addition to a level-editor, I thought that a path editor might be handy as well. Something that creates smooth loops and lets the developer specify what sprite indexes to show during whatever section of a path.
alex
 
Posts: 275
Joined: Thu Jul 01, 2010 8:21 pm

Re: LevelEditor

Postby blandonfrank » Sat Oct 09, 2010 8:18 pm

Looks pretty good. It will definitely help out to become a little bit more productive :)
I was/ it is so time consuming to create the levels on a text editor!
blandonfrank
 
Posts: 298
Joined: Fri Jul 23, 2010 9:46 pm

Re: LevelEditor

Postby Nicolas Gramlich » Sun Oct 10, 2010 1:02 pm

Update:
leveleditor_preview_2.png
leveleditor_preview_2.png (36.12 KiB) Viewed 7511 times

We are getting closer to something useful :)

Best Regards,
Nicolas
Nicolas Gramlich
Site Admin
 
Posts: 1734
Joined: Mon Jun 07, 2010 6:20 pm
Location: Schriesheim, Germany

Re: LevelEditor

Postby Radzell » Sun Oct 10, 2010 3:43 pm

what language is it in and are you going to release the source?
Radzell
 
Posts: 465
Joined: Sun Jul 04, 2010 8:52 am

Re: LevelEditor

Postby Nicolas Gramlich » Sun Oct 10, 2010 8:13 pm

It's written in Java, using Swing. I'm not 100% sure if it will be free/OpenSource but its a rather simple to make tool so that chances are very good that it will be free.

I'll maybe turn this into a very powerful editor in the future though :)

Best Regards,
Nicolas
Nicolas Gramlich
Site Admin
 
Posts: 1734
Joined: Mon Jun 07, 2010 6:20 pm
Location: Schriesheim, Germany

Re: LevelEditor

Postby Mimminito » Sun Oct 10, 2010 9:51 pm

Damn, should of used C#!! Would of been a lot easier I think :) But nice work, its very tempting to try and do something similar for educational purposes...
---------------------------------------
Adam Goodchild
Your AndEngine Forum Moderator!
My Tutorials List
http://www.adam-goodchild.co.uk
---------------------------------------
Mimminito
 
Posts: 360
Joined: Wed Jul 21, 2010 3:08 pm
Location: Chelsmford, UK

Re: LevelEditor

Postby Nicolas Gramlich » Mon Oct 11, 2010 2:25 am

The basics are pretty much finished now. I was just thinking of adding some kind of "templates" one could create, which would simply be a number of Attributes which wouldn't have to be entered each and every time for objects of the same 'category'.

I think I'll release a beta tomorrow :)

Best Regards,
Nicolas
Nicolas Gramlich
Site Admin
 
Posts: 1734
Joined: Mon Jun 07, 2010 6:20 pm
Location: Schriesheim, Germany

Next

Return to Updates

Who is online

Users browsing this forum: No registered users and 2 guests