Example #1
0
 @Override
 public void draw() {
   super.draw();
   grid.draw(false);
   atomizer.draw();
   hud.draw();
 }
Example #2
0
 @Override
 public void update() {
   hud.update();
   atomizer.update();
   if (atomizer.isDone()) {
     Game.mode.setMode(new PlayMode(grid, isResetting));
   }
   grid.updateTiles();
 }
Example #3
0
 public Atomizer makeEnterAtomizer() {
   return new Atomizer(Player.makeSprite(), grid.getPlayerStart(), false);
 }
Example #4
0
 public ToPlayMode(LevelIndex index, boolean isResetting) {
   this.grid = new Grid(index);
   this.atomizer = makeEnterAtomizer();
   this.hud = grid.makeHud();
   this.isResetting = isResetting;
 }