Ejemplo n.º 1
0
 public void Draw(Blitter b)
 {
     b.Color = Color.Red;
     b.PushAlpha(0.25f);
     using (Image image = GameEngine.Game.LoadImage("/assembly/WhiteNoise.png"))
         b.StretchBlit(image, rect);
     b.RectFill(rect);
     b.PopAlpha();
 }
Ejemplo n.º 2
0
            public void draw()
            {
                Blitter b = new Blitter(cabedge.screen);
                switch(state) {

                    case State.MainMenu:
                        b.Clear(Color.Black);
                        break;

                    case State.InGame:
                        rpgController.draw(rpgBackbuffer);
                        b.StretchBlit(rpgBackbuffer, 0, 0, 640, 480);
                        uiController.draw();
                        break;

                }
            }