A webpage game loading method and device
A web game and game technology, applied in the field of web games, can solve problems such as reducing the user experience effect and affecting the game fluency, and achieve the effect of improving the speed, overcoming the poor network environment, and improving the user experience.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] The purpose of this embodiment is to provide figure 1 A web game loading method shown is suitable for devices using the Android system, including:
[0032] S1. Determine that the URL conforms to a preset character rule;
[0033] S2. Create a WebView;
[0034] S3, load the configuration template, load the cache API according to the configuration template to receive and store the game setting data, and select the loading path of the game setting data according to the specific characters of the URL;
[0035] S4. Generate a game interface according to the game setting data.
[0036] The actual implementation process includes:
[0037] Start the smart terminal (such as mobile phone, tablet, etc., that is, a device using the Android system), open its own browser, the browser initializes the web page, enters the URL, and the web page parses the URL to determine whether the URL matches the preset characters Rules, the purpose of judgment includes two, one is to access the c...
Embodiment 2
[0067] The purpose of this embodiment is to describe the extension process after the loading is completed:
[0068] First, update the game interface. The subsequent data, that is, the data transmitted from the web game server after completing the setting of the game interface, includes:
[0069] The asynchronous request interface obtains data from the server and loads the cached data. If the data obtained by the asynchronous request interface is faster than the cached data, the data of the asynchronous request interface is used to overwrite the cached data. The purpose is to test both At this time, if the data of the asynchronous request interface is used, the webpage is constructed through the function of the web (browser) itself, otherwise the WebView is used to render based on the cached data.
[0070] Secondly, if the subsequent user performs operations such as reload and pull-down refresh through the smart terminal (that is, a web page refresh request), the game client wi...
Embodiment 3
[0072] The present invention provides a browser game loading device suitable for the methods described in Embodiments 1 and 2, including:
[0073] A judging module 1, configured to judge that the URL conforms to a preset character rule;
[0074] WebView component 2, specifically the function provided by the Android system kernel, is used to create WebView;
[0075] The control module 3 is used to load the configuration template, load the cache API according to the configuration template to receive and store the game setting data; select the loading path of the game setting data according to the specific characters of the URL;
[0076] The rendering module 4 is configured to generate a game interface according to the game setting data.
[0077] The present invention also provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to make a computer execute the...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


