Sign in to follow this  

RPG Design Questions - Feedback Requested

This topic is 2816 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?mattheweston Chaos Rift Newbie Posts: 37 Joined: Mon Feb 22, 2010 2:32 am

Share this post


Link to post
Share on other sites
Quote:
Original post by murdock
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?mattheweston
Chaos Rift Newbie


Posts: 37
Joined: Mon Feb 22, 2010 2:32 am


I too encountered this issue when I was working on my isometric game engine. I concluded that each player would not be directly connected to the tiles. Instead, when doing logic related code(such as path finding(collision detection), etc) I would locate which tile the player was on. The same worked for rendering. I would find out which tile the player was on, and then render him as an object would be rendered on the tile.

Share this post


Link to post
Share on other sites
That much I figured out. I'm thinking that it's best to do most of the logic for NPCs and Treasure Chests, etc in the component and then just update the map accordingly. I'm starting to think that the map will be used pretty much just for rendering.

Share this post


Link to post
Share on other sites

This topic is 2816 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this