Botre Posted July 15, 2014 Author Posted July 15, 2014 Drawing tiles, such power. xD Collision flags for areas (allowing for proper getRandomPosition methods :p) and room detection.
Mysteryy Posted July 15, 2014 Posted July 15, 2014 Collision flags for areas (allowing for proper getRandomPosition methods ) and room detection. What are you using it for anyway? ^_^
Botre Posted July 15, 2014 Author Posted July 15, 2014 What are you using it for anyway? Area.getRandomPosition() currently returns a random tile without accounting for its collision flag, which an be a huge ballache in certain situations :p Will probably make a getClosestPosition() as well, but still testing some stoof (hence the tile painting for debugging) The room detection is mainly to check if you are in the same room as an entity, and if not it will look for an obstacle to handle to get access to that room ^^
Khaleesi Posted July 15, 2014 Posted July 15, 2014 (edited) What are you using it for anyway? For A* pathfinding and to check if A tile is walkable xD Edited July 15, 2014 by Khaleesi
Swizzbeat Posted July 15, 2014 Posted July 15, 2014 "All" as in web walk ? Well with web walking you wouldn't need map data as all the nodes are predefined with their own edges. This would be more of a global pathfinder to construct a path from point A to B using (obviously) the collision flags.
Botre Posted July 15, 2014 Author Posted July 15, 2014 (edited) Well with web walking you wouldn't need map data as all the nodes are predefined with their own edges. This would be more of a global pathfinder to construct a path from point A to B using (obviously) the collision flags. What did u mean by "all" mapdata then ? Edited July 15, 2014 by Botrepreneur
Swizzbeat Posted July 15, 2014 Posted July 15, 2014 What did u mean by "all" mapdata then ? The only thing this data does is allow you to find a path/position in your current region.
Botre Posted July 15, 2014 Author Posted July 15, 2014 (edited) The only thing this data does is allow you to find a path/position in your current region. What other data are you talking abouuuuuuuuuuuuuuuuuuuuuuuuut (what am I missing out on ? ) Edited July 15, 2014 by Botrepreneur