public static void Main()
        {
            //USE THE JSON ZIP ARCHIVE FEATURE FROM BNTEST FOR LOADING IMAGES AND FILES.

            Document.Body.Style.CssText = "overflow: hidden;margin: 0;padding: 0;";
            GamePadManager._this        = new GamePadManager();
            GamePadManager._this.Update();
            Global.SetTimeout(() => {
                GamePadManager._this.Update();

                IC          = InputControllerManager._this.Controllers[0];
                InputMap IM = InputControllerManager._this.Controllers[0].InputMapping[2];
            }, 5);

            var ok     = false;
            var uptest = true;

            JSONArchive.Open("Assets/Images.JSON", json =>
            {
                JSON = json;

                JSON.PreloadImages(() =>
                {
                    ok = true;
                    Finish();
                });
            });

            // After building (Ctrl + Shift + B) this project,
            // browse to the /bin/Debug or /bin/Release folder.

            // A new bridge/ folder is created and contains
            // your projects JavaScript files.

            // Open the bridge/index.html file in a brower by
            // Right-Click > Open With..., then choose a
            // web browser from the list

            // This application will then run in a browser.
        }
Beispiel #2
0
 public static void Init(JSONArchive Archive)
 {
     __this         = new AnimationLoader();
     __this.Archive = Archive;
 }