public NativeApplication(int width, int height, ContentManager content)
        {
            resFactory = new BcResFactory(content);

            renderSupport = new AsRenderSupport();

            input = new NativeInput();
            input.AddGamePadListener(this);
            input.AddKeyboardListener(this);
            input.AddTouchListener(this);
            running = true;

            stage = new AsStage(width, height);

            // TODO: remove the shit
            new AsBcResLoaderFactory();
            AsBcDevice.initialize(stage);

            AsBcAsset.loadPath("../asset/preloader.xml", null);
            AsBcData.load(new AsVector<String>("data"));

            new AsBcGameUI();
            AsBcAsset.loadPath("../asset/game.xml", null);

            new AsBcGame();
        }
        public NativeApplication(int width, int height, ContentManager content)
        {
            resFactory = new BcResFactory(content);

            renderSupport = new AsRenderSupport();

            input = new NativeInput();
            input.AddGamePadListener(this);
            input.AddKeyboardListener(this);
            input.AddTouchListener(this);
            running = true;

            stage = new AsStage(width, height);
        }