Skip to content

Commit f703f07

Browse files
MAurice SchleussingerMAurice Schleussinger
authored andcommitted
new item graphics
1 parent c85c635 commit f703f07

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

src/entities/items/Falle.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class Falle extends Item {
1313

1414
public Falle(int x, int y) {
1515
super(x, y);
16-
this.images = Sprite.load("items/falle.png", 48, 48);
16+
this.images = Sprite.load("items/trap_n.png", 100, 100);
1717
}
1818

1919
@Override
@@ -38,7 +38,8 @@ public void action(Player p) {
3838

3939
@Override
4040
public void draw(Graphics g) {
41-
g.drawImage((this.images[0][0]).image, this.x, this.y, Game.BLOCK_SIZE, Game.BLOCK_SIZE, null);
41+
g.drawImage((this.images[0][0]).image, this.x, this.y, Game.BLOCK_SIZE,
42+
Game.BLOCK_SIZE, null);
4243
}
4344

4445
}

src/entities/items/Schuh.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class Schuh extends Item {
1010

1111
public Schuh(int x, int y) {
1212
super(x, y);
13-
this.images = Sprite.load("items/speed.png", 48, 48);
13+
this.images = Sprite.load("items/speed_n.png", 100, 100);
1414
}
1515

1616
@Override
@@ -30,7 +30,8 @@ public void remove(Player p) {
3030
*/
3131
@Override
3232
public void draw(Graphics g) {
33-
g.drawImage((this.images[0][0]).image, this.x, this.y, Game.BLOCK_SIZE, Game.BLOCK_SIZE, null);
33+
g.drawImage((this.images[0][0]).image, this.x, this.y, Game.BLOCK_SIZE,
34+
Game.BLOCK_SIZE, null);
3435
}
3536

3637
@Override

src/ressources/items/speed_n.png

10.5 KB
Loading

src/ressources/items/trap_n.png

16 KB
Loading

0 commit comments

Comments
 (0)