Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the configuration information of the game.json file

Shulou Source: shulou.com Published: 2022-06-01 06:45:20 11月14日 Update

This article mainly introduces the relevant knowledge of "game.json file configuration information", the editor shows you the operation process through the actual case, the operation method is simple and fast, practical, I hope that this "game.json file configuration information what" article can help you solve the problem.

HTML5 Game adaptation Guide

The existing HTML5 games want to be transplanted to Mini Game environment, and the following adaptations need to be made for Mini Game:

All DOM and BOM API are changed to the corresponding API call mode of Mini Game.

Avoid using the ability to execute code dynamically in a game

In the previous stage, in order to reduce the cost of game migration, we provided an Adapter, which simulated and encapsulated a set of BOM and DOM API to the global configuration items based on the Mini Game environment.

Game Mini Program developers configure by writing a game.json file in the root directory, developer tools and clients need to read the configuration, complete the relevant interface rendering and property settings. Click on more introduction to Mini Program development.

The key data type describes whether the screen orientation portraitshowStatusBarBoolean supported by the default deviceOrientationString displays the timeout of the falsenetworkTimeoutNumber network request in millisecond 60000networkTimeout.requestNumberwx.request, in millisecond 60000networkTimeout.connectSocketNumberwx.connectSocket, in millisecond 60000networkTimeout.uploadFileNumberwx.uploadFile, in millisecond 60000networkTimeout.downloadFileNumberwx.downloadFile. Unit: millisecond 60000 about "what is the configuration information of game.json file"? thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.

Tags: Configuration unit time file Mini Game information knowledge development developer more environment industry migration adaptation different practical code global content upfront Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Linux NVidia MySQL OPPO Reno