コード例 #1
0
ファイル: CutScene.cs プロジェクト: rasch1/Space-Dinosaurs
        public CutScene(Game game, string imagePath, string text)
            : base(game)
        {
            _imagePath = imagePath;
            _text = text.Split('\n');
            _game = game;

            CanPause=false;
            ShowWaitMessage=false;
        }
コード例 #2
0
ファイル: Scene.cs プロジェクト: rasch1/Space-Dinosaurs
        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
ファイル: RaceLevel.cs プロジェクト: rasch1/Space-Dinosaurs
        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
ファイル: GameOver.cs プロジェクト: rasch1/Space-Dinosaurs
 public GameOver(Game game)
     : base(game)
 {
     ShowWaitMessage = false;
 }
コード例 #6
0
ファイル: HighScores.cs プロジェクト: rasch1/Space-Dinosaurs
 public HighScores(Game game)
     : base(game)
 {
     ShowWaitMessage = false;
 }
コード例 #7
0
ファイル: End.cs プロジェクト: rasch1/Space-Dinosaurs
 public End(Game game)
     : base(game)
 {
 }
コード例 #8
0
ファイル: FodderLevel.cs プロジェクト: rasch1/Space-Dinosaurs
 public FodderLevel(Game game)
     : base(game)
 {
 }
コード例 #9
0
ファイル: Title.cs プロジェクト: rasch1/Space-Dinosaurs
 public Title(Game game)
     : base(game)
 {
     ShowWaitMessage = false;
 }
コード例 #10
0
 public PlatformLevel(Game game)
     : base(game)
 {
 }
コード例 #11
0
ファイル: Intro.cs プロジェクト: rasch1/Space-Dinosaurs
 public Intro(Game game)
     : base(game)
 {
 }