EzMap - GLBasic coded Map Editor

Previous topic - Next topic

spicypixel

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


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.

bigsofty

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)

mentalthink

 :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:

hardyx

That's very cool and useful for game programmers!!
Thanks.

spicypixel

#4
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 :)
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

That could be very useful - will it be able to handle animated tiles ?

spicypixel

#6
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.
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.

Wampus

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.

spicypixel

#8
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.
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.

spacefractal

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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Wampus

How is the progress on this coming along?

erico

thread skepd me :(
I would like to know the whereabouts of it too :o

..please?

spicypixel

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.

Wampus

Cool. Get well soon and cheers for the update.  :)

Schranz0r

I make it sticky, its a cool project!
I <3 DGArray's :D

PC:
AMD Ryzen 7 3800X 16@4.5GHz, 16GB Corsair Vengeance LPX DDR4-3200 RAM, ASUS Dual GeForce RTX™ 3060 OC Edition 12GB GDDR6, Windows 11 Pro 64Bit, MSi Tomahawk B350 Mainboard