Beispiel #1
0
            public Ball()
            {
                xp = 0;
                yp = 0;

                ball = new BrainPad.Display.Image(5, 5);
                ball.SetPixel(2, 2, BrainPad.Color.Palette.White);

                ball.SetPixel(0, 2, BrainPad.Color.Palette.Gray);
                ball.SetPixel(1, 2, BrainPad.Color.Palette.Gray);
                ball.SetPixel(3, 2, BrainPad.Color.Palette.Gray);
                ball.SetPixel(4, 2, BrainPad.Color.Palette.Gray);

                ball.SetPixel(2, 0, BrainPad.Color.Palette.Gray);
                ball.SetPixel(2, 1, BrainPad.Color.Palette.Gray);
                ball.SetPixel(2, 3, BrainPad.Color.Palette.Gray);
                ball.SetPixel(2, 4, BrainPad.Color.Palette.Gray);

                ball.SetPixel(1, 1, BrainPad.Color.Palette.Gray);
                ball.SetPixel(3, 1, BrainPad.Color.Palette.Gray);
                ball.SetPixel(1, 3, BrainPad.Color.Palette.Gray);
                ball.SetPixel(3, 3, BrainPad.Color.Palette.Gray);

                ball_empty = new BrainPad.Display.Image(5, 5);
            }
Beispiel #2
0
 public Pad(int m)
 {
     dv   = 0;
     w    = 25;
     xp   = 0;
     x    = w;
     mode = m;
     img  = new BrainPad.Display.Image(160, 1);
 }