Projeto

Geral

Perfil

Revisão 18

Adicionado por Dinis Adriano Domingosmais de 9 anos atrás

Future Places RC

Ver diferenças:

Game.pde
24 24
  AudioChannel sfx = null;
25 25
  Serial leds = null;
26 26
  
27
  int blackBattles = 0;
28
  int lightBattles = 0;
27 29
  
30
  
28 31
  PImage bgimage = null;
29 32
  
30 33
  void setup ()
......
120 123
    if (this.logo != null)
121 124
      {
122 125
      if (this.current != null)
123
        this.logo.draw (this.current.balance (), this.current.battlefield.whites, this.current.battlefield.blacks);
124
      else if (this.winner != null)
125
        this.logo.draw ((this.winner.team == 0) ? 0 : 255, 0, 0);      
126
        this.logo.draw (this.current.timer, this.current.battlefield.whites, this.current.battlefield.blacks);
127
      //else if (this.winner != null)
128
        //this.logo.draw ((this.winner.team == 0) ? 0 : 255, 0, 0);      
126 129
      }
127 130

  
128 131
    }
......
250 253
      this.ost.stop ();
251 254
    println ("The new black.");
252 255
    this.current = null;
256
    this.blackBattles ++;
253 257
    this.winner = new Winner ();
254 258
    this.winner.setup (0);
255 259
    this.playBlackWins ();
......
261 265
      this.ost.stop ();
262 266
    println ("Whitey.");
263 267
    this.current = null;
268
    this.lightBattles ++;
264 269
    this.winner = new Winner ();
265 270
    this.winner.setup (1);
266 271
    this.playLightWins ();
......
286 291
      }
287 292
      
288 293
    }
289
  }
294
  }

Também disponível em: Unified diff