Пример #1
0
 public void DrawFinish(SpriteBatch spriteBatch, Vector2 location)
 {
     TextureAtlas.Draw(spriteBatch, location, 2, 19);
 }
Пример #2
0
 public void DrawBomb(SpriteBatch spriteBatch, Vector2 location)
 {
     TextureAtlas.Draw(spriteBatch, location, 8, 18);
 }
Пример #3
0
 public void DrawStart(SpriteBatch spriteBatch, Vector2 location)
 {
     TextureAtlas.Draw(spriteBatch, location, 2, 18);
 }
Пример #4
0
 public Painter(Texture2D texture, int rows, int columns)
 {
     TextureAtlas = new TextureAtlas(texture, rows, columns);
 }
Пример #5
0
 public void DrawEnemyDown(SpriteBatch spriteBatch, Vector2 location)
 {
     TextureAtlas.Draw(spriteBatch, location, 8, 12);
 }
Пример #6
0
 public void DrawEnemyRight(SpriteBatch spriteBatch, Vector2 location)
 {
     TextureAtlas.Draw(spriteBatch, location, 8, 14);
 }
Пример #7
0
 public void DrawTankRight(SpriteBatch spriteBatch, Vector2 location)
 {
     TextureAtlas.Draw(spriteBatch, location, 7, 6);
 }
Пример #8
0
 public void DrawTankDown(SpriteBatch spriteBatch, Vector2 location)
 {
     TextureAtlas.Draw(spriteBatch, location, 7, 4);
 }
Пример #9
0
 public void DrawWall(SpriteBatch spriteBatch, Vector2 location)
 {
     TextureAtlas.Draw(spriteBatch, location, 1, 16);
 }
Пример #10
0
 public void DrawBrick(SpriteBatch spriteBatch, Vector2 location)
 {
     TextureAtlas.Draw(spriteBatch, location, 0, 16);
 }
Пример #11
0
 public void DrawGround(SpriteBatch spriteBatch, Vector2 location)
 {
     TextureAtlas.Draw(spriteBatch, location, 3, 19);
 }