示例#1
0
        /*
         * public new GameAudio audioComponent
         * {
         *  get
         *  {
         *      return base.audioComponent as GameAudio;
         *  }
         *  set
         *  {
         *      base.audioComponent = value;
         *  }
         * }*/

        public Game()
            : base(WINDOWTITLE)
        {
            // NOTE: This is the order of the game loop as well
            //resourceComponent = new GameResources(this);
            inputComponent    = new GameInput(this);
            physicsComponent  = new GamePhysics(this);
            graphicsComponent = new GameGraphics(this);
            //audioComponent = new GameAudio(this);
            graphicsComponent.gui = new GameGUI(graphicsComponent);
            //editorComponent = new EditorComponent(this);
            Tile.size = 32;
        }
示例#2
0
 public GameGUI(GameGraphics graphics)
     : base(graphics)
 {
     testList       = new GUIList();
     testList.align = GUIList.Align.RIGHT;
 }