@Override public void onHeadHit() { if (getCell().getTile().getId() == BLANK_COIN) MarioBros.manager.get("audio/sounds/bump.wav", Sound.class).play(); else { MarioBros.manager.get("audio/sounds/coin.wav", Sound.class).play(); screen.spawnItem( new ItemDef( new Vector2(body.getPosition().x, body.getPosition().y + 16 / MarioBros.PPM), Mushroom.class)); } getCell().setTile(tileSet.getTile(BLANK_COIN)); Hud.addScore(100); }