Exemple #1
0
 public void Update()
 {
     currentState.Update();
     if (IsDamaged() && --frames_until_color_change == 0)
     {
         frames_until_color_change = frames_per_damage_color_change;
         damaged_frames_left--;
         currentState.setTextureIndex(damaged_frames_left % 4);
     }
     linkInventory.Update();
     previousXPos = xPos;
     previousYPos = yPos;
 }
Exemple #2
0
 //Updates the player
 public void Update()
 {
     state.Update();
 }