Advertisement
Guest User

Sprite.cs

a guest
Sep 5th, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.82 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. using Microsoft.Xna.Framework.Graphics;
  8. using Microsoft.Xna.Framework.Content;
  9. using Microsoft.Xna.Framework.Input;
  10. using Microsoft.Xna.Framework;
  11.  
  12. namespace Gamecodeur_JAM_1
  13. {
  14.     public class Player
  15.     {
  16.         // VARIABLE
  17.         Sprite sprite;
  18.        
  19.         // CONSTRUCTOR
  20.         public Player()
  21.         {
  22.             sprite = new Sprite("player", 10, 10);
  23.         }
  24.  
  25.         // UPDATE & DRAW
  26.         public void Update(KeyboardState state)
  27.         {
  28.  
  29.             /*if (state.IsKeyDown(Keys.Up))
  30.             {
  31.  
  32.             }*/
  33.         }
  34.  
  35.         public void Draw(SpriteBatch spriteBatch)
  36.         {
  37.             sprite.Draw(spriteBatch);
  38.         }
  39.  
  40.         // FUNCTION
  41.     }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement