Пример #1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (ScreenHandler game = new ScreenHandler())
     {
         game.Run();
     }
 }
Пример #2
0
        /// <summary>
        /// Creates a GameScreen which handles gameplay
        /// </summary>
        public GameScreen(ScreenHandler screenHandler)
            : base(screenHandler)
        {
            // ---------- Create ContentLibrary ----------
            _contentLibrary = new ContentLibrary(Content);

            // ---------- Create GameLevel ----------
            _gameLevel = new GameLevel(this, "poopies");
            //_gameLevel = new GameLevel(this, 40, 40, 1);

            // ---------- Create GameInterface ----------
            _gameInterface = new GameInterface(this);
        }
Пример #3
0
 /// <summary>
 /// General Screen class constructor. Derive-only
 /// </summary>
 public AbstractScreen(ScreenHandler screenHandler)
 {
     _screenHandler = screenHandler;
 }