Solved

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

Posted on 2008-06-26
1
199 Views
Last Modified: 2013-12-16
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.
0
Comment
Question by:shady1024
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
Babycorn-Starfish earned 100 total points
ID: 21881820
Hi,

as a starter, try looking at the sample game that comes with XNA, its a spaceship that shoots rocks from what i remember, see how they implemented the functionality you want.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question