Solved

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

Posted on 2008-06-26
1
195 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
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Alert on Server memory 2 22
start a process from a service 3 22
Store results in vb.net 3 20
VB.Net/LINQ: ".Contains" condition not finding existing result in MSSQL 16 35
As game developers, we quickly learn that Artificial Intelligence (AI) doesn’t need to be so tough.  To reference Space Ghost: “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer. (http://www.youtu…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

773 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