Esempio n. 1
0
 public Application(string windowTitle)
 {
     game                = new PacmanGame();
     window              = new RenderWindow(new SFML.Window.VideoMode(PacmanGame.DEFAULT_GAME_WIDTH * PacmanGame.DEFAULT_GAME_ELEMENT_WIDTH, PacmanGame.DEFAULT_GAME_HEIGHT * PacmanGame.DEFAULT_GAME_ELEMENT_HEIGHT), windowTitle, Styles.Titlebar);
     window.Closed      += new EventHandler(OnClose);
     window.KeyPressed  += new EventHandler <KeyEventArgs>(OnKeyPressed);
     window.KeyReleased += new EventHandler <KeyEventArgs>(OnKeyReleased);
     window.SetFramerateLimit(TARGET_FPS);
 }