Ejemplo n.º 1
0
 public Level(Texture2D textures, Player _player, ref List<Box> _boxes )
 {
     NewEmptyLevel(1, 1);
     player = _player;
     boxes = _boxes;
     ParseLevel(exampleLevel);
     this.textures = textures;
 }
Ejemplo n.º 2
0
        public LevelScreen(GraphicsDevice device, ContentManager content)
            : base(device, content, "level")
        {
            text = content.Load<Texture2D>("sb_texture");
            boxes = new List<Box>();
            player = new Player(text);
            aiplayer = new AIPlayer(ref player);
            levels = new LevelList();
            level = new Level(text, player, ref boxes);
            oldKeyboardState = Keyboard.GetState();
            lastAction = new LastAction();

            currentLevel = 0;
            level.LoadLevel(levels.GetLEvel(currentLevel));
        }
Ejemplo n.º 3
0
 public AIPlayer(ref Player player)
 {
     this.player = player;
     currentPosition = 0;
     isRunning = false;
 }