Self-hatred

[XNA] Player class v1.0

Pretty basic: Take in a basic sprite and movez0r it. About the only part of the code I am actually happy with are the keyboard controls; I simply pass the KeyboardState to the class and let the class worry about it.

// Move player.
player.Move(Keyboard.GetState());

Easy. My next project is timers.


Categorised as: programming, school


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>