Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-06-26
1
Medium Priority
?
202 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 400 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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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 two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Integration Management Part 2
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

885 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