Example #1
0
        public override void Initialise()
        {
            //this.Elements.Add(new Background(NibblyFishGame.Textures.background1.ToString()));

            _aquariumScreen = new AquariumScreen();

            this.Children.Add(_aquariumScreen);

            _aquariumScreen.Initialise();

            GameViewport = new ExLib.Other.Viewport(0, 0, (int)(GraphicsManager.RESOLUTION_X * 0.5), (int)(GraphicsManager.RESOLUTION_Y * 0.5), GraphicsManager.RESOLUTION_X, GraphicsManager.RESOLUTION_Y);
        }
Example #2
0
 public override void Initialise()
 {
     GameViewport = new Viewport(0, 0, (int)(GraphicsManager.RESOLUTION_X * 0.5), (int)(GraphicsManager.RESOLUTION_Y * 0.5), GraphicsManager.RESOLUTION_X, GraphicsManager.RESOLUTION_Y);
 }
Example #3
0
        public static void Initialize()
        {
            GameViewport = new Viewport(0, 0, 320, 240, 640, 480);

            StartNewGame();
        }