Ejemplo n.º 1
0
        public override bool GivePowerTo(BCBlockGameState gamestate, GameCharacter gamechar)
        {
            BCBlockGameState.Soundman.PlaySound("1up");
            BasicFadingText bft = new BasicFadingText("1-Up", Location, new PointF(0, -2), new Font(BCBlockGameState.GetMonospaceFont(), 14), new Pen(Color.Black,2), new SolidBrush(Color.Green), 500);

            gamestate.playerLives++;
            gamestate.Forcerefresh = true;
            gamestate.Defer(() => gamestate.GameObjects.AddLast(bft));

            return true;
        }
Ejemplo n.º 2
0
 public bool HueCycler(BasicFadingText obj)
 {
     obj.HueCycle=(obj.HueCycle+1)%240;
         Color usecolor = new HSLColor(obj.HueCycle, 240, 120);
         obj.TextBrush = new SolidBrush(usecolor);
         return true;
 }