Beispiel #1
0
        public Level(PacmanScreenManager screenManager)
        {
            ScreenManager = screenManager;

            ResetLevel();

            _ghostModeDuration      = 0;
            _ghostModeBeginFlashing = 0;
            _ghostModeFlashes       = 0;

            _random = new Random();
        }
Beispiel #2
0
        public PacmanGame()
        {
            Logger.NewMessageLogged += new Logger.LogAction(Logger_NewMessageLogged);
            Logger.Info("Logger initiated.");

            _graphics = new GraphicsDeviceManager(this);
            _graphics.PreferredBackBufferWidth  = ScreenWidth;
            _graphics.PreferredBackBufferHeight = ScreenHeight;

            _screenManager = new PacmanScreenManager(this);
            GameSystems.Add(_screenManager);

            Content.RootDirectory = "Content";
        }