SFML community forums

General => SFML projects => Topic started by: R23MJ on June 09, 2015, 12:58:32 am

Title: [WIP] A Tile Map Editor and Loader designed for SFML!
Post by: R23MJ on June 09, 2015, 12:58:32 am
Despite the name, sf::Tilemap is not an extension to SFML, but rather a Map Editor built around it. This is a little something I was working on for my next few projects. It is a simplistic Map Editor with a few basic controls. This is just a project I like to work on when I'm stumped or bored.

Below is a list of current and planned features.

Controls
-------------------------------------
 - Left click to place tiles.
 - Right click to delete tiles.
 - Middle click to change current tile to tile at location.
 - LShift Left click to fill layer.
 - LShift Right click to empty layer.

Current Features
-------------------------------------
 - 512x512 Map Canvas to build on.
 - 32x32 Tile support.
 - Scrollable tile set window 256x(Tile set Height).
 - Layers.

Planned Features
-------------------------------------
 - Customizable Map Canvas.
 - 16x16 and 64x64 tile support.
 - Layer Attributes.
 - Jukebox : Add audio relative and non-relative to player.
 - Light : (LTBL2?)
 - Saving/Loading, prebuilt DLL for easy implementation.
 - Attach tileset window to Canvas window, option to drag it off.
 - Optimize code (Implement OOP)

Screenshots:
Blank Canvas, Showing off layout.
(click to show/hide)

Simple Test map I made.
(click to show/hide)

Tiles are public domain images, not created by myself.
Title: Re: [WIP] sf::Map - A Map Editor and Loader designed for SFML!
Post by: JackPS9 on June 09, 2015, 01:29:35 am
In what format are the maps saved?
Title: Re: [WIP] sf::Map - A Map Editor and Loader designed for SFML!
Post by: R23MJ on June 09, 2015, 01:53:06 am
Quote
In what format are the maps saved?
I was considering adopting the Tiled format, however I may store it in my own format. As stated there will be prebuilt libraries distributed with it for loading convenience.
Title: Re: [WIP] sf::Map - A Map Editor and Loader designed for SFML!
Post by: JackPS9 on June 09, 2015, 03:15:25 am
Is it possible to allow for different formats?
Title: Re: [WIP] sf::Map - A Map Editor and Loader designed for SFML!
Post by: R23MJ on June 09, 2015, 03:32:23 am
Is it possible to allow for different formats?
Yes, I might do a compressed and non-compressed, similar to Tiled.
Title: Re: [WIP] sf::Map - A Map Editor and Loader designed for SFML!
Post by: JackPS9 on June 10, 2015, 12:32:22 am
I have to make a project like this myself at some point XD
PS depending on how many layers you want your editor to have you can go bigger then 512x512
I am using 1000x1000 myself with 2 layers
Title: Re: [WIP] sf::Map - A Map Editor and Loader designed for SFML!
Post by: Hapax on June 10, 2015, 10:17:03 pm
"Map" is rather ambiguous. It could be a map of anything to anything. Tilemap/TileMap might be more appropriate and would suggest that it's a map of tiles  ;)
Title: Re: [WIP] sf::Tilemap - A Map Editor and Loader designed for SFML!
Post by: R23MJ on June 11, 2015, 02:01:07 am
"Map" is rather ambiguous. It could be a map of anything to anything. Tilemap/TileMap might be more appropriate and would suggest that it's a map of tiles  ;)

I suppose, I'll go ahead and go with sf::Tilemap so there is no confusion on what it actually is. Thank you for the suggestion!
Title: Re: [WIP] sf::Map - A Map Editor and Loader designed for SFML!
Post by: eXpl0it3r on June 11, 2015, 10:50:53 am
If sf:: is actually used as namespace, I advise you to use a different one to prevent confusion - some people might think it's something official from SFML. ;)
Title: Re: [WIP] sf::Map - A Map Editor and Loader designed for SFML!
Post by: R23MJ on June 11, 2015, 03:39:16 pm
If sf:: is actually used as namespace, I advise you to use a different one to prevent confusion - some people might think it's something official from SFML. ;)

I can see where that would be a problem. Is there anyway to actually change the title of the thread?

Edit:: Found out how to change thread name.