Esempio n. 1
0
File: Game.cs Progetto: Khaiy/CRPG
        public Game(int windowWidth, int windowHeight)
        {
            inputListener = new InputListener();
            inputListener.KeyPressed += new EventHandler<Utilities.KeyEventArgs>(OnKeyPressed);

            currentMenu = new Menus.StandardMenu(windowWidth, windowHeight,
                windowWidth - 15, 0, 15, windowHeight);
        }
Esempio n. 2
0
File: Menu.cs Progetto: Khaiy/CRPG
        public Menu(int bW, int bH, int xO, int yO, int w, int h, Menu previous)
        {
            bufferWidth = bW;
            bufferHeight = bH;
            xOrigin = xO;
            yOrigin = yO;
            width = w;
            height = h;

            previousMenu = previous;

            nestDepth = previous.nestDepth + 1;
        }