Results 1 to 3 of 3

Thread: Creating new Classes :S

  1. #1

    Creating new Classes :S

    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!

  2. #2
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    Hi. Thanks for the post, but are you aware that this site is for Pascal and Object Pascal programmers? Some may use C# here as well, but you won't find a lot of help in that language here. Sorry.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  3. #3
    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
    Current (and lifetime) project: FAR Colony
    https://www.farcolony.com/

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •