v0.8.1: checked cell vfx now appear ontop of terrain and fog of war
This commit is contained in:
parent
9fe214de3a
commit
b0205da8be
|
@ -1719,7 +1719,7 @@ public class Hero extends Char {
|
||||||
if (fieldOfView[p] && p != pos) {
|
if (fieldOfView[p] && p != pos) {
|
||||||
|
|
||||||
if (intentional) {
|
if (intentional) {
|
||||||
sprite.parent.addToBack(new CheckedCell(p, pos));
|
GameScene.effectOverFog(new CheckedCell(p, pos));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Dungeon.level.secret[p]){
|
if (Dungeon.level.secret[p]){
|
||||||
|
|
|
@ -62,7 +62,7 @@ public class StoneOfClairvoyance extends Runestone {
|
||||||
left = Math.max(0, left);
|
left = Math.max(0, left);
|
||||||
for (curr = left + y * Dungeon.level.width(); curr <= right + y * Dungeon.level.width(); curr++){
|
for (curr = left + y * Dungeon.level.width(); curr <= right + y * Dungeon.level.width(); curr++){
|
||||||
|
|
||||||
curUser.sprite.parent.addToBack( new CheckedCell( curr, cell ) );
|
GameScene.effectOverFog( new CheckedCell( curr, cell ) );
|
||||||
Dungeon.level.mapped[curr] = true;
|
Dungeon.level.mapped[curr] = true;
|
||||||
|
|
||||||
if (Dungeon.level.secret[curr]) {
|
if (Dungeon.level.secret[curr]) {
|
||||||
|
|
|
@ -155,6 +155,7 @@ public class GameScene extends PixelScene {
|
||||||
private Group spells;
|
private Group spells;
|
||||||
private Group statuses;
|
private Group statuses;
|
||||||
private Group emoicons;
|
private Group emoicons;
|
||||||
|
private Group overFogEffects;
|
||||||
private Group healthIndicators;
|
private Group healthIndicators;
|
||||||
|
|
||||||
private Toolbar toolbar;
|
private Toolbar toolbar;
|
||||||
|
@ -243,6 +244,7 @@ public class GameScene extends PixelScene {
|
||||||
effects = new Group();
|
effects = new Group();
|
||||||
healthIndicators = new Group();
|
healthIndicators = new Group();
|
||||||
emoicons = new Group();
|
emoicons = new Group();
|
||||||
|
overFogEffects = new Group();
|
||||||
|
|
||||||
mobs = new Group();
|
mobs = new Group();
|
||||||
add( mobs );
|
add( mobs );
|
||||||
|
@ -293,6 +295,8 @@ public class GameScene extends PixelScene {
|
||||||
spells = new Group();
|
spells = new Group();
|
||||||
add( spells );
|
add( spells );
|
||||||
|
|
||||||
|
add(overFogEffects);
|
||||||
|
|
||||||
statuses = new Group();
|
statuses = new Group();
|
||||||
add( statuses );
|
add( statuses );
|
||||||
|
|
||||||
|
@ -810,6 +814,10 @@ public class GameScene extends PixelScene {
|
||||||
scene.effects.add( effect );
|
scene.effects.add( effect );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void effectOverFog( Visual effect ) {
|
||||||
|
scene.overFogEffects.add( effect );
|
||||||
|
}
|
||||||
|
|
||||||
public static Ripple ripple( int pos ) {
|
public static Ripple ripple( int pos ) {
|
||||||
if (scene != null) {
|
if (scene != null) {
|
||||||
Ripple ripple = (Ripple) scene.ripples.recycle(Ripple.class);
|
Ripple ripple = (Ripple) scene.ripples.recycle(Ripple.class);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user