Exemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            BackBuffer = new Bitmap(ClientSize.Width, ClientSize.Height);
            DBgrfx     = Graphics.FromImage(BackBuffer);
            brush1     = new SolidBrush(Color.Black);

            grfx = CreateGraphics();

            Pman   = new Pacman(280, 480, Properties.Resources.Pacman1);
            RGhost = new RedGhost(280, 280, Properties.Resources.RedGhost);
            BGhost = new BlueGhost(300, 300, Properties.Resources.BlueGhost);
            YGhost = new YellowGhost(280, 300, Properties.Resources.YellowGhost);
            PGhost = new PinkGhost(260, 300, Properties.Resources.PinkGhost);
            PinkGhostAppearTimer = 20;

            block  = new Block(0, 0);
            bullet = new Bullet(0, 0, Properties.Resources.Bullet);

            maze = new Maze();

            DrawingTimer.Start();
        }
Exemplo n.º 2
0
 private void ResetRedLoc()
 {
     RGhost = new RedGhost(280, 280, Properties.Resources.RedGhost);
 }