예제 #1
0
        public Level()
        {
            gameOver = false;
            levelCompleted = false;
            eastermode = false;
            //hooray for things being in the right place!
            this.player = new Player();
            crosshair = new Crosshair();
            enemies = new LinkedList<Enemy>();
            contentHolder = new Enemy(-1, -1);
            bullets = new Bullet[50];
            usedCoins = new LinkedList<Vector2>();
            usedButtons = new Dictionary<Vector2, int>();
            pipeEngine = new PipeEngine(128, 128, 3000, 0f);

            for (int i = 0; i < bullets.Length; i++)
            {
                bullets[i] = new Bullet(Vector2.Zero);
            }
        }
예제 #2
0
 public ShellMenu()
 {
     isDisplayed = true;
     buttonList = new MenuButton[MENU_ITEMS.Length];
     fileO = new OpenFileDialog();
     fileS = new SaveFileDialog();
     fileL = new OpenFileDialog();
     fileS.InitialDirectory = StorageContainer.TitleLocation + FileIOManager.SAVE_PREFIX;
     fileO.InitialDirectory = StorageContainer.TitleLocation + FileIOManager.SAVE_PREFIX;
     fileL.InitialDirectory = StorageContainer.TitleLocation + FileIOManager.LEVEL_PREFIX;
     fileS.Filter = "MoonPrison Save Files|*" + FileIOManager.SAVE_EXTENSION;
     fileO.Filter = "MoonPrison Save Files|*" + FileIOManager.SAVE_EXTENSION;
     fileL.Filter = "Level Files|*.level";
     fileO.Title = "Load Files";
     cross = new Crosshair();
     for (int i = 0; i < MENU_ITEMS.Length; i++)
     {
         buttonList[i] = new MenuButton(MENU_ITEMS[i]);
     }
 }