Joined: 14 Feb 2009 Posts: 33 Location: Planet 3 Solar System Orion Arm Spiral Galaxy Milky Way
Posted: Sun Dec 27, 2009 12:26 am Post subject: General Data structure for a 2-D Map's Content
My game is a 2-D game with monster moving in the map for me to choose to fight. I just wondering what sort of common data structures would be used to store the content of a map. e.g. what monster is at which coordinate.
I want to be able to know what is in where and automatically determine if I want to fight it or looks somewhere else.
But I got no clue as to where to start looking for data.
You could start by performing memory scans to locate the coordinates of the player or monster. I won't go into detail on this process as it's very simple and covered in many tutorials. By the sound of it, this game will have very simple structures, perhaps just one large area allocated for all the key bits and pieces.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum