GLBasic forum

Main forum => Beta Tests => Topic started by: spicypixel on 2012-Nov-15

Title: EzMap - GLBasic coded Map Editor
Post by: spicypixel on 2012-Nov-15
This is something that I've been working on, as of yet it's still unfinished however it shouldn't be long before I have a working version with full map loading and saving. I will be releasing the source code so you can tailor, rewrite or tweak the map output etc. to exactly what you require.

I am now going to use a date naming convention for the EXE and SOURCE so it will make it easy for people to realise what version is online. This latest version now has a data layer which you can edit. Loading and Saving is now correctly implemented. Feel free to dabble with this. I will endeavour to write a tutorial/manual to assist some of the quirkier aspects of the app :)

Download EzMap 13.0316 (Includes Source) (prev 12.1124)

LATEST VERSION BEFORE I STOPPED WORKING ON EZMAP
https://drive.bitcasa.com/send/mJlto5hKqrZqy0N2e_ALH4Qp71u-zjlEvQZpLN3LxlhY (https://drive.bitcasa.com/send/mJlto5hKqrZqy0N2e_ALH4Qp71u-zjlEvQZpLN3LxlhY)

YouTube Sleepy Guide


(https://dl.dropbox.com/u/1324810/dump/ezmap.png)
Title: Re: EzMap - GLBasic coded Map Editor
Post by: bigsofty on 2012-Nov-16
Very good, it's obviously at an early stage but it looks great!

In the way of an early request, please add a right click, grab the current tile under the cursor for drawing with?
Title: Re: EzMap - GLBasic coded Map Editor
Post by: mentalthink on 2012-Nov-16
 :O :O

Que guapo!!!

Spicypixel this it´s very nice... the Icons are Nice nice... remenber to Amiga 500 in some applications...

I´m working in something similar for make games quick, but your Editor seems very good...

:good:
Title: Re: EzMap - GLBasic coded Map Editor
Post by: hardyx on 2012-Nov-16
That's very cool and useful for game programmers!!
Thanks.
Title: Re: EzMap - GLBasic coded Map Editor
Post by: spicypixel on 2012-Nov-16
Quote from: bigsofty on 2012-Nov-16
Very good, it's obviously at an early stage but it looks great!

In the way of an early request, please add a right click, grab the current tile under the cursor for drawing with?

I can add right-click to grab the tile underneath the cursor (included source in this post you could always add it :)) presently right-click erases based on the brush size held.

Keys (forgot to add doh!)
-----------------------------------
//  T  - Change Tilesize
//  G  - Grid Toggle
//  J  - Swap Screens
//  V  - Change Viewport
//  B  - Grab Brush (once brush is grabbed you're in draw mode)

Yay I'm contributing :)
Title: Re: EzMap - GLBasic coded Map Editor
Post by: MrTAToad on 2012-Nov-16
That could be very useful - will it be able to handle animated tiles ?
Title: Re: EzMap - GLBasic coded Map Editor
Post by: spicypixel on 2012-Nov-16
Quote from: MrTAToad on 2012-Nov-16
That could be very useful - will it be able to handle animated tiles ?

I hadn't considered animated tiles at this stage but it can be done. The next thing I'm going to add is a data layer which I can implement on the tile screen so whenever you use a specific tile (tile brush) the data layer will be updated. Handy for solid collision blocks or any property relating to the specific tile (save doing it after map creation). I will also most likely then allow editing of the data layer directly on the map whereby you can implement data information pertaining to say air vents whereby the higher above the vent the weaker the current and obviously the graphic tile on the tilesheet(blocksheet) can have a data value already set. Just thoughts in my head atm :)

Just updated the source files (first post) to include loading and saving of the map data. The file format isn't set in stone so use as you see fit.
Title: Re: EzMap - GLBasic coded Map Editor
Post by: Wampus on 2012-Nov-16
Very promising and nifty looking. Since you are releasing the source code too that is highly useful. I imagine it could be quickly customised to fit whatever game engine its intended for that way.
Title: Re: EzMap - GLBasic coded Map Editor
Post by: spicypixel on 2012-Nov-26
Quote from: Wampus on 2012-Nov-16
Since you are releasing the source code too that is highly useful. I imagine it could be quickly customised to fit whatever game engine its intended for that way.

Exactly ;)

I have also updated the EzMap editor download link to the latest version (12.1124) if you want to grab that. No additional source code since the original download but I will add it when I've finished a few more routines that I want to include.

The latest version has a data layer which can be edited to provide numerical properties (other than the tile value which you know from the graphic used) to each tile in the tileset. This used in its most basic form would be to set say floor and wall tiles (0 = no collision, 1 = solid). Once these are set in the blockscreen each time they are used in the map editor the tiles will have the properties already pre-defined. In addition when in map mode with dataedit enabled you can copy and paste data values into other map tiles directly. I'm sure you will work out how best you can use this in your games :D

The datasheets are included as png's as it allow the user to amend the file to depict say water, air current (strengths), lights, switches etc...

There are a few other bits and pieces added, such as loading and saving (proper format) with additional RLE compression to be added whilst maintaining map compatibility. A tile data information file (.tdi) is saved in the same folder as the imported tilesheet and this has the details of any numerical data edited in the tilesheet. Deleting the .tdi will default to the original tile data values. Easier to use than explain I guess.
Title: Re: EzMap - GLBasic coded Map Editor
Post by: spacefractal on 2012-Nov-28
This is something that should been included as standard tool in glbasic, because its look very nice and many could have nice use of it. Howover myself I did use Tiled as my editor and used a lots of layers in Greedy Mouse. But its  does look like a good tool for many use.
Title: Re: EzMap - GLBasic coded Map Editor
Post by: Wampus on 2013-Mar-06
How is the progress on this coming along?
Title: Re: EzMap - GLBasic coded Map Editor
Post by: erico on 2013-Mar-06
thread skepd me :(
I would like to know the whereabouts of it too :o

..please?
Title: Re: EzMap - GLBasic coded Map Editor
Post by: spicypixel on 2013-Mar-06
I'm using it presently to create a couple of platformers. I am ill at the moment with manflu lol. Will post the latest source and some instructions on usage in the next few days :-)
Title: Re: EzMap - GLBasic coded Map Editor
Post by: Wampus on 2013-Mar-06
Cool. Get well soon and cheers for the update.  :)
Title: Re: EzMap - GLBasic coded Map Editor
Post by: Schranz0r on 2013-Mar-07
I make it sticky, its a cool project!
Title: Re: EzMap - GLBasic coded Map Editor
Post by: erico on 2013-Mar-07
Quote from: Schranz0r on 2013-Mar-07
I make it sticky, its a cool project!

Absolutly!

I Hope you are doing better Spicypixel.
Title: Re: EzMap - GLBasic coded Map Editor
Post by: spacefractal on 2013-Mar-07
even Im dont use it (im did allready uses Tiled), this EzMap editor derserve to been a official map editor, eventuelly included in v11. This because more more ask about this kind of editor. Its a cool project and its seen very nice too  :)
Title: Re: EzMap - GLBasic coded Map Editor
Post by: spicypixel on 2013-Apr-01
Quote from: erico on 2013-Mar-07
I Hope you are doing better Spicypixel.

Much better thanks mate ;)

All you GLB'ers I've updated the first post with a new version of EzMap (13.0316) it includes full source-code and a YouTube guide of how things work together. If you visit YT direct you have the chance to utilise the 720HD quality version of the video. HAPPY EASTER GLB'ers ;)

:good:
Title: Re: EzMap - GLBasic coded Map Editor
Post by: mentalthink on 2013-Apr-01
FANTÁSTICO!!! This it's really really nice...  :nw: :nw: :nw:
Title: Re: EzMap - GLBasic coded Map Editor
Post by: erico on 2013-Apr-03
Video looks really great!
Title: Re: EzMap - GLBasic coded Map Editor
Post by: bigsofty on 2013-Apr-03
I agree, nice job!  :good:
Title: Re: EzMap - GLBasic coded Map Editor
Post by: Moru on 2014-Sep-04
Seems the download link of this very interesting project is dead. Any chance of uploading it to the forum instead of dropbox?
Title: Re: EzMap - GLBasic coded Map Editor
Post by: spacefractal on 2014-Sep-04
normally that should not been happens. but if he have deleted the file or renamed the file on his harddrive, then the link will been gone. That why my glbasic dropbox file leave as it are. Im do have a paid dropbox account.
Title: Re: EzMap - GLBasic coded Map Editor
Post by: spicypixel on 2014-Sep-05
I will re-upload this file later on today. I have been working on a new version of the editor called SPRiTEX, although EzMap probably deserves a thread of its own. I'll make sure I upload the latest version + source code.