This project is open source .
- 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
- Remade the structure of the repository
- Added cmake for easier debug
- Add the maps in "Resources"
- 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.
- 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
- A json parser has been added and will be used to load custom classes from Tiled
- 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)
- 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)
- 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)
- 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
- added the availabity to use xml files that contain comments
- fixed the tag missmatch caused by the nodes without attributes