export game to bytedance mini game

0 favourites
  • 2 posts
From the Asset Store
20 high quality click sounds, ready to improve your game's UI instantly
  • trying to make this work with bytedance mini game

    is this possible to port c3 game to mini game platform?

    update:

    other game engine like cocos creator can export that support bytedance mini game

    gist.github.com/crapthings/e6944153ea1fd2a1c9c02147a30dcb97

    it looks only browser polyfills and game engine, and a game.js entry file

    update:

    bytedance mini game document

    The runtime environment for a mini game is different from a web environment. When running on an actual device, there is no BOM API, so there is no window object or its associated properties. Therefore, for games migrated from H5, developers need to implement compatibility for the window object themselves (if developing the mini game using a game engine, the exported mini game version usually includes an adapter that adapts the window object). At the same time, in the runtime environment of a mini game, there is a global object called GameGlobal, and all globally defined variables are properties of GameGlobal. For example:

    ```

    setTimeout === GameGlobal.setTimeout; // true

    requestAnimationFrame === GameGlobal.requestAnimationFrame; // true

    ```

    Additionally, GameGlobal is a global object and also a self-referencing object.

    ```

    GameGlobal.GameGlobal === GameGlobal;

    ```

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It's not supported, and I don't think it's feasible to support, since as their documentation notes they don't use a real browser engine. We've tried a few times in the past to support other platforms that are "pretend" environments that just have a few web APIs added on top of a JavaScript engine, and they are always too limited (missing many features that real browsers provide) and too buggy (since they don't run their engine against the standards-compliant test suites that real browsers are validated with).

    It's a shame - if they used webviews like Cordova, it would work great and we could probably support it.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)