minor changes
This commit is contained in:
parent
a54a06c799
commit
8a64368b9b
@ -44,10 +44,10 @@ public class CollisionDetector {
|
||||
Gdx.app.debug("Collision Detector", "Collision between entities: " + fe.getEntityType() + " and " + se.getEntityType());
|
||||
|
||||
//Play FX;
|
||||
if (fe.playCollideSFX()) {
|
||||
if (se.playCollideSFX() && fe.playCollideSFX()) {
|
||||
explosionSFX.play(prefs.getFloat("fx vol"), 1f, (fe.getX()/Polyjet.GAME_AREA_WIDTH)-0.55f);
|
||||
}
|
||||
if (fe.playCollidePFX()) {
|
||||
if (se.playCollidePFX() && fe.playCollidePFX()) {
|
||||
PooledEffect currentPFX;
|
||||
currentPFX = explosionEffectPool.obtain();
|
||||
currentPFX.setPosition(fe.getX() + fe.getWidth()/2f, fe.getY() + fe.getHeight()/2f);
|
||||
|
@ -61,7 +61,7 @@ public class Flake extends Entity implements Poolable {
|
||||
|
||||
@Override
|
||||
public void draw(Batch batch, float parentAlpha) {
|
||||
batch.setColor(0.25f,0.25f,0.25f,1f- timer/totalTime);
|
||||
batch.setColor(0.1f,0.1f,0.1f,1f - timer/totalTime);
|
||||
batch.draw(texture, getX(), getY(), getWidth(), getHeight());
|
||||
batch.setColor(Color.WHITE);
|
||||
super.draw(batch, parentAlpha);
|
||||
|
Loading…
x
Reference in New Issue
Block a user