private void Init() { boxDoorList = PointLists.boxDoorPointList(); wallList = PointLists.banPointList(); boxList = PointLists.boxPointList(); directionsInit(); switch (color) { case GhostColor.BLUE: ghost = new Ghost(new Point(31, 29), Direction.UP); break; case GhostColor.PINK: ghost = new Ghost(new Point(27, 29), Direction.DOWN); break; case GhostColor.RED: ghost = new Ghost(new Point(27, 22), Direction.RIGHT); break; case GhostColor.YELLOW: ghost = new Ghost(new Point(23, 29), Direction.UP); break; } State = GameState.GAMEOVER; }
private void Init() { boxDoorList = PointLists.boxDoorPointList(); wallList = PointLists.banPointList(); pacman = new Pacman(new Point(27, 40), pacmanDirection); directionsInit(); State = GameState.GAMEOVER; }
private void Init() { wallList = PointLists.banPointList(); dotList = PointLists.dotPointList(); boxList = PointLists.boxPointList(); boxDoorList = PointLists.boxDoorPointList(); bonusList = PointLists.bonusPointList(); State = GameState.GAMEOVER; score = 0; PacmanDelay = 70; }