Beispiel #1
0
        private static void TextSpawnFrame(FrameEventData evt)
        {
            if (heartBeats == 1)
            {
                LimboDim.warningText = new HellionInsanity("You", 100, 600);
            }

            if (heartBeats == 2)
            {
                LimboDim.warningText = new HellionInsanity("Shouldn't", 120, 600);
            }

            if (heartBeats == 3)
            {
                LimboDim.warningText = new HellionInsanity("Be", 140, 600);
            }

            if (heartBeats == 4)
            {
                LimboDim.warningText = new HellionInsanity("Here", 160, 600);
            }

            if (heartBeats == 5)
            {
                LimboDim.warningText            = new HellionInsanity("LEAVE", 240, 600);
                LimboDim.warningText.scale      = Vector2.One * 1.5f;
                LimboDim.warningText.angleAdder = 0;
                LimboDim.warningText.shaking    = 12;
                LimboDim.warningText.flipped    = MathHelper.Pi;
                LimboDim.warningText.angle      = -MathHelper.PiOver2;
            }

            DimDungeonsProxy.madness.Add(LimboDim.warningText);
            //num
        }
        public void PostUpdateEverything()
        {
            DrawOverride.DrawFog();
            SGAmod.PostDraw.Clear();
            NullWatcher.DoAwarenessChecks(NullWatcher.SeeDistance, true, false);

            bool spacey = SGAPocketDim.WhereAmI != null && SGAPocketDim.WhereAmI == typeof(SpaceDim);

            if (spacey)
            {
                MineableAsteriod.SpawnAsteriods();
            }
            //Main.NewText("test1");

            List <HellionInsanity> madness = DimDungeonsProxy.madness;

            if (madness.Count > 0)
            {
                for (int i = 0; i < madness.Count; i += 1)
                {
                    //Never again will I let you control me, my grief
                    //Let this not be hallow words
                    HellionInsanity pleasemakeitstop = madness[i];
                    pleasemakeitstop.timeleft--;
                    pleasemakeitstop.Update();
                    if (pleasemakeitstop.timeleft < 1)
                    {
                        madness.RemoveAt(i);
                    }
                }
            }
        }