Beispiel #1
0
 public InfoPane(GameMap map, Minestory game, SpriteFont font, Texture2D background)
 {
     this.map              = map;
     this.game             = game;
     this.font             = font;
     this.background       = new ImageItem(background);
     this.background.Color = Color.DarkGray;
     this.background.Alpha = 0.5f;
     Init();
 }
Beispiel #2
0
 public GameView(GameView parent, Minestory game) : base()
 {
     game.Window.ClientSizeChanged += (s, a) => AlignViewPane();
     Media        = new MediaManager(game);
     Media.Repeat = RepeatMode.RepeatAll;
     FadeInTime   = 800;
     FadeOutTime  = 400;
     Parent       = parent;
     Game         = game;
 }
Beispiel #3
0
 public MapView(GameView parent, GameMap map, int width, int height, Minestory game)
     : base(parent)
 {
     mapTemplate = map;
     Width       = width;
     Height      = height;
     Media.AddSong("audio/songs/game_theme_0");
     Media.AddSound("audio/sounds/numb_revealed");
     Media.AddSound("audio/sounds/mine_revealed");
     // Init(); // called automatically after added to a manager
 }
Beispiel #4
0
        static void Main(string[] args)
        {
            var cred = args.Length == 0
                ? FileManager.GetCred()
                : new string[5];

            MySqlHelper.Init(cred[0], cred[1],
                             cred[2], cred[3], cred[4]);

            using (var game = new Minestory(
                       Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
                       + Path.DirectorySeparatorChar + "chaotx"
                       + Path.DirectorySeparatorChar + "minestory"))
                game.Run();
        }
Beispiel #5
0
 public GameView(Minestory game)
     : this(null, game)
 {
 }
Beispiel #6
0
 public MainMenuView(Minestory game) : base(game)
 {
     Media.AddSong("audio/songs/menu_theme_0");
     // Media.AddSong("audio/songs/menu_theme_1");
     // Init(); // called automatically after added to a manager
 }
Beispiel #7
0
 public HighscoreView(GameView parent, Minestory game) : base(parent, game)
 {
     this.game = game;
     // Init(); // called automatically after added to a manager
 }
Beispiel #8
0
 public MapView(GameView parent, GameMap map, Minestory game)
     : this(parent, map, game.GraphicsDevice.Viewport.Width,
            game.GraphicsDevice.Viewport.Height, game)
 {
 }