예제 #1
0
 static void Main(string[] args)
 {
     using (RampageRebellion game = new RampageRebellion())
     {
     #if !DEBUG
         game.IsFullScreen = true;
     #endif
         game.Run();
     }
 }
예제 #2
0
    /// <summary>
    /// The title screen void that loads the title screen background, which contains control information.
    /// </summary>
    public override void Begin()
    {
        gameObject = this;

        SetWindowSize(1024, 820, false);
        Image MenuBG = LoadImage("Title");
        Level.Background.Image = MenuBG;
        Level.BackgroundColor = Color.DarkGray;
        Camera.ZoomToLevel();
        Level.Background.ScaleToLevel();
        ControllerOne.Listen(Button.Start, ButtonState.Pressed, delegate { ControlMethod(); ControllerOne.Disable(Button.Start); }, null);
        ControllerOne.Listen(Button.Back, ButtonState.Pressed, ConfirmExit, null);
        Keyboard.Listen(Key.Z, ButtonState.Pressed, delegate { ControlMethod(); Keyboard.Disable(Key.Z); }, null);
        Keyboard.Listen(Key.Escape, ButtonState.Pressed, ConfirmExit, null);

        //Reset weapon upgrades here. They should not be lost upon accessing the pause menu - only when resetting!
        generateArsenalData();
    }