Somatosensory game method, device and computer-readable storage medium based on HTML5

Through the HTML5-based somatosensory game method, the client communicates with the server and caches the game program, and plays local games after disconnecting. This solves the poor user experience and adaptability problems of traditional somatosensory games, and enables instant gaming and multi-terminal support.

CN115040872BActive Publication Date: 2024-10-29SHENZHEN SHIMI NETWORK TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202210709081.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-22
Publication Date
2024-10-29
Estimated Expiration
2042-06-22

AI Technical Summary

Technical Problem

Traditional somatosensory games require the installation of a game terminal on the terminal, causing users to wait for downloads, resulting in poor user experience. In addition, the game cannot run on various terminals and has poor adaptability.

Method used

Using the HTML5-based somatosensory game method, the client obtains motion posture data from the server through web-view communication, converts it into game operation instructions, and disconnects after the cache is completed to play local games to avoid network impact and support multi-terminal operation.

Benefits of technology

It enables users to play games in real time, avoids network influence, improves user experience and game adaptability, and supports multiple terminal operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115040872B_ABST
    Figure CN115040872B_ABST
Patent Text Reader

Abstract

The present invention discloses a somatosensory game method, device and computer-readable storage medium based on HTML5, the method comprising: when the client is started, if the user terminal does not cache the HTML5 somatosensory game main program locally, the client establishes web-view communication with the HTML5 somatosensory game main program of the server; the client obtains the user's motion posture data from the user terminal, and converts the motion posture data into game operation instructions based on a preset algorithm; the client sends the game operation instructions to the server for the server to execute the game operation instructions; while the client accesses the HTML5 somatosensory game main program on the server, the HTML5 somatosensory game main program is cached from the server to the local; after the HTML5 somatosensory game main program is cached, the client disconnects from the server and accesses the local HTML5 somatosensory game main program. The method has the advantages of good user experience and good game adaptability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of somatosensory game technology, and in particular to a somatosensory game method, device and computer-readable storage medium based on HTML5. Background Art

[0002] Traditional motion sensing games require the installation of a game terminal on the terminal. After the game terminal is started, the player's motion sensing data is collected and analyzed by specific software before the operation of the motion sensing game can be realized.

[0003] The problem with this type of motion sensing game is that not only does it require users to wait for the game to be downloaded, which results in a poor user experience, but the game terminal also has requirements for the terminal's operating system. The game cannot be run on a variety of terminals, resulting in poor game adaptability. Summary of the invention

[0004] The embodiment of the present application aims to improve the user's gaming experience and the adaptability of somatosensory games by providing a somatosensory gaming method based on HTML5.

[0005] To achieve the above purpose, the embodiment of the present application provides a somatosensory gaming method based on HTML5, including:

[0006] When the client starts, if the user terminal does not cache the HTML5 somatosensory game main program locally, the client establishes web-view communication with the HTML5 somatosensory game main program of the server;

[0007] The client obtains the user's motion posture data from the user terminal, and converts the motion posture data into game operation instructions based on a preset algorithm;

[0008] The client sends the game operation instruction to the server, so that the server executes the game operation instruction;

[0009] When the client accesses the HTML5 somatosensory game main program on the server, the HTML5 somatosensory game main program is cached from the server to the local computer;

[0010] After the html5 somatosensory game main program is cached, the client disconnects from the server and accesses the local html5 somatosensory game main program. When the client accesses the local html5 somatosensory game main program, the client sends the game operation instructions to the local html5 somatosensory game main program.

[0011] In one embodiment, the client disconnects from the server and accesses the local HTML5 somatosensory game main program, including:

[0012] When displaying the preset game screen, the client disconnects from the server and accesses the local HTML5 somatosensory game main program to display the preset game screen.

[0013] In one embodiment, when displaying a preset game screen, the client disconnects from the server and accesses the local HTML5 somatosensory game main program to display the preset game screen, including:

[0014] After the html5 somatosensory game main program is cached, the client accesses the local html5 somatosensory game main program in the background of the user terminal;

[0015] When the preset game screen is displayed, the client disconnects from the server and calls the local HTML5 somatosensory game main program accessed in the background to the foreground.

[0016] In one embodiment, when displaying a preset game screen, the client disconnects from the server and accesses the local HTML5 somatosensory game main program to display the preset game screen, further comprising:

[0017] While the client accesses the local HTML5 somatosensory game main program in the background of the user terminal, the client preloads the preset game screen in the memory of the user terminal;

[0018] When displaying the preset game screen, the client directly loads the preset game screen from the memory.

[0019] In one embodiment, when displaying a preset game screen, the client disconnects from the server and accesses the local HTML5 somatosensory game main program to display the preset game screen, further comprising:

[0020] Before displaying the preset game screen, the client loads the preset transition content.

[0021] In one embodiment, the method further comprises:

[0022] After the client is started, if the user terminal has locally cached the HTML5 somatosensory game main program, it is determined whether the version number of the locally cached HTML5 somatosensory game main program is consistent with that of the server;

[0023] If not, the locally cached HTML5 somatosensory game main program is updated to the server version.

[0024] In one embodiment, the method further comprises:

[0025] After the client is disconnected from the HTML5 somatosensory game main program, the user information and the user's game information are saved locally.

[0026] In one embodiment, the user terminal obtains the motion posture data of the user from a somatosensory device that is communicatively connected to the user terminal.

[0027] To achieve the above objectives, an embodiment of the present application also proposes an HTML5-based somatosensory gaming device, comprising a memory, a processor, and an HTML5-based somatosensory gaming program stored in the memory and executable on the processor, wherein the processor implements the HTML5-based somatosensory gaming method as described in any one of the above items when executing the HTML5-based somatosensory gaming program.

[0028] To achieve the above objectives, an embodiment of the present application also proposes a computer-readable storage medium, on which a motion sensing game program based on HTML5 is stored. When the motion sensing game program based on HTML5 is executed by a processor, the motion sensing game method based on HTML5 as described in any of the above items is implemented.

[0029] The somatosensory game method based on HTML5 of the technical solution of the present application, when the terminal does not have the corresponding somatosensory game, the client can directly access the HTML5 somatosensory game main program on the server, so that when the client does not cache the HTML5 somatosensory game main program, the user can still play the game; at the same time, when the client accesses the server, the client will cache the HTML5 somatosensory game main program locally, and after the HTML5 somatosensory game main program is cached, the client will disconnect from the server and access the local HTML5 somatosensory game main program, so that the user can play the game locally on the terminal. Through the above method, users can play games instantly, and can play local games after the HTML5 somatosensory game main program is cached, so as to avoid the game experience being affected by the network. It can be seen that compared with the traditional somatosensory game method, the somatosensory game method of the present application has the advantages of playing games at any time, not being affected by the network, and having a good user experience. In addition, since HTML5 has the advantage of not being restricted by the system, the somatosensory game method of the present application also has the advantage of strong adaptability. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.

[0031] Figure 1 This is a module structure diagram of an embodiment of a somatosensory gaming device based on HTML5 of the present invention;

[0032] Figure 2 This is a flow chart of an embodiment of a somatosensory gaming method based on HTML5 of the present invention;

[0033] Figure 3 This is a flow chart of another embodiment of the somatosensory gaming method based on HTML5 of the present invention.

[0034] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0035] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0036] In order to better understand the above technical solution, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0037] It should be noted that in the claims, any reference symbols placed between brackets shall not be constructed as limitations to the claims. The presence of "comprising" in the text does not exclude the presence of components or steps not listed in the claims. The quantifier "one" or "an" preceding a component does not exclude the presence of a plurality of such components. The present invention can be implemented by means of hardware comprising several different components and by means of appropriately programmed computers. In a unit claim that lists several means, several of these means may be embodied by the same hardware item. The use of "first", "second", and "third" etc. does not indicate any order, and these words may be interpreted as names.

[0038] like Figure 1 As shown, Figure 1 It is a structural diagram of a server 1 (also called a somatosensory gaming device based on HTML5) in a hardware operating environment involved in an embodiment of the present invention.

[0039] The server of the embodiment of the present invention is a device with display function, such as "Internet of Things devices", smart air conditioners, smart lights, smart power supplies with networking functions, AR / VR devices with networking functions, smart speakers, self-driving cars, PCs, smart phones, tablet computers, e-book readers, portable computers, etc.

[0040] like Figure 1 As shown, the server 1 includes: a memory 11, a processor 12 and a network interface 13.

[0041] The memory 11 includes at least one type of readable storage medium, including flash memory, hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the server 1, such as a hard disk of the server 1. In other embodiments, the memory 11 may also be an external storage device of the server 1, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card, etc., equipped on the server 1.

[0042] Furthermore, the memory 11 may also include an internal storage unit of the server 1 and an external storage device. The memory 11 may be used not only to store application software and various data installed on the server 1, such as the code of the html5-based somatosensory game program 10, but also to temporarily store data that has been output or is to be output.

[0043] In some embodiments, the processor 12 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, used to run program codes or process data stored in the memory 11, such as executing an HTML5-based somatosensory game program 10.

[0044] The network interface 13 may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface), and is generally used to establish a communication connection between the server 1 and other electronic devices.

[0045] The network may be the Internet, a cloud network, a wireless fidelity (Wi-Fi) network, a personal area network (PAN), a local area network (LAN), and / or a metropolitan area network (MAN). Various devices in the network environment may be configured to connect to the communication network according to various wired and wireless communication protocols. Examples of such wired and wireless communication protocols may include, but are not limited to, at least one of the following: Transmission Control Protocol and Internet Protocol (TCP / IP), User Datagram Protocol (UDP), Hypertext Transfer Protocol (HTTP), File Transfer Protocol (FTP), ZigBee, EDGE, IEEE 802.11, Light Fidelity (Li-Fi), 802.16, IEEE 802.11s, IEEE802.11g, multi-hop communication, wireless access point (AP), device-to-device communication, cellular communication protocol, and / or Bluetooth (BlueTooth) communication protocol or a combination thereof.

[0046] Optionally, the server may further include a user interface, which may include a display, an input unit such as a keyboard, and an optional user interface may further include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be referred to as a display screen or a display unit, which is used to display information processed in the server 1 and to display a visual user interface.

[0047] Figure 1 Only the server 1 having components 11-13 and the HTML5-based somatosensory game program 10 is shown. It can be understood by those skilled in the art that Figure 1 The structure shown does not constitute a limitation on the server 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0048] In this embodiment, the processor 12 can be used to call the HTML5-based somatosensory game program stored in the memory 11 and perform the following operations:

[0049] When the client starts, if the user terminal does not cache the HTML5 somatosensory game main program locally, the client establishes web-view communication with the HTML5 somatosensory game main program on the server;

[0050] The client obtains the user's motion posture data from the user terminal, and converts the motion posture data into game operation instructions based on a preset algorithm;

[0051] The client sends the game operation instruction to the server so that the server executes the game operation instruction;

[0052] When the client accesses the HTML5 somatosensory game main program on the server, the HTML5 somatosensory game main program is cached from the server to the local computer;

[0053] After the html5 somatosensory game main program is cached, the client disconnects from the server and accesses the local html5 somatosensory game main program. When the client accesses the local html5 somatosensory game main program, the client sends the game operation instructions to the local html5 somatosensory game main program.

[0054] In one embodiment, the processor 12 may be used to call the HTML5-based somatosensory game program stored in the memory 11 and perform the following operations:

[0055] When displaying the preset game screen, the client disconnects from the server and accesses the local HTML5 somatosensory game main program to display the preset game screen.

[0056] In one embodiment, the processor 12 may be used to call the HTML5-based somatosensory game program stored in the memory 11 and perform the following operations:

[0057] After the html5 somatosensory game main program is cached, the client accesses the local html5 somatosensory game main program in the background of the user terminal;

[0058] When the preset game screen is displayed, the client disconnects from the server and calls the local HTML5 somatosensory game main program accessed in the background to the foreground.

[0059] In one embodiment, the processor 12 may be used to call the HTML5-based somatosensory game program stored in the memory 11 and perform the following operations:

[0060] While the client accesses the local HTML5 somatosensory game main program in the background of the user terminal, the client preloads the preset game screen in the memory of the user terminal;

[0061] When displaying the preset game screen, the client directly loads the preset game screen from the memory.

[0062] In one embodiment, the processor 12 may be used to call the HTML5-based somatosensory game program stored in the memory 11 and perform the following operations:

[0063] Before displaying the preset game screen, the client loads the preset transition content.

[0064] In one embodiment, the processor 12 may be used to call the HTML5-based somatosensory game program stored in the memory 11 and perform the following operations:

[0065] When the client starts, if the user terminal has the HTML5 somatosensory game main program cached locally, it is determined whether the version number of the HTML5 somatosensory game main program cached locally is consistent with that of the HTML5 somatosensory game main program on the server;

[0066] If not, the locally cached HTML5 somatosensory game main program is updated to the server version.

[0067] In one embodiment, the processor 12 may be used to call the HTML5-based somatosensory game program stored in the memory 11 and perform the following operations:

[0068] After the client is disconnected from the HTML5 somatosensory game main program, the user information and the user's game information are saved locally.

[0069] Based on the hardware architecture of the somatosensory gaming device based on HTML5, an embodiment of the somatosensory gaming method based on HTML5 of the present invention is proposed. The somatosensory gaming method based on HTML5 of the present invention aims to enhance the gaming experience of users and the adaptability of somatosensory games.

[0070] Reference Figure 2 , Figure 2 This is an embodiment of the somatosensory gaming method based on HTML5 of the present invention, and the somatosensory gaming method based on HTML5 includes the following steps:

[0071] S10. When the client starts, if the user terminal does not cache the HTML5 somatosensory game main program locally, the client establishes web-view communication with the HTML5 somatosensory game main program of the server.

[0072] Among them, user terminals refer to PCs, mobile terminals, game consoles, portable consoles and other terminals.

[0073] HTML5 is a language description method for building web content. HTML5 is the specification of HTML, the core language of the Web. When users browse the web by any means, the content they see is originally in HTML format, which is converted into recognizable information through some technical processing in the browser.

[0074] Web-view refers to a web page view, which can be embedded in a mobile terminal to achieve hybrid development of the front end.

[0075] The client refers to an application installed on a user terminal. Generally speaking, when the user terminal is a mobile terminal, the client usually refers to an APP on the mobile terminal.

[0076] Specifically, after the user starts the client, the client will perform an application self-check. At this time, if the user terminal does not cache the HTML5 somatosensory game main program locally, it means that the client on the terminal is started for the first time and the desired somatosensory game is not cached locally. At this time, the HTML5 somatosensory game main program on the server can be accessed through the client's built-in web-view component. The web-view component can display the server's content on the terminal's display.

[0077] S20: The client obtains the user's motion posture data from the user terminal, and converts the motion posture data into game operation instructions based on a preset algorithm.

[0078] Specifically, user motion posture data refers to the posture data collected from the user's somatosensory movements, which usually includes three-axis acceleration data and three-axis gyroscope data. After the client obtains the user's motion posture data, it can convert the motion posture data into game operation instructions based on a preset algorithm. Specifically, the client can perform data analysis on the user's motion posture data through the Euler angle algorithm to obtain the user's motion space trajectory, and then obtain the corresponding somatosensory game operation instructions based on the user's motion space trajectory.

[0079] In some embodiments, the user terminal obtains the motion posture data of the user from a somatosensory device that is communicatively connected to the user terminal.

[0080] Such a design can not only reduce the computing pressure of the user terminal, but also the specific somatosensory device can help improve the collection accuracy of the user's motion posture data to improve the operation accuracy of the game. Exemplarily, the somatosensory device can be a bracelet, a glove watch, a headscarf, a hat, a vest, a fitness ring, a game controller and other devices. In addition to motion detection, the somatosensory device defined by the technical solution of the present application must also have a communication connection function to establish a communication connection with the terminal. The communication connection can be a wireless connection (such as a Bluetooth connection, a WiFi connection, etc.) or a wired connection (such as a connection via USB data).

[0081] It is worth noting that the design of the present application is not limited to this. In other embodiments, if the terminal itself has an IMU sensor, the client can also directly obtain motion posture data from the terminal.

[0082] S30. The client sends the game operation instruction to the server, so that the server executes the game operation instruction.

[0083] Specifically, after calculating the corresponding game operation instructions, the client can send the corresponding game operation instructions to the server based on the communication protocol with the server (usually TCP / IP protocol). After receiving the corresponding game operation instructions, the server executes the game operation instructions to play the game.

[0084] It is worth noting that a preset algorithm for converting game operation instructions is embedded in the client. When converting game operation instructions, the client can call the terminal computing power to obtain the required game operation instructions. Among them, the game operation instructions converted by the client can reduce the amount of data from the client to the server, thereby reducing the delay from the client to the server.

[0085] S40. When the client accesses the HTML5 somatosensory game main program on the server, the HTML5 somatosensory game main program is cached locally from the server.

[0086] Specifically, when the client accesses the HTML5 somatosensory game main program on the server, the client also caches the HTML5 somatosensory game main program from the server to the local terminal.

[0087] S50. After the html5 somatosensory game main program is cached, the client disconnects from the server and accesses the local html5 somatosensory game main program. When the client accesses the local html5 somatosensory game main program, the client sends the game operation instructions to the local html5 somatosensory game main program.

[0088] Specifically, after the HTML5 somatosensory game main program is cached locally, the client disconnects the web-view communication with the server and instead establishes web-view communication with the local HTML5 somatosensory game main program. At this time, the client will directly send the game operation instructions to the local HTML5 somatosensory game main program, which is equivalent to directly executing the game locally instead of playing in the cloud. In this way, even if the client is disconnected from the server, the user's game will not be terminated, and the terminal's network signal strength will not affect the user's gaming experience.

[0089] Among them, because the client can convert the user's motion posture data into game operation instructions,

[0090] Therefore, you can still get game operation instructions directly without going through the server.

[0091] It can be understood that the HTML5-based somatosensory game method of the technical solution of the present application, when the terminal does not have the corresponding somatosensory game, the client can directly access the HTML5 somatosensory game main program on the server, so that when the client has not cached the HTML5 somatosensory game main program, the user can still play the game; at the same time, when the client accesses the server, the client will cache the HTML5 somatosensory game main program locally. After the HTML5 somatosensory game main program is cached, the client will disconnect from the server and access the local HTML5 somatosensory game main program, so that the user can play the game locally on the terminal. In the above manner, users can play games instantly, and can also play games after the HTML5 somatosensory game main program is cached.

[0092] Play local games to avoid the gaming experience being affected by the network. It can be seen that compared with the traditional somatosensory gaming method, the somatosensory gaming method of the present application has the advantages of being able to play games at any time, not being affected by the network, and having a good user experience. In addition, since HTML5 has the advantage of not being restricted by the system, the somatosensory gaming method of the present application also has the advantage of strong adaptability.

[0093] In some embodiments, the client disconnects from the server and accesses the local HTML5 somatosensory game main program, including:

[0094] When displaying the preset game screen, the client disconnects from the server and accesses the local HTML5 somatosensory game main program to display the preset game screen.

[0095] Among them, the preset game screen refers to a screen where the user does not need to perform frequent game operations, such as the end screen of the current game level, or the selection screen of the game level, the main interface of the game, etc.

[0096] Specifically, the client can determine whether the preset game screen is about to be displayed based on the current game screen. For example, when the current game level enters the final stage, the client can determine whether the game is about to display the preset game screen. Alternatively, the client can determine whether the game is about to display the preset game screen based on the logic frame of the somatosensory game (the logic frame of the game is usually faster than the rendering frame of the game, so whether the preset game screen is about to be displayed can be determined based on the logic frame).

[0097] Specifically, when it is determined that the game is about to display the preset game screen, the client can disconnect from the server and access the local HTML5 somatosensory game main program to display the preset game screen. In this way, the normal progress of the current game screen can be ensured, and the local HTML5 somatosensory game main program can be seamlessly switched to.

[0098] It is worth noting that the design of the present application is not limited to this. In other embodiments, after the html5 somatosensory game main program is cached, the client accesses the local html5 somatosensory game main program the next time the user plays the game.

[0099] In some embodiments, when displaying a preset game screen, the client disconnects from the server and accesses the local HTML5 somatosensory game main program to display the preset game screen, including:

[0100] After the html5 somatosensory game main program is cached, the client accesses the local html5 somatosensory game main program in the background of the user terminal;

[0101] When the preset game screen is displayed, the client disconnects from the server and calls the local HTML5 somatosensory game main program accessed in the background to the foreground.

[0102] Specifically, since the local HTML5 somatosensory game main program accessed in the background does not need to play the actual game, it will not take up too many computing resources and will not affect the user's gaming experience. Accessing the local HTML5 somatosensory game main program in the background can complete the switch immediately when switching to the local HTML5 somatosensory game main program, reducing the user's waiting time and the sense of lag when switching, and improving the user experience.

[0103] In some embodiments, when displaying a preset game screen, the client disconnects from the server and accesses the local HTML5 somatosensory game main program to display the preset game screen, further comprising:

[0104] While the client accesses the local HTML5 somatosensory game main program in the background of the user terminal, the client preloads the preset game screen in the memory of the user terminal;

[0105] When displaying the preset game screen, the client directly loads the preset game screen from the memory.

[0106] Specifically, after the client successfully establishes communication with the local HTML5 somatosensory game main program in the background, it can directly access the preset game content. In this way, the preset game screen can be preloaded in the terminal flying memory. In this way, when switching to the local HTML5 somatosensory game main program, the local HTML5 somatosensory game main program can be directly called from the background to the foreground, and the preset game screen can be directly refreshed, thereby further reducing the lag caused by the client switching access objects, so as to improve the user experience.

[0107] In some embodiments, when displaying a preset game screen, the client disconnects from the server and accesses the local HTML5 somatosensory game main program to display the preset game screen, further comprising:

[0108] Before displaying the preset game screen, the client loads the preset transition content.

[0109] Specifically, when the current game screen ends and the client determines that the game is about to refresh the preset game screen, the client can load a preset transition content, which can be a preset animation, a preset static screen, and the like.

[0110] It can be understood that by loading the preset transition content, the user can be prevented from perceiving that the client access object has switched, thereby improving the user's gaming experience. In some embodiments, the html5-based somatosensory gaming method of the present application further includes:

[0111] S110. After the client is started, if the user terminal has locally cached the HTML5 somatosensory game main program, it is determined whether the version number of the locally cached HTML5 somatosensory game main program is consistent with that of the server's HTML5 somatosensory game main program.

[0112] S120: If not, then update the locally cached HTML5 somatosensory game main program to the server version.

[0113] Specifically, after the client is started, the client still establishes a communication connection with the server first. After the client successfully establishes communication with the server, the client can compare the version number of the locally cached HTML5 somatosensory game main program with the version number of the server-side HTML5 somatosensory game main program to determine whether the local HTML5 somatosensory game main program is the latest version. If they are inconsistent, it means that the locally cached HTML5 somatosensory game main program is not the latest version. At this time, the latest version of the HTML5 somatosensory game main program can be cached from the server to the local to update the local HTML5 somatosensory game main program. Of course, after the local HTML5 somatosensory game main program is updated, the user can play the game normally.

[0114] In some embodiments, the html5-based somatosensory gaming method of the present application further includes:

[0115] After the client is disconnected from the HTML5 somatosensory game main program, the user information and the user's game information are saved locally.

[0116] Through the above settings, the user's personal information and game information are saved locally to protect the user's privacy. When playing the game later, the user information and game information saved on the client can be used directly without uploading to the server. Of course, if the user needs to change the terminal, the client can also provide an interface for cloud backup information.

[0117] In addition, the embodiment of the present invention also proposes a computer-readable storage medium, which can be any one or any combination of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a portable compact disk read-only memory (CD-ROM), a USB memory, etc. The computer-readable storage medium includes a somatosensory game program 10 based on HTML5. The specific implementation of the computer-readable storage medium of the present invention is roughly the same as the specific implementation of the somatosensory game method based on HTML5 and the server 1, which will not be repeated here.

[0118] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0119] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0120] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0121] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0122] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0123] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A somatosensory gaming method based on HTML5, characterized in that: include: When the client starts, if the user terminal does not cache the HTML5 somatosensory game main program locally, the client establishes web-view communication with the HTML5 somatosensory game main program of the server; The client obtains the user's motion posture data from the user terminal, and converts the motion posture data into game operation instructions based on a preset algorithm; The client sends the game operation instruction to the server, so that the server executes the game operation instruction; When the client accesses the HTML5 somatosensory game main program on the server, the HTML5 somatosensory game main program is cached from the server to the local computer; After the html5 somatosensory game main program is cached, the client disconnects from the server and accesses the local html5 somatosensory game main program, wherein when the client accesses the local html5 somatosensory game main program, the client sends the game operation instruction to the local html5 somatosensory game main program; The client disconnects from the server and accesses the local HTML5 somatosensory game main program, including: When displaying the preset game screen, the client disconnects from the server and accesses the local HTML5 somatosensory game main program to display the preset game screen; When displaying the preset game screen, the client disconnects from the server and accesses the local HTML5 somatosensory game main program to display the preset game screen, including: After the html5 somatosensory game main program is cached, the client accesses the local html5 somatosensory game main program in the background of the user terminal; When the preset game screen is displayed, the client disconnects from the server and calls the local HTML5 somatosensory game main program accessed in the background to the foreground.

2. The html5-based somatosensory gaming method according to claim 1, characterized in that: When displaying the preset game screen, the client disconnects from the server and accesses the local HTML5 somatosensory game main program to display the preset game screen, and also includes: While the client accesses the local HTML5 somatosensory game main program in the background of the user terminal, the client preloads the preset game screen in the memory of the user terminal; When displaying the preset game screen, the client directly loads the preset game screen from the memory.

3. The HTML5-based somatosensory gaming method according to claim 1 or 2, characterized in that: When displaying the preset game screen, the client disconnects from the server and accesses the local HTML5 somatosensory game main program to display the preset game screen, and also includes: Before displaying the preset game screen, the client loads the preset transition content.

4. The somatosensory gaming method based on HTML5 as claimed in claim 1, characterized in that: The method further comprises: After the client is started, if the user terminal has locally cached the HTML5 somatosensory game main program, it is determined whether the version number of the locally cached HTML5 somatosensory game main program is consistent with that of the server; If not, the locally cached HTML5 somatosensory game main program is updated to the server version.

5. The somatosensory gaming method based on HTML5 as claimed in claim 1, characterized in that: The method further comprises: After the client is disconnected from the HTML5 somatosensory game main program, the user information and the user's game information are saved locally.

6. The html5-based somatosensory gaming method according to claim 1, characterized in that: The user terminal obtains the motion posture data of the user from a somatosensory device that is communicatively connected to the user terminal.

7. A somatosensory gaming device based on HTML5, characterized in that: It includes a memory, a processor, and an HTML5-based somatosensory game program stored in the memory and executable on the processor. When the processor executes the HTML5-based somatosensory game program, the HTML5-based somatosensory game method as described in any one of claims 1 to 6 is implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a somatosensory game program based on HTML5, and when the somatosensory game program based on HTML5 is executed by a processor, the somatosensory game method based on HTML5 as described in any one of claims 1-6 is implemented.

Citation Information

Patent Citations

  • Cloud computing-based game operating implementation method

    CN103685356A

  • Mobile client motion sensing game generating method

    CN106293084A

  • H5 mini game resource caching method

    CN110090436A

  • Method and device for realizing game operation and computer readable storage medium

    CN112473131A

  • Game client version switching method and device

    CN113384897A