예제 #1
0
 //when the form is loaded
 private void Form1_Load(object sender, EventArgs e)
 {
     //make the ui
     ui = new WumpusUI(this, PlayerImg, new TransparentPictureBox[] { bat1, bat2 },
                       new TransparentPictureBox[] { Pit1, Pit2 }, new TransparentPictureBox[] { rock1, rock2, rock3, rock4 }, wumpus, room,
                       gold, arrow, fireball, null, winScreen, looseScreen, main, chest, door,
                       textBox1, getScreen(), gamePanel);
 }
예제 #2
0
        public GameControl(WumpusUI ui, Rectangle screen, int mapNum, Sound sound)
        {
            this.sound = sound;
            this.ui    = ui;

            this.screen      = screen;
            ui.arrowBought  += Ui_arrowBought;
            ui.secretBought += Ui_secretBought;
            map              = new Map(mapNum);
        }