Hässliche Pfeil & Bogen Grafik durch Hirsch in Waldlichtung ersetzt :)

This commit is contained in:
Wafa Sadri
2014-05-13 14:19:42 +02:00
parent 86b871905c
commit 810e69e759
4 changed files with 7 additions and 6 deletions

View File

@@ -12,11 +12,11 @@ namespace WorldOfPeacecraft
private IBackend Backend;
private string ImagesFolder = "textures/";
private Image BowAndArrow;
private Image Dragon1;
private Image Dragon2;
private Image Dragon3;
private Image Forest;
private Image ForestStag;
private Image ForestLeft;
private Image ForestRight;
private Image ForestTop;
@@ -53,11 +53,11 @@ namespace WorldOfPeacecraft
SetStyle (ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint, true);
Backend = backend;
this.PreviewKeyDown += board_KeyPress;
BowAndArrow = Image.FromFile (ImagesFolder + "bow-and-arrow.png", false);
Dragon1 = Image.FromFile (ImagesFolder + "dragon1.png");
Dragon2 = Image.FromFile (ImagesFolder + "dragon2.png");
Dragon3 = Image.FromFile (ImagesFolder + "dragon3.png");
Forest = Image.FromFile (ImagesFolder + "forest.png");
ForestStag = Image.FromFile (ImagesFolder + "stag.png");
ForestLeft = Image.FromFile (ImagesFolder + "forest_left.png");
ForestRight = Image.FromFile (ImagesFolder + "forest_right.png");
ForestTop = Image.FromFile (ImagesFolder + "forest_top.png");
@@ -231,7 +231,11 @@ namespace WorldOfPeacecraft
}
}
if (tile.IsForest ()) {
if (tile.IsHuntable ()) {
PaintImage (g, x, y, ForestStag);
} else {
PaintImage (g, x, y, Forest);
}
if (NullsafeIsForrest(locx - 1, locy, map)) {
PaintImage(g, x, y, ForestLeft);
}
@@ -253,9 +257,6 @@ namespace WorldOfPeacecraft
FlowerCounter++;
}
}
if (tile.IsHuntable ()) {
PaintImage (g, x, y, BowAndArrow);
}
}
private void PaintWallInnerEdge (Graphics g, int locx, int locy, int x, int y, ITile[,] map)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

BIN
textures/stag.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB