Пример #1
0
        public CutScene(Game game, string imagePath, string text)
            : base(game)
        {
            _imagePath = imagePath;
            _text = text.Split('\n');
            _game = game;

            CanPause=false;
            ShowWaitMessage=false;
        }
Пример #2
0
        public Scene(Game game)
        {
            CurrentGame = game;

            _blurListener = OnBlur;
            _focusListener = OnFocus;
            _keyDownListener = OnKeyDown;
            _keyUpListener = OnKeyUp;

            _resourceLoaded = ResourceLoaded;
            _maskedResourceLoaded = MaskedResourceLoaded;
        }
Пример #3
0
 public ShooterLevel(Game game, bool practice, int length)
     : base(game)
 {
     _practice = practice;
     _length = length;
     if (practice)
     {
         _startMessage = "Practice your skills by reaching and destroying the mothership.";
         _winMessage = "Congratulations! You're ready for the real game!";
         _failMessage = "Looks like you still need some more training...";
     }
     else
     {
         _startMessage = "Destroy the enemy mothership!";
         _winMessage = "<p>Mission Accomplished! Congratulations!</p>";
         _failMessage = "Oh no! You've failed your mission!...";
     }
 }
Пример #4
0
        public RaceLevel(Game game, bool practice, int length)
            : base(game)
        {
            _practice = practice;
            RoadLength = length;

            if (practice)
            {
                _startMessage = "Practice your driving skills by finishing the track before the timer runs out.";
                _winMessage = "Congratulations! You're ready for the real game!";
                _failMessage = "Looks like you still need some more training...";
            }
            else
            {
                _startMessage = "Reach the research facility before it is bombed!";
                _winMessage = "<p>Congratulations! You've reached the facility in time!</p>";
                _failMessage = "Too late! You've failed to reach the facility in time...";
            }
        }
Пример #5
0
 public GameOver(Game game)
     : base(game)
 {
     ShowWaitMessage = false;
 }
Пример #6
0
 public HighScores(Game game)
     : base(game)
 {
     ShowWaitMessage = false;
 }
Пример #7
0
 public End(Game game)
     : base(game)
 {
 }
Пример #8
0
 public FodderLevel(Game game)
     : base(game)
 {
 }
Пример #9
0
 public Title(Game game)
     : base(game)
 {
     ShowWaitMessage = false;
 }
Пример #10
0
 public PlatformLevel(Game game)
     : base(game)
 {
 }
Пример #11
0
 public Intro(Game game)
     : base(game)
 {
 }