player.getHitbox().newY = entity[2] * tm.getTilesizeY() - player.getHitbox().height;
updateList.add(player);
}
else if (entity[0] == 1) {
// Initialisieren eines kleinen Gegners
GoombaSmall e = new GoombaSmall();
e.getHitbox().newX = entity[1] * tm.getTilesizeX();
e.getHitbox().newY = entity[2] * tm.getTilesizeY() - e.getHitbox().height;
updateList.add(e);
new Thread(e).start();
}
else if (entity[0] == 2) {
// Initialisieren eines großen Gegners
GoombaBig e = new GoombaBig();
e.getHitbox().newX = entity[1] * tm.getTilesizeX();
e.getHitbox().newY = entity[2] * tm.getTilesizeY() - e.getHitbox().height;
updateList.add(e);
new Thread(e).start();
}
else if (entity[0] == 3) {
// Initialisieren eines großen Gegners
Coin e = new Coin();
e.getHitbox().newX = entity[1] * tm.getTilesizeX();
e.getHitbox().newY = entity[2] * tm.getTilesizeY() - e.getHitbox().height;
updateList.add(e);
new Thread(e).start();
}
else if (entity[0] == 4) {
// Initialisieren eines großen Gegners
Finish e = new Finish();
e.getHitbox().newX = entity[1] * tm.getTilesizeX();
e.getHitbox().newY = entity[2] * tm.getTilesizeY() - e.getHitbox().height;
updateList.add(e);
new Thread(e).start();
}
}