Пример #1
0
        public void LoadMap()
        {
            m_loading = true;

            var gameStage = new GameStage(Player.Map);
            gameStage.Load();

            var spawn = gameStage.GetSpawn(Player.Spawn);
            Player.X = 0;// spawn.X;
            Player.Y = 0;// spawn.Y;
            Player.Move(spawn);

            m_stage = gameStage;

            m_loading = false;
        }
Пример #2
0
 protected override void Initialize()
 {
     CClientSocket.SetAesKey(Constants.Userkey);
     m_stage = new LoginStage();
     Player = new CUserLocal();
     Socket = new CClientSocket(this);
     base.Initialize();
 }