mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
add delay to see attack animation
- add short delay to see player and mob attack animation before the duel starts
This commit is contained in:
@@ -662,7 +662,9 @@ public class MapStage extends GameStage {
|
|||||||
currentMob = mob;
|
currentMob = mob;
|
||||||
player.setAnimation(CharacterSprite.AnimationTypes.Attack);
|
player.setAnimation(CharacterSprite.AnimationTypes.Attack);
|
||||||
mob.setAnimation(CharacterSprite.AnimationTypes.Attack);
|
mob.setAnimation(CharacterSprite.AnimationTypes.Attack);
|
||||||
|
SoundSystem.instance.play(SoundEffectType.Block, false);
|
||||||
Gdx.input.vibrate(50);
|
Gdx.input.vibrate(50);
|
||||||
|
startPause(0.8f, () -> {
|
||||||
Forge.setCursor(null, Forge.magnifyToggle ? "1" : "2");
|
Forge.setCursor(null, Forge.magnifyToggle ? "1" : "2");
|
||||||
SoundSystem.instance.play(SoundEffectType.ManaBurn, false);
|
SoundSystem.instance.play(SoundEffectType.ManaBurn, false);
|
||||||
DuelScene duelScene = ((DuelScene) SceneType.DuelScene.instance);
|
DuelScene duelScene = ((DuelScene) SceneType.DuelScene.instance);
|
||||||
@@ -679,6 +681,7 @@ public class MapStage extends GameStage {
|
|||||||
}, ScreenUtils.getFrameBufferTexture(), true, false));
|
}, ScreenUtils.getFrameBufferTexture(), true, false));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPointOfInterest(PointOfInterestChanges change) {
|
public void setPointOfInterest(PointOfInterestChanges change) {
|
||||||
|
|||||||
@@ -84,7 +84,9 @@ public class WorldStage extends GameStage implements SaveFileContent {
|
|||||||
if (player.collideWith(mob)) {
|
if (player.collideWith(mob)) {
|
||||||
player.setAnimation(CharacterSprite.AnimationTypes.Attack);
|
player.setAnimation(CharacterSprite.AnimationTypes.Attack);
|
||||||
mob.setAnimation(CharacterSprite.AnimationTypes.Attack);
|
mob.setAnimation(CharacterSprite.AnimationTypes.Attack);
|
||||||
|
SoundSystem.instance.play(SoundEffectType.Block, false);
|
||||||
Gdx.input.vibrate(50);
|
Gdx.input.vibrate(50);
|
||||||
|
startPause(0.8f, () -> {
|
||||||
Forge.setCursor(null, Forge.magnifyToggle ? "1" : "2");
|
Forge.setCursor(null, Forge.magnifyToggle ? "1" : "2");
|
||||||
SoundSystem.instance.play(SoundEffectType.ManaBurn, false);
|
SoundSystem.instance.play(SoundEffectType.ManaBurn, false);
|
||||||
DuelScene duelScene = ((DuelScene) SceneType.DuelScene.instance);
|
DuelScene duelScene = ((DuelScene) SceneType.DuelScene.instance);
|
||||||
@@ -97,6 +99,7 @@ public class WorldStage extends GameStage implements SaveFileContent {
|
|||||||
currentMob = mob;
|
currentMob = mob;
|
||||||
WorldSave.getCurrentSave().autoSave();
|
WorldSave.getCurrentSave().autoSave();
|
||||||
});
|
});
|
||||||
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user