Skip to content

Caplitero/SFML-TileEditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SFML-TileEditor

This project is open source .

Major_PATCH 4/12/2022:

  • Added .vscode files for an even more easier debug
  • Adeed a Clock that can be used go get the loading time of maps
  • polygons can now be used

Major_PATCH 3/12/2022:

  • Remade the structure of the repository
  • Added cmake for easier debug
  • Add the maps in "Resources"

Major_PATCH 24/11/2022:

  • Now every Object can we stored in headers. If you go in headers->objects
    you can see how an Object must be wrote( the onCreate function is not optional)
    In H_Objects_h you will have all the info on how to add new classes.

Major_PATCH 22/11/2022:

  • The json parser has been created, there will be more features added to it, but for now
    it can be used to load the map. All you have to do is Create a Custom Class in Tiled
    (You will have to add a propriety "Class_ID" of type int and a value ),
    export the "propertytypes.json" to the folder where you have your map. And add the class
    to the objects in Tiled

Update 21/11/2022:

  • A json parser has been added and will be used to load custom classes from Tiled

Major_PATCH 20/11/2022:

  • Remove the get_Claass() function from objects
  • _Objects class with now be defined in tiled with type int for example 0 for walls , 1 for enemies
    ! TO DO (READ CUSTOM CLASSES FROM TILED MAP)

Major_PATCH 19/11/2022:

  • All Game OBJECTS are now defined by the Class _Object
    and they must have a Constructor, get_CLass that returns the name of the object
    and an outside defined function named Init that you will use to create new objects of that type
    ! Note that we use a class that stores all the Object vectors and we must set it as static
    because of warning erros
    ! To actually access the Class, you must create an object right after it (GIVEMEDATA)

Update 17/11/2022 :

  • You can now create your own Classes and customize how the
    object is made in ALL_OBJECTS_CLASS
    Give the object a class tag and the function it will use on create
    (Do not change anything in H_object.cpp)

Update 16/11/2022 :

  • Solved the find_keyValue String error
  • Solved the map loading vector error
    (Now the map will be constructed and then checked with load.
    it will return 1 if the map was found and loaded succesfully.
    0 if the map has had any problems loading ).
  • It can load maps that contain only objects and no tiles
  • Now you can set the objects in Tiles in the object section by defining its class in the properties

Update 6/4/2022 :

  • added the availabity to use xml files that contain comments
  • fixed the tag missmatch caused by the nodes without attributes