PDA

View Full Version : Creating new Classes :S



EggoH
09-01-2011, 04:19 PM
Hey guys, I've got another problem with C# on xna games studio. Would anybody want to help me understand what I'm being told to do here?

"Create a player class that extends from or contains the Sprite class. This player class should contain the functionality for moving the spaceship through user input, which is specific to the player's sprite.
* Create a new class, Player
* Either extend the Sprite class (public class Player : Sprite) or include the Sprite as a member of the Player class
* For the Player class to Initialise the Sprite during its constructor, it will need to be passed ContentManager and GraphicsDeviceManager as arguments from the Game1 class
* The Player class should have an Update() method that is called from Game1.Update(). This is where user input should be checked"

I'm a beginner to C# so help would be great!

If you need the code I've done just say, thanks!

WILL
09-01-2011, 08:52 PM
Hi. Thanks for the post, but are you aware that this site is for Pascal (http://en.wikipedia.org/wiki/Pascal_%28programming_language%29) and Object Pascal (http://en.wikipedia.org/wiki/Object_Pascal) programmers? Some may use C# here as well, but you won't find a lot of help in that language here. Sorry. :)

farcodev
24-01-2011, 02:32 AM
You can always try the gamedev.net forums, they all talk c++/c# since it seems i'm the only objectpascal dev in this community