Changeset 6305 for 2015/26/MikkoL/JRPG/JRPG/JRPG/Battle
- Timestamp:
- 2015-06-25 03:34:50 (6 years ago)
- Location:
- 2015/26/MikkoL/JRPG/JRPG/JRPG/Battle
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
2015/26/MikkoL/JRPG/JRPG/JRPG/Battle/AttackList.cs
r6304 r6305 37 37 character.CurrentHP.Value -= TrueDamage; 38 38 39 if(SoundEffects.Battle.Hit_01.IsPlaying) 40 { 41 SoundEffects.Battle.Hit_01.Stop(); 42 } 43 SoundEffects.Battle.Hit_01.Play(); 44 39 45 BattleView.CurrentBattleView.IsAttackAnimationPlaying = false; 40 46 BattleView.CurrentBattleView.IsTimerActive = true; -
2015/26/MikkoL/JRPG/JRPG/JRPG/Battle/BattleView.cs
r6304 r6305 32 32 public Queue<Action> ActionQueue = new Queue<Action>(); 33 33 34 private BetterLabel EnemyName; 35 private Pointer Pointer; 36 34 37 private Widget BattleHUD { get; set; } 35 38 private List<GameObject> ToDeleteOnExit = new List<GameObject>(); 36 39 private ScrollingTextMenu BattleMenu { get; set; } 40 41 private int SelectedAllyIndex; 37 42 38 43 private float WaitTimeBetweenActions = 1f; … … 173 178 if (Allies[Index].CurrentHP.Value == 0) 174 179 { 180 if (SelectedAllyIndex == Allies[Index].Index) 181 { 182 JRPG.Game.ClearControls(); 183 184 IsInMenu = false; 185 AllyNames[SelectedAllyIndex].IsFlashing = false; 186 BattleMenu.Destroy(); 187 EnemyName.Destroy(); 188 Pointer.Destroy(); 189 } 190 175 191 Name.TextColor = Microsoft.Xna.Framework.Color.Gray; 176 192 HPMeter.TextColor = Microsoft.Xna.Framework.Color.Gray; … … 196 212 SelectedEnemy = PrevSelectedEnemy; 197 213 198 BetterLabelEnemyName = new BetterLabel(JRPG.Game.MainFont, Vector.Zero, Enemies[SelectedEnemy].Name);214 EnemyName = new BetterLabel(JRPG.Game.MainFont, Vector.Zero, Enemies[SelectedEnemy].Name); 199 215 EnemyName.IsFlashing = true; 200 Pointer Pointer= new Pointer(Vector.Zero);216 Pointer = new Pointer(Vector.Zero); 201 217 Pointer.IsFlashing = true; 202 218 … … 415 431 if (!character.IsDead) 416 432 { 433 SelectedAllyIndex = character.Index; 417 434 418 435 IsInMenu = true;
Note: See TracChangeset
for help on using the changeset viewer.