use of net.catacombsnatch.game.world.level.Level in project Catacomb-Snatch by Catacomb-Snatch.
the class DestroyableWallTile method createFor.
@Override
public Entity createFor(Level level, final int x, final int y) {
final Entity tile = Entities.createTile(level, x, y, color, Art.tiles_walls[0], true);
tile.add(new Destroyable().add(new Destroyable.Callback() {
@Override
public void onEntityDestroyed(Level level, Entity entity) {
Tiles.createAndAdd(Tiles.FLOOR, level, x, y);
}
}));
return tile;
}
Aggregations