Beispiel #1
0
 public Menu(Game game, int windowWidth, int windowHeight)
 {
     this.Game               = game;
     this.Keybinds           = game.Keybinds;
     this.ShowingPage        = Page.Home;
     this.KeyboardController = new MenuKeyboardController(this);
     this.WindowWidth        = windowWidth;
     this.WindowHeight       = windowHeight;
     this.Font               = SpriteHolder.MenuFont;
     this.MarioImg           = SpriteHolder.SmallMario;
     this.Background         = SpriteHolder.Background;
     this.Logo               = SpriteHolder.Game_Logo;
     this.Generator          = new LevelGenerator(this.Game, this.WindowWidth, this.WindowHeight);
     InitButtons();
     InitKeybindButtons();
 }
Beispiel #2
0
 public RebindCommand(IKeybind keybind, MenuKeyboardController keyboard)
 {
     this.keybind  = keybind;
     this.keyboard = keyboard;
 }