Skip to content

Commit

Permalink
Map Coloring fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jrb10014 committed Apr 17, 2015
1 parent 5dc3172 commit 1cf4b22
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/MockGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,13 @@ public void step() {
}
}

public void drawBackground(Graphics g) {
g.setColor(new Color(99, 209, 62));
g.drawRect(0, 0, 32*20, 32*20);
}

public void paint(Graphics g) {
setBackground(new Color(99, 209, 62));
//setBackground(new Color(99, 209, 62));
drawGrid(x, y, gridsize, g);
//drawMinion(96,96,0,g);
colorPath(g);
Expand All @@ -81,6 +86,8 @@ public void paint(Graphics g) {
drawPlayerHealth(g);
}
public void drawGrid(int x, int y, int gridSize, Graphics g) {
g.setColor(new Color(99, 209, 62));
g.fillRect(0, 0, 32*20, 32*20);
g.setColor(Color.BLACK);
int i = 0;
while (i < x-gridSize) {
Expand Down Expand Up @@ -183,7 +190,7 @@ public void drawMinion(MinionMock m, Graphics g)
String h = "[" + m.getHealth() + "/" + m.getMaxHealth() +"]";
g.setColor(Color.RED);
g.drawString(h, m.getX()-15, m.getY()-10);
//g.drawString(m.getName(), m.getX()-15, m.getY()+45);
g.drawString(m.getName(), m.getX()-15, m.getY()+45);
//g.drawString(("V: " + m.getValue() + "\nD: " + m.getAttackDamage()), m.getX(), m.getY()+46);
}

Expand Down

0 comments on commit 1cf4b22

Please sign in to comment.