public clsSprite(intObject worldObject, Texture2D texture) { // passed this.worldObject = worldObject; this.baseTexture = texture; this.spriteTexture = new Texture2D(this.baseTexture.GraphicsDevice, this.baseTexture.Width, this.baseTexture.Height); // initialized this.displayLocation = new Vector2(0, 0); this.scale = 1; this.origin = new Vector2(32, 32); this.rotation = 0; // calculated this.sourceTileArea = new Rectangle(0, 0, this.baseTexture.Width, this.baseTexture.Height); }
/********************************************************************************* * Object Functions *********************************************************************************/ public void remove(intObject gameObject) { worldObjects.Remove(gameObject); }