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(); }
private void ResetBlueLoc() { BGhost = new BlueGhost(300, 300, Properties.Resources.BlueGhost); }