public void Init(ContentManager content)
 {
     pointsSheet = new SpriteSheet(content.Load<Texture2D>("Graphics/Points"), 16, 16);
     pointsName = content.Load<Texture2D>("Graphics/PointsName");
     comboName = content.Load<Texture2D>("Graphics/Combo");
     endVectorNames = 0;
     endVectorPoints = Vector2.Zero;
     target = endVectorPoints;
 }
 public static void DrawSprite(this SpriteBatch spriteBatch, SpriteSheet sheet, Vector2 position, float angle, SpriteEffects effect, int x, int y)
 {
     Rectangle source = new Rectangle(x * sheet.TileWidth, y * sheet.TileHeight, sheet.TileWidth, sheet.TileHeight);
     Rectangle dest = new Rectangle(Round(position.X), Round(position.Y), sheet.TileWidth, sheet.TileHeight);
     spriteBatch.Draw(sheet.Texture, dest, source, Color.White, angle, new Vector2(sheet.TileWidth / 2, sheet.TileHeight / 2), effect, 0);
 }
 public static void DrawSprite(this SpriteBatch spriteBatch, SpriteSheet sheet, Vector2 position, float angle, int x, int y)
 {
     DrawSprite(spriteBatch, sheet, position, angle, SpriteEffects.None, x, y);
 }
 public static void DrawSprite(this SpriteBatch spriteBatch, SpriteSheet sheet, int x, int y)
 {
     DrawSprite(spriteBatch, sheet, Vector2.Zero, 0, SpriteEffects.None, x, y);
 }
 public static void DrawSprite(this SpriteBatch spriteBatch, SpriteSheet sheet, Vector2 position, float angle, SpriteEffects effect, int id)
 {
     DrawSprite(spriteBatch, sheet, position, angle, effect, sheet.GetTile(id).X, sheet.GetTile(id).Y);
 }
 public static void DrawSprite(this SpriteBatch spriteBatch, SpriteSheet sheet, int id)
 {
     DrawSprite(spriteBatch, sheet, Vector2.Zero, 0, SpriteEffects.None, sheet.GetTile(id).X, sheet.GetTile(id).Y);
 }
 public StaticEntity(Point sheetTile, Vector2 position, float size, float growValue, SpriteSheet reference)
     : base(position, growValue, size)
 {
     SheetTile = sheetTile;
     SpriteReference = reference;
 }