Feature: Add centered hitboxes that can have seperate dimensions.

This commit is contained in:
JPT committed 2014-12-09 11:59:04 +01:00
1 parent be8f7a231f
commit 73f948b4e1
17 files changed
+144 -42

No files matched your search

@@ -17,7 +17,7 @@ public class ExplosionOne extends Animation {
"images/explosions/01/explosion7.png"
};
this.configure(images, 10);
this.setPosition(x - (this.getWidth()/2), y - (this.getHeight()/2));
this.setPosition(x - (this.getImageWidth()/2), y - (this.getImageHeight()/2));
SoundSystem.playSound("sounds/bad_explosion1.wav");
}
}