Tutorial 3.4: Adding extra info to our maps - Delphi-PRAXiS
Summary
public class MapInfo { String mapName; String mapFileName; // TMX file // Initial state int time; // Seconds to survive Vector2 orbStartPos; // Initial plaement of orb float orbStartSize; // Radius meters // Music // ... // Enemy waves // ... } // MapInfo A few properties I can imagine right now, but sure there is more to come. Im confident graphics wise (since I wasnt planning spectacular features anyway), but we also need to make sure our physics and A.I. But lets start with MapInfo.java.public class MapInfo {String mapName;String mapFileName; // TMX file// Initial stateint time; // Seconds to surviveVector2 orbStartPos; // Initial plaement of orbfloat orbStartSize; // Radius meters// Music// ...// Enemy waves// ...} // MapInfoA few properties I can imagine right now, but sure there is more to come. Such as the background music, or start position of the Orb.You can in fact add such custom properties to your map in Tiled. This type of information doesnt fit in a few simple map attributes, it needs a more delicate structure.Buuutt We may as well solve this by creating spawners in Tiled.