예제 #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;
 }
예제 #2
0
파일: Link.cs 프로젝트: bbirsch/Zelda
 //Updates the player
 public void Update()
 {
     state.Update();
 }