Esempio n. 1
0
        public void Initialize()
        {
            if (LoadableBattleArena.Arenas.Count > 0)
            {
                Arena = LoadableBattleArena.Arenas[0];
                Arena.Bind();
            }
            else
            {
                Arena = new Forrest();
            }

            Player1 = new Player(Arena, Controls.Player1, -1, PlayerOne);
            Player2 = new Player(Arena, Controls.Player2, -2, PlayerTwo);

            Player1.SetPosition(-5, 3);
            Player2.SetPosition(5, 3);
            Player1.Direction = 1;

            Camera = new FloatingCamera(Player1, Player2);

            DeadTimer = 0.0f;
        }
Esempio n. 2
0
        public void Initialize()
        {
            if (LoadableBattleArena.Arenas.Count > 0)
            {
                Arena = LoadableBattleArena.Arenas[0];
                Arena.Bind();
            }
            else
            {
                Arena = new Forrest();
            }

            Player1 = new Player(Arena, Controls.Player1, -1, PlayerOne);
            Player2 = new Player(Arena, Controls.Player2, -2, PlayerTwo);

            Player1.SetPosition(-5, 3);
            Player2.SetPosition(5, 3);
            Player1.Direction = 1;

            Camera = new FloatingCamera(Player1, Player2);

            DeadTimer = 0.0f;
        }