Tagged Questions
0
votes
1answer
54 views
How to store NPC movement data?
In my 2D tile-based game, I have NPCs that move around on a fixed path. I am putting the information about the NPCs in a .plist file that is loaded on startup. The thing is, I'm not sure how to format ...
7
votes
2answers
738 views
In a 2D tile-based game, how should NPCs and tiles reference each other?
I'm making a tile engine for 2D games (seen from the top). Basically the world is composed of a grid of tiles.
Now I want to put for instance NPCs that can move on the map.
What do you think is ...
3
votes
1answer
705 views
Implementing a tile-based game
Which data structure should be best used to store a pile of tiles from which a player can pick a random tile?
5
votes
5answers
3k views
Alternative to 2D array in a tiled-map structure
After searching for a long time, I'm surprised this question was not asked yet. In a 2D, tiled-map game, how do you handle the map ? I'd be glad to have your point of view in any languages, though I'm ...
8
votes
3answers
554 views
Should I share the same tile structure for display and pathfinding?
I know how to display a 2D map with tiles.
I know how to make a pathfinding algorithm using A*.
Those two things demand a structure or a class. My question is : do you use the same structure for ...