예제 #1
0
 public void spawnDeadPlayers() {
   for (int i = 0; i < Game.SBoard.scores.size(); i++) {
     System.err.println(Game.SBoard.showScore(i));
     sceneHandler.spawn(
         Game.SBoard.showScore(i) * 10 + 280, 650, DeadPlayer.class, "Dead Player" + i);
     Game.SBoard.setX(
         i, Game.SBoard.showScore(i) * 10 + 280); // set initial hiscore name text position
   }
 }
예제 #2
0
 public void moveDeadPlayerText(float movex) {
   for (int i = 0; i < Game.SBoard.scores.size(); i++) {
     Game.SBoard.setX(i, Game.SBoard.getX(i) - 4);
   }
 }