Author Topic: EzMap - GLBasic coded Map Editor  (Read 12586 times)

Offline spicypixel

  • Prof. Inline
  • *****
  • Posts: 646
  • Pixel Artist
    • View Profile
    • SpicyPixel.net
EzMap - GLBasic coded Map Editor
« 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

YouTube Sleepy Guide
<a href="http://www.youtube.com/watch?v=gno5KPc3_h0" target="_blank">http://www.youtube.com/watch?v=gno5KPc3_h0</a>

« Last Edit: 2015-Apr-01 by spicypixel »
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2606
    • View Profile
Re: EzMap - GLBasic coded Map Editor
« Reply #1 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?
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)

Offline mentalthink

  • Prof. Inline
  • *****
  • Posts: 3366
  • Integrated Brain
    • View Profile
Re: EzMap - GLBasic coded Map Editor
« Reply #2 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:

Offline hardyx

  • Community Developer
  • Dr. Type
  • ******
  • Posts: 491
    • View Profile
Re: EzMap - GLBasic coded Map Editor
« Reply #3 on: 2012-Nov-16 »
That's very cool and useful for game programmers!!
Thanks.

Offline spicypixel

  • Prof. Inline
  • *****
  • Posts: 646
  • Pixel Artist
    • View Profile
    • SpicyPixel.net
Re: EzMap - GLBasic coded Map Editor
« Reply #4 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 :)
« Last Edit: 2013-Apr-01 by spicypixel »
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

MrTAToad

  • Guest
Re: EzMap - GLBasic coded Map Editor
« Reply #5 on: 2012-Nov-16 »
That could be very useful - will it be able to handle animated tiles ?

Offline spicypixel

  • Prof. Inline
  • *****
  • Posts: 646
  • Pixel Artist
    • View Profile
    • SpicyPixel.net
Re: EzMap - GLBasic coded Map Editor
« Reply #6 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.
« Last Edit: 2012-Nov-16 by spicypixel »
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Offline Wampus

  • Prof. Inline
  • *****
  • Posts: 1004
    • View Profile
Re: EzMap - GLBasic coded Map Editor
« Reply #7 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.

Offline spicypixel

  • Prof. Inline
  • *****
  • Posts: 646
  • Pixel Artist
    • View Profile
    • SpicyPixel.net
Re: EzMap - GLBasic coded Map Editor
« Reply #8 on: 2012-Nov-26 »
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.
« Last Edit: 2012-Nov-26 by spicypixel »
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3606
    • View Profile
    • Space Fractal
Re: EzMap - GLBasic coded Map Editor
« Reply #9 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.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline Wampus

  • Prof. Inline
  • *****
  • Posts: 1004
    • View Profile
Re: EzMap - GLBasic coded Map Editor
« Reply #10 on: 2013-Mar-06 »
How is the progress on this coming along?

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 4181
    • View Profile
    • Portfolio
Re: EzMap - GLBasic coded Map Editor
« Reply #11 on: 2013-Mar-06 »
thread skepd me :(
I would like to know the whereabouts of it too :o

..please?

Offline spicypixel

  • Prof. Inline
  • *****
  • Posts: 646
  • Pixel Artist
    • View Profile
    • SpicyPixel.net
Re: EzMap - GLBasic coded Map Editor
« Reply #12 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 :-)
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Offline Wampus

  • Prof. Inline
  • *****
  • Posts: 1004
    • View Profile
Re: EzMap - GLBasic coded Map Editor
« Reply #13 on: 2013-Mar-06 »
Cool. Get well soon and cheers for the update.  :)

Offline Schranz0r

  • Premium User :)
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 5013
  • O Rly?
    • View Profile
Re: EzMap - GLBasic coded Map Editor
« Reply #14 on: 2013-Mar-07 »
I make it sticky, its a cool project!
I <3 DGArray's :D

PC:
AMD RYzen 7 1700 @3.9Ghz, 16GB HyperX Fury 2666Mhz Ram, ASUS ROG GTX 1060 STRIX 6GB, Windows 10 Pro 64Bit, MSi Tomahawk B350 Mainboard