Exemplo n.º 1
0
 public WordManager(AddWordMenu addWordMenu)
 {
     this.addWordMenu = addWordMenu;
     theHangman       = new Hangman(new Vector2(50, 100), new Point(4, 3), new Point(900, 1080), maxErrors);
     newWordButton    = new Button(TextureManager.buttonTex2x1, GetScalePos(1425, 950), "Nytt ord");
     backButton       = new Button(TextureManager.buttonTex2x1, GetScalePos(1675, 950), "Tillbaka");
     categoryMenu     = new CategoryMenu();
 }
Exemplo n.º 2
0
 protected override void LoadContent()
 {
     spriteBatch    = new SpriteBatch(GraphicsDevice);
     textureManager = new TextureManager(this.Content);
     addWordMenu    = new AddWordMenu();
     wordManager    = new WordManager(addWordMenu); //Skickar med addWordMenu för att kunna använda objektet inne i WordManager.
     layerManager   = new LayerManager();
     mainMenu       = new MainMenu(this);
 }