-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|508|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
SoCoder -> Blogs Home -> Blogs


 
steve_ancell
Created : 28 December 2017
Edited : 29 December 2017

2D TileMap Editor



Some time ago I began dabbling in the world of Winforms C#, and have been working on a tile map editor. Here is a sort of working, and probably very buggy, prototype version. There are also a couple of map examples that I lobbed in with it.

Also not everything is implemented yet, still lots to to. At the moment multiple tilesets can be loaded, layers can be added or removed but can't yet insert layers in between current layers. Select doesn't work yet, and some other stuff also needs implementing. Tilesets can be selected from the library, and layers can also be selected, and can also be hidden and shown by clicking the eyeball icons next to the relevant layer in the list. The work area background and grid colour can also be changed with the colour picker, buttons for that are down in the bottom-left corner.

To load and save maps you will need to use the buttons along the bottom of the application, the ones at the top-left don't work yet.

In the meantime here is a download link, I will update as and when I get other stuff done. TMEditor (.zip)
.

 

Comments


Thursday, 28 December 2017, 15:20
steve_ancell
I've lost count of how many times I've binned and then started over again.
Thursday, 28 December 2017, 18:26
steve_ancell
I forgot to ask earler, anyone that gives this a test, please can you confirm that it works. Any critisism is also welcomed: am I on the right track to making something good or do you think it's complete donkey crap?; your views will be much appreciated.
Thursday, 28 December 2017, 22:22
Pakz
I seem not to be able to load anything in it bacause on my desktop the bottom part is not visible.
Friday, 29 December 2017, 00:02
Jayenkai
Same.
My laptop's resolution is 1366x768.
Friday, 29 December 2017, 00:42
steve_ancell
The application is 1320x800, are you trying this on a phone or sumfink! ... Na!, seriously, I'll do something to make it smaller. What resolutions are you using?

|update| -=-=- |update|
I will also make it size responive eventually.
Friday, 29 December 2017, 01:00
steve_ancell
I've just done a quick 'n' dirty workaround, you should be able to get to those buttons now that I've shoved them up top and made the application shorter. I will eventually shove stuff in dropdown menus.

|update| -=-=- |update|
Just use the same link up top, I've updated it.
Friday, 29 December 2017, 01:13
Jayenkai
Good practice for resolution stuff, as far as I'm concerned, is to try and make a testcard.
Square grid, coloured boxes around the edges, circle in the middle.. Then try to get it to fit into whatever window size you can imagine.
I used that when first working in Monkey, to learn the ropes about how to design within multi-resolutions.
In general, keep track of the space you have available, and do a lot of subtracting!!

GUI on the right. GUI at the bottom. GUI at the top.. Then you have the rest of the space for the main stuff..
Friday, 29 December 2017, 01:43
steve_ancell
I'll probably shrink it down further than what I just did, 1280x768 will most likely do.
Friday, 29 December 2017, 06:51
Pakz
I could load now. It all seems to work.

If you are really serious about making a map editor and have some time(a lot! ) then why not use tiled or a other populair map editor as a reference? Copying features and such.

But for simpler things a barebone editor would be good enough I guess.
Friday, 29 December 2017, 06:57
steve_ancell
@Pakz:
Simple short answer, I just wanted to brew my own. Plus it gave me a reason to learn about Winforms.