using System; using System.Collections.Generic; using System.Linq; using System.Text; using VBXSE; namespace TalkingIsAFreeAction { public class Player : PhysicsObject { public Sprite sprite; public void CreatePlayer(int x, int y) { this.x = x; this.y = y; this.sprite = SpriteEngine.CreateSprite("player", new Microsoft.Xna.Framework.Vector2(x, y)); this.width = this.sprite.GetImage().Width; this.height = this.sprite.GetImage().Height; } public override void ApplyNewPosition(float x, float y) { this.x = x; this.y = y; this.sprite.SetPosition(x, y); } } }