Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Work in Progress / 2D Level/Tile Editor

Author
Message
pizzaman
20
Years of Service
User Offline
Joined: 18th Feb 2004
Location: Gateshead, UK
Posted: 10th Apr 2005 03:05 Edited at: 30th Apr 2005 09:40
Hi All

I love to create 2D demos and little games, but designing the levels takes ages because you've got to create a level editor for the game. So I've started to build a generic level editor, and for about the past 2/3 months I've been working on the 2D tile based level editor on and off (don't have much time anymore ).

Note : The features list will get updated as I make more progress

Current Features: (updated as of 30th April)
Imports/Exports map data to a file
Can import and export a list of all the tile image names used in the program
Load images as tiles from anywhere on your computer
Load a whole folder of images as tiles.
Tiles can be of any (reasonable) dimensions
Make maps of upto 65535 by 65535 tiles (if your ram can handle a map that big!)
Hide/Show grid and change the grids colour
Zoom in/out to any zoom level.
Scroll map
Maps can have multiple layers (upto 10 but could add more easily)
Flood fill button for filling large areas of tiles


Screenies:

This shows the normal view, except I changed the grid colour to pink!


This shows the map at the maximum zoomed out level


This shows the map at 200% zoomed in with the grid off


Comments and critism welcome

Skeletor
20
Years of Service
User Offline
Joined: 21st Jun 2004
Location: florida
Posted: 10th Apr 2005 03:10
Wow, that looks sweet! After you release your map editor, there will be no use for mine lol!


http://www.angelfire.com/games5/db_games/
dj blackdragon3710
20
Years of Service
User Offline
Joined: 5th Nov 2004
Location: In LaLa land
Posted: 10th Apr 2005 08:15
Ahh, but will it support alternate GFX? Anyway, good job. Gotta love competiton....

It has been said that the body is a slave to the mind. Only the mind knows no freedom.
pizzaman
20
Years of Service
User Offline
Joined: 18th Feb 2004
Location: Gateshead, UK
Posted: 11th Apr 2005 03:26
@ Skeletor
Thanks for the compliments and of course there will be a use for your editor, it provides users the knowledge are how to build their own editors. Also I love competition, makes me more determined to complete this and who knows, yours could be better.

@ dj blackdragon3710
Quote: "will it support alternate GFX?"


Not sure what you mean. If you mean can you load your own images, then yes you can. Look at the updated features list for more info - i just updated it.

pizzaman
20
Years of Service
User Offline
Joined: 18th Feb 2004
Location: Gateshead, UK
Posted: 30th Apr 2005 09:50
Sorry for the lack of updates, for anyone who is following this. I've had loads of course work to do which still isn't finished.

Anyways I had a little time to work on this and now maps with multiple layers are possible. Also I now have a flood fill button which will fill the area with the tile you want with just a click.

However the best thing I've done is optimzed a little bit of my code and now placing tiles is super fast.

In the next few weeks I want to show what my baby can do So I'll try and get a simple 2D platform demo done with one of my maps from the editor, so you can see how fast the end product will be and how good (or bad) it will look.

FakeBlood
21
Years of Service
User Offline
Joined: 18th Nov 2002
Location: Alabama, United States
Posted: 30th Apr 2005 12:05
Looking awesome. I'm in a slump with my editor for now...
Had to choose to do it in VB didn't I lol
pizzaman
20
Years of Service
User Offline
Joined: 18th Feb 2004
Location: Gateshead, UK
Posted: 2nd May 2005 04:58
Thanks for the compliments and I know what you mean about VB. I've made a few apps in VB before (nothing graphical though); and though its great setting up the windows GUI and accessing those components, I can imagine it being quite difficult to something graphical in it.

pizzaman
20
Years of Service
User Offline
Joined: 18th Feb 2004
Location: Gateshead, UK
Posted: 14th May 2005 06:04
I'm going to be taking a break from this for a while. I've got lots exams coming up, starting next week infact, so I won't be updating this for a while.

Also I'm going to enter the compo, however this will actually benefit the editor. The game I'm doing will have to scroll a map, so as a by-product of this, I'll be working on the editor too - after my exams of course.

Anyways chow

fasdfsdaf
19
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 14th May 2005 16:40
how do you detect collision between the water and the land? that's one question.

Another:

How does this export? .bmp?

[me]"My throat froze!"
[other person]"Force quit it next time..."
A.K.A Death Stalker
pizzaman
20
Years of Service
User Offline
Joined: 18th Feb 2004
Location: Gateshead, UK
Posted: 14th May 2005 19:49
Each of the tiles has a specific image number associated with it. Therefore if you were on a water tile say image number 12, in your code you could say

if TileNum = 12 then [Do collision code]

or if you do not like to do collision like that you just put all the water tiles on a separate layer. This layer of tiles is then classed as not walkable in code and so you have collision.

The editor exports 2 files, a map file and an image list file.

The map file stores the number of the tile in the correct map position, so you can access the data for drawing the map to screen (which is very simple). It also contains some header data for the map size, how many layers there are etc.

The image list file stores all the images used in the program along with their respective image numbers.

Also if you want to export the map as .bmp file you can, this would only be used if you wanted to make a guide to your game, or if you wanted to shrink the map in an image editor for use as a mini map or something.

tjg92
19
Years of Service
User Offline
Joined: 25th Mar 2005
Location: Texas
Posted: 11th Jun 2005 14:20
I could prolly find some use for it! It looks very proffesional. Please allow for a lot more layers and possibly the ability to export for other things, like vb or delphi or c++ in case other people need it. This would boost it's popularity by,... well, alot.

crap
ConorH
21
Years of Service
User Offline
Joined: 5th Feb 2003
Location:
Posted: 9th Aug 2005 06:00
Hey Pizzaman, any hope for this project?

p.s sent you an email (pizzaman_85_uk@yahoo) btw

its my new rat tail dog!
Mattman
21
Years of Service
User Offline
Joined: 5th Jun 2003
Location: East Lansing
Posted: 9th Aug 2005 08:57
Very impressive, can't wait to try it out.
pizzaman
20
Years of Service
User Offline
Joined: 18th Feb 2004
Location: Gateshead, UK
Posted: 9th Aug 2005 17:04
I won't be continuing on this editor unfortunately, mainly due to losing some source code and the fact it had a nasty bug in it.

However, the good news is I have restarted on a new editor, so expect to see a WIP in a few weeks!

Code Ninja
20
Years of Service
User Offline
Joined: 17th Dec 2003
Location: AZ, U.S.
Posted: 28th Aug 2005 00:53
Crap... I was looking forward to that editor. Well, good luck on the new editor.

Dragael Software
Current Project: Nothing worth mentioning

Login to post a reply

Server time is: 2024-11-17 01:24:19
Your offset time is: 2024-11-17 01:24:19