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; }
protected override void Initialize() { CClientSocket.SetAesKey(Constants.Userkey); m_stage = new LoginStage(); Player = new CUserLocal(); Socket = new CClientSocket(this); base.Initialize(); }