public virtual void Start() { #if DEBUG PlayerManager.Instance.Shield = 1; #endif AnimationRenderer.Clear(); ModelRenderer.CameraPosition = ModelRenderer.StartingCameraPosition; ModelRenderer.CameraRotation = 0.0f; proximity = new BorderedTextAnimation() { Color = 4, BackgroundColor = 0, Speed = 5, Text = "PROXIMITY ALERT", IsCentered = true }; proximity.IsPaused = true; AnimationRenderer.Add(proximity); overheat = new BorderedTextAnimation() { Color = 4, BackgroundColor = 0, Speed = 2, Text = "OVERHEAT", Origin = new Point(98, 57) }; AnimationRenderer.Add(overheat); lowenergy = new BorderedTextAnimation() { Color = 4, BackgroundColor = 0, Speed = 10, Text = "LOW ENERGY", Origin = new Point(63, 57) }; AnimationRenderer.Add(lowenergy); lowshield = new BorderedTextAnimation() { Color = 4, BackgroundColor = 0, Speed = 10, Text = "LOW SHIELD", Origin = new Point(28, 57) }; AnimationRenderer.Add(lowshield); isStarting = true; startingTimer.Reset(); if (UseStartingAnimation) { PlayAnimation(new StartingAnimation() { Speed = 4, ForegroundColor = 7, BackgroundColor = 0, Character = ConsoleCharacter.Dark }); } }
protected void PlayAnimation(Animation anim) { anim.IsPaused = false; AnimationRenderer.Add(anim); }