A few design questions
Posted: Mon Mar 29, 2010 7:56 pm
I've been debating some design issues today and thought I would open my quandry up for some feedback/opinion.
I already have a basic Tile Engine that I'm going to be adding to and reworking through the course of this project, but I'm also thinking about how to do my NPCs and Treasure Chest stuff.
Currently, my tile engie is a Drawable Game Component build upon a 3d array. Initially, I had my array only hold ints that determined what tile to display.
Now I'm trying to figure out how I would connect my NPCs to the array(Map); as well as, my treasure chest stuff.
I have thought about having drawable game components for each of these and use some game services to interact with the Tile Engine and update the array(Map).
Should I just store the locations of the NPCs and chests in a Game Component and use those to define functions for interactions with each and only use the Tile Engine for updating the locations of each in the Array(Map) ?
Does this sound like a good idea?
I already have a basic Tile Engine that I'm going to be adding to and reworking through the course of this project, but I'm also thinking about how to do my NPCs and Treasure Chest stuff.
Currently, my tile engie is a Drawable Game Component build upon a 3d array. Initially, I had my array only hold ints that determined what tile to display.
Now I'm trying to figure out how I would connect my NPCs to the array(Map); as well as, my treasure chest stuff.
I have thought about having drawable game components for each of these and use some game services to interact with the Tile Engine and update the array(Map).
Should I just store the locations of the NPCs and chests in a Game Component and use those to define functions for interactions with each and only use the Tile Engine for updating the locations of each in the Array(Map) ?
Does this sound like a good idea?