public override void Initialize() { base.Initialize(); mInput = InputHelper.Player2; mCollisionBox.Width = 40; mCollisionBox.Height = 90; mModel = new SpineObject("sweetcheeks"); mHandicaps.Add(Activity.JumpOverGap); }
public override void Initialize() { base.Initialize(); mInput = InputHelper.Player1; mCollisionBox.Width = 50; mCollisionBox.Height = 100; mModel = new SpineObject("ashbrett"); mHandicaps.Add(Activity.SlipThroughRock); mHandicaps.Add(Activity.Crawl); mHandicaps.Add(Activity.UseChalk); }
public override void Update() { HandleInput(); if (mSpine != null && mPlaying) mSpine.Update(); if (mEditorForm.listBoxSkeletons.SelectedItem == null) { mSpine = null; } }
/// <summary> /// Läd das SpineObject neu. /// </summary> public void LoadNewSpineObject(string pSkeletonName) { mPlaying = false; mEditorForm.listBoxFadingFrom.Items.Clear(); mEditorForm.listBoxFadingTo.Items.Clear(); mEditorForm.listBoxFadingFrom.ClearSelected(); mEditorForm.listBoxFadingTo.ClearSelected(); SpineDataManager.Instance.Unload(); SpineDataManager.Instance.LoadContent(); mSpine = new SpineObject(pSkeletonName); mSpine.Load(); List<string> TmpFadingListOutputFrom = new List<string>(); foreach (SpineData.AnimationMix animMix in SpineDataManager.Instance.GetElementByString(pSkeletonName).settings.AnimationFading) { if (!TmpFadingListOutputFrom.Contains(animMix.From.ToString())) TmpFadingListOutputFrom.Add(animMix.From.ToString()); } mEditorForm.listBoxFadingFrom.Items.AddRange(TmpFadingListOutputFrom.ToArray()); mEditorForm.numericUpDownScaling.Value = (decimal)SpineDataManager.Instance.GetElementByString(pSkeletonName).settings.Scaling; if (!mEditorForm.checkBoxLockView.Checked) { ResetView(); } ApplyView(); }