Link to home
Start Free TrialLog in
Avatar of shady1024
shady1024

asked on

General question about game development in XNA concerning game entities class/framework

I'm designing a 2D game in XNA just to get a feel for things. I know how to load textures and draw sprites and all that, but I'm now attempting to create a way for my game to keep track of it's entities. That would be things like the player's object, the NPC's, and little stuff like the bullets or equipment or whatever. Not so much the UI or different menus, just the actual elements of the gameplay itself.

I've seen several examples of how to do this, but what I'm curious to know is whether or not XNA already has some kind of class created for this purpose, or would I need to create a new class and set it up however I would like? I would rather use something XNA already has developed because it would tie into the rest of the framework, but if not then that's fine. I just don't want to start coding and then realize that I've got to change things up. Thanks for any help on this and keep up the good work experts!

I did notice the gamecomponents class, as well as the drawablecomponent class, but I believe those are more for things like adding UI elements, as well as things like a screen shot taker and FPS viewer, but not so much for a player's position on the screen and stuff like that. Thanks again for any ideas.
ASKER CERTIFIED SOLUTION
Avatar of Babycorn-Starfish
Babycorn-Starfish
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial