Пример #1
0
 private GameManager()
 {
     s_instance = this;
     this.loadWaves();
     this.m_map = new Map(Directory.GetCurrentDirectory() + Path.DirectorySeparatorChar + "map.txt");
     this.m_player = new Player();
     InputManager.getInstance();
     this.start();
 }
Пример #2
0
 public void reset()
 {
     this.m_player = new Player();
     this.currentWave = -1;
 }
Пример #3
0
 public Player spawnPlayer(Point inPosition)
 {
     Player p = new Player();
     this.getFieldAt(inPosition).setEntity(p);
     p.move(inPosition);
     return p;
 }