I am in need of a class to handle tIDE map editor files. I need the class to provide me with the following:
1) A class that handles the loading, drawing, and updating of tIDE maps. The class should allow for a constructor that loads the desired map object, accepts a speed, and direction (horizontal, vertical. The draw/update methods should handle scrolling the map at the desired speed and collision with other objects.
The tIDE editor can be found at: [login to view URL]
There are examples on the site of loading in and working with the map files.
I have a class I am already using for collision detection in the rest of my game. I will provide it to you. The map files collision detection should be added to my existing collision manager class. It will handle collisions between the player, 'space objects', 'enemies', and 'projectiles'. I already have collision detection working between all mentioned entities. Your only job would be integrating the map file collisions.
For collisions I currently draw a radius around the center point of a sprite and then check to see if the radius between the two points is lower than the two points. This has worked well and I prefer it to bounding box collisions. This should be kept in mind when doing the collision system.
The map itself will always be divided into three separate parts. The bottom layer is always the background layer and collisions will never happen here. Anything placed on the 2nd or middle layer always result in a collision. Things drawn on the last layer are enemy spawns and are interpreted by the map class.
You should provide examples in your sample application that demonstrates the class. These examples should detail the reading of attributes set forth in the map file both for global and individual tile level.
The sample itself should use your class to scroll the created map at a specified speed either vertical or horizontal while implementing collision detection. You can use little blocks for the images as far as I am concerned. I just want the class working as intended.