Exemplo n.º 1
0
        public Engine()
        {
            //**** Size of the game "view port"
            int width = 600;
            int height = 800;
            bounds = new Rectangle(0, 0, width, height);
            bounds.Offset((int)((PROPERTIES.screen.Width - width) / 2.0f),
                          (int)((PROPERTIES.screen.Height - height) / 2.0f));

            //Create the (unloaded) level objects
            levels = new Level[4];
            levels[0] = new Level01(bounds);
            levels[1] = new Level02(bounds);
            levels[2] = new Level03(bounds);
            levels[3] = new Level04(bounds);
        }
Exemplo n.º 2
0
        private GameObject deadImg;     //image overlay when no lives remaining for all players

        public Engine()
        {
            //**** Size of the game "view port"
            int width  = 600;
            int height = 800;

            bounds = new Rectangle(0, 0, width, height);
            bounds.Offset((int)((PROPERTIES.screen.Width - width) / 2.0f),
                          (int)((PROPERTIES.screen.Height - height) / 2.0f));

            //Create the (unloaded) level objects
            levels    = new Level[4];
            levels[0] = new Level01(bounds);
            levels[1] = new Level02(bounds);
            levels[2] = new Level03(bounds);
            levels[3] = new Level04(bounds);
        }