Exemple #1
0
 public void DrawIncrease(Texture2D texture, FRectangle where, Rectangle what, Color color)
 {
     spriteBatch.Draw(texture, new Rectangle((int)(ScreenCenter.X + where.X * Tile.tileSize), (int)(ScreenCenter.Y + where.Y * Tile.tileSize), (int)(where.width * Tile.tileSize), (int)(where.height * Tile.tileSize)), what, color);
 }
Exemple #2
0
 public void DrawIncrease(Texture2D texture, FRectangle where, Rectangle what, Color color, float rotation, Vector2 origin, SpriteEffects spriteEffects, float layerDepth)
 {
     spriteBatch.Draw(texture, new Rectangle((int)(ScreenCenter.X + where.X * Tile.tileSize), (int)(ScreenCenter.Y + where.Y * Tile.tileSize), (int)(where.width * Tile.tileSize), (int)(where.height * Tile.tileSize)), what, color, rotation, origin, spriteEffects, layerDepth);
 }