This is the Sprite class we programmed in the second class of Programming Principles.
Pay attention to the encapsulation of the variables. No variable is public (directly accesable) and they are only editable and accesable through the Operator and Get methods.
Link to the Sprite class: http://softlion.nl/joris/ProgrammingPrinciples/Sprite.cs
If you are going to use the Sprite class linked here for you own XNA project, make sure you correct the namespace.
Geen opmerkingen:
Een reactie posten