Tutorial 3.4: Adding extra info to our maps - Delphi-PRAXiS

General News

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. I’m confident graphics wise (since I wasn’t planning spectacular features anyway), but we also need to make sure our physics and A.I. But let’s 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 doesn’t 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.

Classifications

industries
Retail
applications
Networking and Cloud

AskAI Classifications

Labels
No AI classifications detected

Linked Companies