public override void LoadContent() { base.LoadContent(); Camera.Position = _mazeLevel.StartPosition; _gameHUD.LoadContent(); _gameHUD.Initialize(); _gameHUD.InitializeMinimap(_mazeLevel); virtualPad = new VirtualPad(); virtualPad.LoadContent(); float vpZoomValue = 1.0f; switch (GameConfiguration.VirtualPadSize) { case VirtualPadSize.Small: vpZoomValue = 0.9f; break; case VirtualPadSize.Normal: vpZoomValue = 1.2f; break; case VirtualPadSize.Big: vpZoomValue = 1.7f; break; } vpZoomValue *= ScreenHelper.GetScale().X; virtualPad.UpdateScale(vpZoomValue); virtualPad.Position = new Vector2(YnG.Width - virtualPad.Width * vpZoomValue - 10, YnG.Height - virtualPad.Height * vpZoomValue - 10); virtualPad.UpdateLayoutPosition(); if (GameConfiguration.ControlMode == ControlMode.New) { virtualPad.Pressed += (s, e) => control.SetControlDirection(e.Direction); } else { virtualPad.JustPressed += (s, e) => control.SetControlDirection(e.Direction); } virtualPad.Active = GameConfiguration.EnabledVirtualPad; if (GameConfiguration.EnabledMusic) { YnG.AudioManager.PlayMusic("Audio/Lost_in_dark_way", true); } }