Create image folder for explosions.

This commit is contained in:
Jan Philipp Timme 2014-11-08 18:29:10 +01:00
parent d5092bd668
commit a4c788ad22
27 changed files with 27 additions and 27 deletions

View File

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

View File

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 777 B

After

Width:  |  Height:  |  Size: 777 B

View File

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

View File

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

View File

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 7.2 KiB

View File

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

Before

Width:  |  Height:  |  Size: 187 B

After

Width:  |  Height:  |  Size: 187 B

View File

@ -28,7 +28,7 @@ public class Explosion extends Entity {
*/
public Explosion(int x, int y) {
super(x, y);
this.setImage("images/explosion_proto.png");
this.setImage("images/explosions/explosion_proto.png");
this.setPosition(x - (this.getWidth()/2), y - (this.getHeight()/2));
Random rand = new Random();
if (rand.nextInt(99) <= 70) {
@ -44,7 +44,7 @@ public class Explosion extends Entity {
public Explosion(int x, int y, int count, int width, int height) {
super(x, y);
System.out.println("Explosion with: " + count);
this.setImage("images/explosion_proto.png");
this.setImage("images/explosions/explosion_proto.png");
this.setPosition(x, y);
this.random = new Random();
this.count = 10;

View File

@ -8,7 +8,7 @@ public class ExplosionOne extends Entity {
public ExplosionOne(int x, int y) {
super(x, y);
this.setImage("images/explosion_proto.png");
this.setImage("images/explosions/explosion_proto.png");
this.setPosition(x - (this.getWidth()/2), y - (this.getHeight()/2));
}
@ -20,25 +20,25 @@ public class ExplosionOne extends Entity {
}
switch (count) {
case 70:
this.setImage("images/explosion1.png");
this.setImage("images/explosions/01/explosion1.png");
break;
case 60:
this.setImage("images/explosion2.png");
this.setImage("images/explosions/01/explosion2.png");
break;
case 50:
this.setImage("images/explosion3.png");
this.setImage("images/explosions/01/explosion3.png");
break;
case 40:
this.setImage("images/explosion4.png");
this.setImage("images/explosions/01/explosion4.png");
break;
case 30:
this.setImage("images/explosion5.png");
this.setImage("images/explosions/01/explosion5.png");
break;
case 20:
this.setImage("images/explosion6.png");
this.setImage("images/explosions/01/explosion6.png");
break;
case 10:
this.setImage("images/explosion7.png");
this.setImage("images/explosions/01/explosion7.png");
break;
}
}

View File

@ -8,7 +8,7 @@ public class ExplosionTwo extends Entity {
public ExplosionTwo(int x, int y) {
super(x, y);
this.setImage("images/explosion_proto.png");
this.setImage("images/explosions/explosion_proto.png");
this.setPosition(x - (this.getWidth()/2), y - (this.getHeight()/2));
}
@ -20,52 +20,52 @@ public class ExplosionTwo extends Entity {
}
switch (count) {
case 150:
this.setImage("images/explosion2_1.png");
this.setImage("images/explosions/02/explosion2_1.png");
break;
case 140:
this.setImage("images/explosion2_2.png");
this.setImage("images/explosions/02/explosion2_2.png");
break;
case 130:
this.setImage("images/explosion2_3.png");
this.setImage("images/explosions/02/explosion2_3.png");
break;
case 120:
this.setImage("images/explosion2_4.png");
this.setImage("images/explosions/02/explosion2_4.png");
break;
case 110:
this.setImage("images/explosion2_5.png");
this.setImage("images/explosions/02/explosion2_5.png");
break;
case 100:
this.setImage("images/explosion2_6.png");
this.setImage("images/explosions/02/explosion2_6.png");
break;
case 90:
this.setImage("images/explosion2_7.png");
this.setImage("images/explosions/02/explosion2_7.png");
break;
case 80:
this.setImage("images/explosion2_8.png");
this.setImage("images/explosions/02/explosion2_8.png");
break;
case 70:
this.setImage("images/explosion2_9.png");
this.setImage("images/explosions/02/explosion2_9.png");
break;
case 60:
this.setImage("images/explosion2_10.png");
this.setImage("images/explosions/02/explosion2_10.png");
break;
case 50:
this.setImage("images/explosion2_11.png");
this.setImage("images/explosions/02/explosion2_11.png");
break;
case 40:
this.setImage("images/explosion2_12.png");
this.setImage("images/explosions/02/explosion2_12.png");
break;
case 30:
this.setImage("images/explosion2_13.png");
this.setImage("images/explosions/02/explosion2_13.png");
break;
case 20:
this.setImage("images/explosion2_14.png");
this.setImage("images/explosions/02/explosion2_14.png");
break;
case 10:
this.setImage("images/explosion2_15.png");
this.setImage("images/explosions/02/explosion2_15.png");
break;
case 1:
this.setImage("images/explosion2_16.png");
this.setImage("images/explosions/02/explosion2_16.png");
break;
}
}