示例#1
0
        public override void Update(float t)
        {
            base.Update(t);
            var lastRunCommand = os.terminal.getLastRunCommand();

            if (lastCommand != lastRunCommand)
            {
                lastCommand = lastRunCommand;
                parseCommand();
            }
            else if (GuiData.getKeyboadState().IsKeyDown(Keys.F8))
            {
                lastCommand = "";
            }
            flashTimer -= t;
            flashTimer  = Math.Max(flashTimer, 0.0f);
            bounceEffect.Update(t, nodePos =>
            {
                bounceEffect.NodeHitDelay       = Math.Max(0.0f, Utils.randm(0.5f) - 0.2f);
                bounceEffect.TimeBetweenBounces = 0.15f + Utils.randm(0.7f);
            });
            hintTextFadeTimer = Math.Max(0.0f, hintTextFadeTimer - t);
        }