예제 #1
0
        static void Main()
        {
            var form = new FrmMain();
            form.Show();
            var game = new MonsterGame.Editor.Game.EditorGame(form.GetSurfaceHandle());

            form.SetSettings(game);

            game.Run();
        }
예제 #2
0
        public Texture2D LoadTexture(EditorGame game)
        {
            _tilesets = game.Content.LoadContent<Texture2D>("Tilesets");
            foreach (var tileset in _tilesets)
            {
                lBoxTilesets.Items.Add(tileset.Key);
            }

            if (_tilesets.Count > 0)
            {
                pBoxPreview.Image = _tilesets.First().Value.ToBitmap();
            }

            ShowDialog();

            return lBoxTilesets.SelectedIndex != -1 ? _tilesets[lBoxTilesets.SelectedItem.ToString()] : null;
        }
예제 #3
0
 static void Main()
 {
     var game = new MonsterGame.Editor.Game.EditorGame();
     game.Run();
 }
예제 #4
0
 public void SetSettings(EditorGame game)
 {
     _game = game;
 }