Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Microsoft.Xna.Framework.Graphics;
- using Microsoft.Xna.Framework.Content;
- using Microsoft.Xna.Framework.Input;
- using Microsoft.Xna.Framework;
- namespace Gamecodeur_JAM_1
- {
- public class Player
- {
- // VARIABLE
- Sprite sprite;
- // CONSTRUCTOR
- public Player()
- {
- sprite = new Sprite("player", 10, 10);
- }
- // UPDATE & DRAW
- public void Update(KeyboardState state)
- {
- /*if (state.IsKeyDown(Keys.Up))
- {
- }*/
- }
- public void Draw(SpriteBatch spriteBatch)
- {
- sprite.Draw(spriteBatch);
- }
- // FUNCTION
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement