IEnumerator DrawScreen(RoomRenderer roomRenderer, RoomData roomData)
 {
     while (state == GameState.Playing || state == GameState.MoveToNextCavern)
     {
         roomRenderer.DrawScreen(roomData, minerWilly, mobs, string.Format(ScoreFormat, hiScore, score));
         yield return(null);
     }
 }
Example #2
0
 IEnumerator DrawScreen(RoomRenderer roomRenderer, RoomData roomData)
 {
     while (state == GameState.Playing || state == GameState.MoveToNextCavern)
     {
         roomRenderer.DrawScreen();
         yield return(null);
     }
 }
Example #3
0
 IEnumerator DrawTheScreen(RoomRenderer roomRenderer)
 {
     while (true)
     {
         roomRenderer.DrawScreen();
         yield return(null);
     }
 }
    IEnumerator DrawTheScreen(RoomRenderer roomRenderer)
    {
        //throw new NotImplementedException();

        while (true)
        {
            roomRenderer.DrawScreen();
            yield return(null);
        }
    }
Example #5
0
 IEnumerator DrawScreen(RoomRenderer renderer, RoomData data)
 {
     while (state == GameState.Playing || state == GameState.MoveToNextCavern)
     {
         //string scoreInfo = string.Format(ScoreFormat, hiScore, score);
         //renderer.DrawScreen(data, scoreInfo);
         //renderer.DrawScreen(data, minerWilly, mobs, scoreInfo);
         renderer.DrawScreen();
         yield return(null);
     }
 }