Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for good project samples of XNA who containing GameObject class, since I'm having problems with it and I'd like to get the idea of it.

Can anyone post a link for downloading source code please?

Thank you!

EDIT: 2D games only.

share|improve this question

migrated from Aug 15 '11 at 13:46

This question came from our site for professional and enthusiast programmers.

closed as not a real question by Tetrad Feb 27 '12 at 3:45

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

What, exactly, do you mean by a "GameObject" class? (It's not part of XNA itself). – Andrew Russell Aug 15 '11 at 12:59
@Andrew Russell I know it isn't but I'm using this kind of class and inherit it to other classes. But the thing is that I have problems with it. – Rich Porter Aug 15 '11 at 13:01
@Rich Porter: What exactly do you want the GameObject class to do? This question is not very constructive. – Neil Knight Aug 15 '11 at 14:00
@Rich Porter Perhaps this answer contains some relevant info:… – Andrew Russell Aug 15 '11 at 14:38
When you say you're having problems with it, is there an existing class you're using and there's a specific problem with it, or are you trying to write your own and don't know where to start? Either way there isn't enough detail here. – Tetrad Aug 15 '11 at 22:33

see full XNA source code samples

share|improve this answer
I'm looking for 2D games, forgot to mention it. – Rich Porter Aug 15 '11 at 12:50

Searching GitHub for xna GameObject gives a fair amount of results. Otherwise the MSDN contains an exemple project named FuelCell, which have a chapter that make use of gameObject and some of its feature.

share|improve this answer
I'm looking for 2D games, forgot to mention it. – Rich Porter Aug 15 '11 at 12:50

Take a look at this guide... Especially the sprite class witch is this examples "gameobject"

share|improve this answer