Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [WIP] A Tile Map Editor and Loader designed for SFML!  (Read 8883 times)

0 Members and 1 Guest are viewing this topic.

R23MJ

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
[WIP] A Tile Map Editor and Loader designed for SFML!
« 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.
« Last Edit: June 11, 2015, 03:42:24 pm by R23MJ »

JackPS9

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [WIP] sf::Map - A Map Editor and Loader designed for SFML!
« Reply #1 on: June 09, 2015, 01:29:35 am »
In what format are the maps saved?

R23MJ

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: [WIP] sf::Map - A Map Editor and Loader designed for SFML!
« Reply #2 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.

JackPS9

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [WIP] sf::Map - A Map Editor and Loader designed for SFML!
« Reply #3 on: June 09, 2015, 03:15:25 am »
Is it possible to allow for different formats?

R23MJ

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: [WIP] sf::Map - A Map Editor and Loader designed for SFML!
« Reply #4 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.

JackPS9

  • Newbie
  • *
  • Posts: 28
    • View Profile
Re: [WIP] sf::Map - A Map Editor and Loader designed for SFML!
« Reply #5 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

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: [WIP] sf::Map - A Map Editor and Loader designed for SFML!
« Reply #6 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  ;)
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*

R23MJ

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: [WIP] sf::Tilemap - A Map Editor and Loader designed for SFML!
« Reply #7 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!

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: [WIP] sf::Map - A Map Editor and Loader designed for SFML!
« Reply #8 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. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

R23MJ

  • Jr. Member
  • **
  • Posts: 50
    • View Profile
Re: [WIP] sf::Map - A Map Editor and Loader designed for SFML!
« Reply #9 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.
« Last Edit: June 11, 2015, 03:45:11 pm by R23MJ »

 

anything