v0.4.3: improved performance for the prison exit visual

This commit is contained in:
Evan Debenham 2016-10-05 17:25:36 -04:00
parent b67d84e7da
commit 9a31c441c1
2 changed files with 10 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -345,7 +345,7 @@ public class PrisonBossLevel extends Level {
unseal();
CustomTileVisual vis = new exitVisual();
vis.pos(7, 7);
vis.pos(11, 8);
customTiles.add(vis);
((GameScene)ShatteredPixelDungeon.scene()).addCustomTile(vis);
@ -537,7 +537,15 @@ public class PrisonBossLevel extends Level {
tx = Assets.PRISON_EXIT;
txX = txY = 0;
tileW = tileH = 16;
tileW = 12;
tileH = 15;
}
//for compatibility with pre-0.4.3 saves
@Override
public void restoreFromBundle(Bundle bundle) {
super.restoreFromBundle(bundle);
pos(11, 8);
}
@Override