Esempio n. 1
0
        public void Init()
        {
            player = new Player();
            startLevel = new StartLevel(engine,player);
            var enemy = new Enemy(engine);
            engine.SpawnObject("sartLevel", startLevel);
            engine.SpawnObject("Player", player);
            //engine.SpawnObject("Enemy", enemy);
            
            levels = new List<Level>();
   //       levels.Add(new StartLevel());

        }
Esempio n. 2
0
 public StartLevel(Engine engine, Player player) : base(engine.Width, engine.Height)
 {
     this.engine = engine;
     this.player = player;
 }
Esempio n. 3
0
 public Room(int spawnX, int spawnY,Player player)
 {
     this.player = player;
     player.X = spawnX;
     player.Y = spawnY;
 }