mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28: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;
|
||||
player.setAnimation(CharacterSprite.AnimationTypes.Attack);
|
||||
mob.setAnimation(CharacterSprite.AnimationTypes.Attack);
|
||||
SoundSystem.instance.play(SoundEffectType.Block, false);
|
||||
Gdx.input.vibrate(50);
|
||||
startPause(0.8f, () -> {
|
||||
Forge.setCursor(null, Forge.magnifyToggle ? "1" : "2");
|
||||
SoundSystem.instance.play(SoundEffectType.ManaBurn, false);
|
||||
DuelScene duelScene = ((DuelScene) SceneType.DuelScene.instance);
|
||||
@@ -679,6 +681,7 @@ public class MapStage extends GameStage {
|
||||
}, ScreenUtils.getFrameBufferTexture(), true, false));
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
public void setPointOfInterest(PointOfInterestChanges change) {
|
||||
|
||||
@@ -84,7 +84,9 @@ public class WorldStage extends GameStage implements SaveFileContent {
|
||||
if (player.collideWith(mob)) {
|
||||
player.setAnimation(CharacterSprite.AnimationTypes.Attack);
|
||||
mob.setAnimation(CharacterSprite.AnimationTypes.Attack);
|
||||
SoundSystem.instance.play(SoundEffectType.Block, false);
|
||||
Gdx.input.vibrate(50);
|
||||
startPause(0.8f, () -> {
|
||||
Forge.setCursor(null, Forge.magnifyToggle ? "1" : "2");
|
||||
SoundSystem.instance.play(SoundEffectType.ManaBurn, false);
|
||||
DuelScene duelScene = ((DuelScene) SceneType.DuelScene.instance);
|
||||
@@ -97,6 +99,7 @@ public class WorldStage extends GameStage implements SaveFileContent {
|
||||
currentMob = mob;
|
||||
WorldSave.getCurrentSave().autoSave();
|
||||
});
|
||||
});
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user