WO2020073204A1 - 游戏控制方法及相关产品 - Google Patents
游戏控制方法及相关产品 Download PDFInfo
- Publication number
- WO2020073204A1 WO2020073204A1 PCT/CN2018/109535 CN2018109535W WO2020073204A1 WO 2020073204 A1 WO2020073204 A1 WO 2020073204A1 CN 2018109535 W CN2018109535 W CN 2018109535W WO 2020073204 A1 WO2020073204 A1 WO 2020073204A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- game
- target
- target game
- information
- running
- Prior art date
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
- A63F13/35—Details of game servers
- A63F13/358—Adapting the game course according to the network or server load, e.g. for reducing latency due to different connection speeds between clients
Definitions
- This application relates to the field of electronic technology, in particular to a game control method and related products.
- An applet or mini-game in an electronic device is an application that can be used without downloading and installing. For example, in a game lobby installed through an electronic device, the user can directly click on the mini-game to enter the mini-game interface, but also through other applications The game advertisement in the application interface of the application enters the game lobby and opens the mini game, but in the process of running the mini game, if the running speed of the mini game is too slow, it will affect the user's game experience. The problem needs to be solved urgently.
- the embodiments of the present application provide a game control method and related products, which can increase the running speed of a small game during the process of running a small game on an electronic device.
- an embodiment of the present application provides a game control method.
- the method includes:
- the game advertisement being an advertisement displayed in an application interface of a target application
- an embodiment of the present application provides a game control device.
- the game control device includes:
- a receiving unit configured to receive a trigger instruction for a game advertisement, the game advertisement being an advertisement displayed in an application interface of a target application;
- the processing unit is configured to jump to the game lobby according to the trigger instruction, and run the target game corresponding to the game advertisement through the game lobby;
- the processing unit is further used to acquire game information of the target game, and when the game information meets the preset condition, temporarily suspend the execution of the target application.
- an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured by the above
- the processor executes, and the above program includes instructions for performing the steps in the first aspect of the embodiments of the present application.
- an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute the first embodiment of the present application. Part or all of the steps described in one aspect.
- an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing the computer program, and the computer program is operable to cause the computer to execute as implemented in the present application Examples of some or all of the steps described in the first aspect.
- the computer program product may be a software installation package.
- the game advertisement is the advertisement displayed in the application interface of the target application, and jumps to the game lobby according to the trigger instruction, And run the target game corresponding to the game advertisement through the game lobby to obtain the game information of the target game.
- the target application is temporarily suspended. In this way, the target application can be suspended while the electronic device is running the small game. To increase the running speed of small games.
- FIG. 1A is a schematic structural diagram of an electronic device according to an embodiment of the present application.
- FIG. 1B is a schematic flowchart of a game control method disclosed in an embodiment of the present application.
- FIG. 2 is a schematic flowchart of another game control method disclosed in an embodiment of the present application.
- FIG. 3 is a schematic flowchart of another game control method disclosed in an embodiment of the present application.
- FIG. 4 is a schematic structural diagram of another electronic device disclosed in an embodiment of the present application.
- 5A is a schematic structural diagram of a game control device disclosed in an embodiment of the present application.
- FIG. 5B is a modified structure of the game control device shown in FIG. 5A provided by an embodiment of the present application;
- FIG. 5C is another modified structure of the game control device shown in FIG. 5A provided by an embodiment of the present application.
- FIG. 5D is a modified structure of another game control device shown in FIG. 5A provided by an embodiment of the present application.
- the electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and various forms of user equipment (user equipment, UE), mobile station (MS), terminal device, etc.
- UE user equipment
- MS mobile station
- terminal device etc.
- the devices mentioned above are collectively referred to as electronic devices.
- FIG. 1A is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
- the electronic device 100 may include a control circuit, and the control circuit may include a storage and processing circuit 110.
- the storage and processing circuit 110 may be a memory, such as a hard disk drive memory, a non-volatile memory (such as flash memory or other electronic programmable read-only memory used to form a solid-state drive, etc.), a volatile memory (such as static or dynamic random memory Take memory, etc.), etc., the embodiments of the present application are not limited.
- the processing circuit in the storage and processing circuit 110 may be used to control the operation of the electronic device 100.
- the processing circuit can be implemented based on one or more microprocessors, microcontrollers, digital master-slave headphone switching controllers, baseband processors, power management units, audio codec chips, dedicated integrated circuits, display driver integrated circuits, etc. .
- the storage and processing circuit 110 may be used to run software in the electronic device 100, such as Internet browsing applications, voice over Internet (VOIP) phone call applications, email applications, media playback applications, operating system functions Wait. These software can be used to perform some control operations, for example, camera-based image acquisition, ambient light sensor-based ambient light measurement, proximity sensor-based proximity sensor measurement, and information based on status indicators such as light-emitting diode status indicators Display functions, touch event detection based on touch sensors, functions associated with displaying information on multiple (e.g., layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals
- the control operations associated with collecting and processing button press event data and other functions in the electronic device 100 are not limited in the embodiments of the present application.
- the electronic device 100 may further include an input-output circuit 150.
- the input-output circuit 150 may be used to enable the electronic device 100 to realize input and output of data, that is, to allow the electronic device 100 to receive data from an external device and also allow the electronic device 100 to output data from the electronic device 100 to an external device.
- the input-output circuit 150 may further include a sensor 170.
- the sensor 170 may include an ambient light sensor, a proximity sensor based on light and capacitance, and a touch sensor (for example, a light-based touch sensor and / or a capacitive touch sensor, where the touch sensor may be part of a touch display screen or may be used as a The touch sensor structure is used independently), acceleration sensor, gravity sensor, and other sensors.
- the input-output circuit 150 may also include one or more displays, such as the display 130.
- the display 130 may include a liquid crystal display, an organic light-emitting diode display, an electronic ink display, a plasma display, or a display using other display technologies or a combination of several.
- the display 130 may include a touch sensor array (ie, the display 130 may be a touch display screen).
- the touch sensor may be a capacitive touch sensor formed by an array of transparent touch sensor electrodes (such as indium tin oxide (ITO) electrodes), or may be a touch sensor formed using other touch technologies, such as sonic touch, pressure sensitive touch, resistance Touch, optical touch, etc. are not limited in the embodiments of the present application.
- the audio component 140 may be used to provide audio input and output functions for the electronic device 100.
- the audio component 140 in the electronic device 100 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
- the communication circuit 120 may be used to provide the electronic device 100 with the ability to communicate with external devices.
- the communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and / or optical signals.
- the wireless communication circuit in the communication circuit 120 may include a radio frequency transceiver circuit, a power amplifier circuit, a low noise amplifier, a switch, a filter, and an antenna.
- the wireless communication circuit in the communication circuit 120 may include a circuit for supporting near field communication (NFC) by transmitting and receiving near-field coupled electromagnetic signals.
- the communication circuit 120 may include a near field communication antenna and a near field communication transceiver.
- the communication circuit 120 may also include a cellular phone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and so on.
- the electronic device 100 may further include a battery, a power management circuit, and other input-output units 160.
- the input-output unit 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes, other status indicators, and the like.
- the user can input commands through the input-output circuit 150 to control the operation of the electronic device 100, and can use the output data of the input-output circuit 150 to realize receiving status information and other outputs from the electronic device 100.
- FIG. 1B is a schematic flowchart of a game control method provided by an embodiment of the present application.
- the game control method described in this embodiment is applied to an electronic device as shown in FIG. 1A.
- the game control method includes:
- a trigger instruction for a game advertisement which is an advertisement displayed in an application interface of a target application.
- the target application may include an application installed in an electronic device or a system application that comes with the system when it is shipped from the factory, for example, a chat application, a payment application, a game application, a reading application, a video playback application, a music playback application, etc.
- a chat application for example, a chat application, a payment application, a game application, a reading application, a video playback application, a music playback application, etc.
- the embodiments of the present application are not limited.
- the electronic device may display game advertisements on the application interface of the target application.
- the game advertisements may include at least one of the following: splash screen advertisements, banner advertisements, interstitial advertisements, native advertisements, and incentives. Advertising, etc.
- the splash screen advertisement is loaded when the application is opened, and is automatically closed after the display is completed and enters the main page of the application.
- Banner advertisement is a control composed of graphics and text, which is displayed at the top and middle of the application interface.
- interstitial ads are ads that pop up in the form of half-screen or full-screen when the application starts, pauses, and exits, showing the opportunity to cleverly avoid the user's normal experience of the application
- Native ads are ads that are deliberately modified after combining platform characteristics, user and visual experience, and content environment. They are characterized by naturalness and imperceptibility.
- Incentive ads refer to interactive ads that achieve lasting rewards by inspiring audiences, for example.
- the user sees the game displayed in the application interface After the report, if interested in the game ad corresponding goal of the game, the game can click on the ad or window control key to enter the corresponding game advertising goal of the game.
- the above-mentioned game hall refers to a game platform application that integrates multiple mini-games.
- Electronic devices can enter the target game through the game hall.
- the above-mentioned target game can include links through the target application, game advertisements into the game hall, and through the game hall Opened mini-games, mini-games do not need to be downloaded and installed the corresponding game application, you can directly start the game, for example, the electronic device can jump to the game lobby after receiving the user ’s trigger instruction to click the game advertisement in the browser application.
- a prompt page to install the game lobby can be displayed to prompt the user to install the game lobby application, and then download and install the game lobby, after the electronic device enters the game lobby, the game lobby can run the corresponding target of the game advertisement Games, in the embodiment of the present application, the user can quickly enter the mini-game by triggering the game advertisement of the target application, which makes the way of starting the game more convenient and improves the user's game experience.
- running the target game corresponding to the game advertisement through the game lobby may specifically include the following steps:
- the target game resource may include a program for running the target game, and may also include setting information for assisting in running the target game, such as permission setting information, game props, game character information, and so on.
- the following steps may be further included:
- the version number of the target game and the latest version number of the target game may be obtained, and then the version number of the target game Match with the latest version number. If the match is successful, it indicates that the target game is the latest version. No update is required. If the match fails, the game version of the target game can be updated to the latest version to obtain the latest version of the target game resource.
- the current network of the electronic device Before updating the game resources corresponding to the target game, it can also be determined whether the current network of the electronic device is a data network or a wireless network. If the current network is a data network, the remaining traffic of the user's current network account can be further determined. If it is less than the preset value, the game resources corresponding to the target game will not be updated. If the current network of the electronic device belongs to the wireless network, or if the remaining traffic of the user ’s current network account is greater than or equal to the preset value, execute Update the corresponding game resources.
- the embodiments of the present application may further include the following steps:
- the multiple data packets include a first data packet, and the first data packet includes the multiple data packets except the first data packet Configuration information of other data packets;
- running the target game according to the target game resource may specifically include the following steps:
- the target game resource in order to increase the loading and running rate of the target game, may be split into multiple data packets, and then multiple data packets are loaded in a preset order. After the first data packet is loaded, the The first data packet runs the target game and loads other data packets according to the configuration information of the other data packets carried in the first data packet, so that it is not necessary to run the target game after loading all the content of the target game resources, which improves the target The running speed of the game.
- the above game information may include at least one of the following: running state information of the target game, user operation information of the target game, game information of other players received by the electronic device, etc.
- the target application can be suspended when the target game enters the game running state, where the game running state refers to the state of entering the game scene, game levels, and game tasks, specifically, the target can be run in the background Application, reduce the network resources, memory resources, CPU resources, etc. allocated to the target application.
- the target game When the target game enters the waiting state, it can resume the running of the target application in the background, for example, after the target game completes the operation of a certain level, or the target The game enters a pause, or the target game can resume the operation of the target application after the completion of a certain game task. In this way, if the target application receives a message, the user can view the message in time.
- the game information includes target running state information of the target game.
- the following steps may also be included:
- the running state information includes at least one of the following: network rate, game memory, CPU usage;
- the correspondence between the running state information and the game running rate may be preset, for example, the correspondence between the network rate and the game running rate, the correspondence between the game memory and the game running rate, or the CPU Correspondence between the occupancy rate and the game running rate.
- the target game running rate corresponding to the target running state information can be determined according to the corresponding relationship, and then whether the target running state information is less than the first
- the preset threshold if less than, indicates that the target game runs at a slower rate, and it can be determined that the game information meets the preset conditions.
- the battery temperature or the internal temperature of the housing of the electronic device may also be determined.
- the target application may be slowed down.
- the game information includes user operation information for the target game.
- the following steps may also be included:
- the above user operation information may include user operation instruction type, user operation frequency, user operation duration, etc.
- the user targets different types of operation instructions, for example, shooting In-game movement instructions, shooting instruction prop selection instructions, etc., and for example, message sending instructions, movement instructions, skill launching instructions in scene games, etc., the improper user's operating frequency does not fall within the preset range, or the operating time exceeds the Set a time threshold to determine that the target game is stuck, if the target game is stuck, determine that the game information meets the preset conditions, so that when the target game is stuck, the target application can be suspended to increase the running speed of the target game .
- the game information includes battle game information of other players received by the electronic device.
- the following steps may also be included:
- the above game information includes game running status information, game character information, game operation information, etc. of other players.
- the electronic device when the target game is a game, the electronic device will obtain the game information of other players. And parse the game information of the game, so that the user can determine the next game operation according to the game state of other game players. Therefore, the data resolution rate of the electronic device to analyze the game information of the game can be obtained, if the data analysis rate is less than the second preset threshold Indicates that the data parsing rate is slow, which affects the user's game rate, and it can be determined that the game information meets the preset condition.
- the embodiments of the present application may further include the following steps:
- the application memory occupation resource of the target application may also be obtained. If the application memory occupation resource is greater than the third preset threshold, maintaining the target application running in the background will occupy the memory resource of the target game. , You can stop running the target application, which can increase the running speed of the target game and prevent the target game from freezing or dropping.
- the game control method described in the embodiments of the present application receives the trigger instruction for the game advertisement, and the game advertisement is the advertisement displayed in the application interface of the target application, jumps to the game lobby according to the trigger instruction, and passes the game Run the target game corresponding to the game advertisement in the lobby to obtain the game information of the target game.
- the game information meets the preset conditions, suspend the operation of the target application. In this way, the target application can be suspended while the electronic device is running the small game. The running speed of the game to prevent the target game from freezing or dropping.
- FIG. 2 is a schematic flowchart of another game control method provided by an embodiment of the present application.
- the game control method described in this embodiment is applied to an electronic device as shown in FIG. 1A.
- the method may include the following steps :
- 201. Receive a trigger instruction for a game advertisement, which is an advertisement displayed in an application interface of a target application.
- the game control method described in the embodiment of the present application receives the trigger instruction for the game advertisement, and the game advertisement is the advertisement displayed in the application interface of the target application, jumps to the game lobby according to the trigger instruction, and passes the game lobby Obtain the target game resources of the target game, run the target game according to the target game resources, and obtain the game information of the target game. When the game information meets the preset conditions, suspend the running of the target application. Suspend running the target application, increase the running speed of the mini-game, and prevent the target game from freezing or dropping.
- FIG. 3 is a schematic flowchart of another embodiment of a game control method provided by an embodiment of the present application.
- the game control method described in this embodiment is applied to an electronic device as shown in FIG. 1A.
- the method may include the following steps:
- 301 Receive a trigger instruction for a game advertisement, which is an advertisement displayed in an application interface of a target application.
- the running state information includes at least one of the following: network rate, game memory, CPU usage.
- target game running rate is less than the first preset threshold, determine that the game information satisfies the preset condition, and suspend running the target application.
- the game advertisement is an advertisement displayed in the application interface of the target application, jumps to the game lobby according to the trigger instruction, and obtains the target game through the game lobby Target game resources, based on the correspondence between the preset running state information and the game running rate, determine the target game running rate corresponding to the target running state information, the running state information includes at least one of the following: network rate, game memory, CPU Occupancy rate, if the target game running rate is less than the first preset threshold, it is determined that the game information meets the preset condition, and the target application is suspended. In this way, the target application can be suspended during the process of running the small game on the electronic device to The running speed of the game to prevent the target game from freezing or dropping.
- the following is a device for implementing the above game control method, as follows:
- FIG. 4 is an electronic device provided by an embodiment of the present application, including: a processor and a memory; and one or more programs, the one or more programs are stored in the In the memory, and configured to be executed by the processor, the program includes instructions for performing the following steps:
- the game advertisement being an advertisement displayed in an application interface of a target application
- the game information includes target running state information of the target game
- the program further includes instructions for performing the following steps:
- the running state information includes at least one of the following: network rate, game memory, CPU usage rate;
- the target game running rate is less than the first preset threshold, it is determined that the game information meets the preset condition.
- the game information includes user operation information for the target game
- the program further includes instructions for performing the following steps:
- the game information includes battle game information of other players received by the electronic device, and the program further includes instructions for performing the following steps:
- the program includes instructions for performing the following steps:
- the program before running the target game corresponding to the game advertisement through the game lobby, the program further includes instructions for performing the following steps:
- the program before updating the game resources corresponding to the target game, the program further includes instructions for performing the following steps:
- If the current network state is a wireless network, perform the operation of updating the game resources corresponding to the target game;
- the operation of updating the game resources corresponding to the target game is performed.
- the program further includes instructions for performing the following steps:
- the target game resource into multiple data packets, the multiple data packets including a first data packet, and the first data packet includes data other than the first data packet among the multiple data packets Package configuration information;
- the running the target game according to the target game resources includes:
- the target game is sequentially executed according to the plurality of data packets.
- the program further includes instructions for performing the following steps:
- FIG. 5A is a schematic structural diagram of a game control device provided by this embodiment.
- the game control device is applied to an electronic device as shown in FIG. 1A.
- the game control device includes a receiving unit 501, a processing unit 502, and an acquiring unit 503, where,
- the receiving unit 501 is configured to receive a trigger instruction for a game advertisement, and the game advertisement is an advertisement displayed in an application interface of a target application;
- the processing unit 502 is configured to jump to a game lobby according to the trigger instruction, and run a target game corresponding to the game advertisement through the game lobby;
- the acquiring unit 503 is used to acquire game information of the target game
- the processing unit 502 is further configured to suspend the execution of the target application when the game information meets a preset condition.
- the game information includes target running state information of the target game.
- FIG. 5B is a modified structure of the game running device shown in FIG. 5A. Compared with FIG. 5A, it may further include: A determining unit 504, the first determining unit 504 is specifically configured to:
- the running state information includes at least one of the following: network rate, game memory, CPU usage rate;
- the target game running rate is less than the first preset threshold, it is determined that the game information meets the preset condition.
- the game information includes user operation information for the target game.
- FIG. 5C is a modified structure of the game running device shown in FIG. 5A. Compared with FIG. 5A, it may further include: Two determining unit 505, the second determining unit 505 is specifically configured to:
- the game information includes battle game information of other players received by the electronic device, as shown in FIG. 5D
- FIG. 5D is a modified structure of the game running device shown in FIG. 5A Compared with FIG. 5A, it may further include: a third determining unit 506, and the third determining unit 506 is specifically configured to:
- the processing unit 502 is specifically configured to:
- the processing unit 502 is further configured to:
- the processing unit 502 is further configured to:
- If the current network state is a wireless network, perform the operation of updating the game resources corresponding to the target game;
- the operation of updating the game resources corresponding to the target game is performed.
- processing unit 502 is also used to:
- the target game resource into multiple data packets, the multiple data packets including a first data packet, and the first data packet includes data other than the first data packet among the multiple data packets Package configuration information;
- the processing unit 502 is specifically configured to:
- the target game is sequentially executed according to the plurality of data packets.
- the obtaining unit 503 is further configured to obtain the application memory occupied resources of the target application;
- the processing unit 502 is further configured to stop running the target application.
- the game control device described in the embodiment of the present application receives the trigger instruction for the game advertisement, and the game advertisement is the advertisement displayed in the application interface of the target application, jumps to the game lobby according to the trigger instruction, and passes the game Run the target game corresponding to the game advertisement in the lobby to obtain the game information of the target game.
- the game information meets the preset conditions, suspend the operation of the target application. In this way, the target application can be suspended while the electronic device is running the small game. The running speed of the game to prevent the target game from freezing or dropping.
- Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, which causes the computer to execute any part of the game control method described in the above method embodiments Or all steps.
- An embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause the computer to execute as described in the above method embodiments Some or all steps of any game control method.
- the disclosed device may be implemented in other ways.
- the device embodiments described above are only schematic.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or may Integration into another system, or some features can be ignored, or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of software program modules.
- the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it may be stored in a computer-readable memory.
- the technical solution of the present application essentially or part of the contribution to the existing technology or all or part of the technical solution can be embodied in the form of a software product, the computer software product is stored in a memory, Several instructions are included to enable a computer device (which may be a personal computer, server, network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application.
- the foregoing memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk, or optical disk and other media that can store program codes.
- the program may be stored in a computer-readable memory, and the memory may include: a flash disk , ROM, RAM, magnetic disk or optical disk, etc.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
一种游戏控制方法,该方法包括:通过接收针对游戏广告的触发指令,游戏广告为目标应用的应用界面中显示的广告,根据触发指令跳转到游戏大厅,并通过游戏大厅运行游戏广告对应的目标游戏,获取目标游戏的游戏信息,在游戏信息满足预设条件时,暂缓运行目标应用。通过该方法,可在电子设备运行小游戏的过程中,暂缓运行目标应用,提高小游戏的运行速率。
Description
本申请涉及电子技术领域,具体涉及一种游戏控制方法及相关产品。
随着电子设备(如:手机、平板电脑等)的大量普及应用,电子设备能够支持的应用越来越多,功能越来越强大,电子设备向着多样化、个性化的方向发展,成为用户生活中不可缺少的电子用品。
电子设备中的小程序或者小游戏是一种不需要下载安装即可使用的应用,例如,通过电子设备安装的游戏大厅,用户可直接点击小游戏,进入小游戏的界面,还可通过其他应用的应用界面中的游戏广告进入游戏大厅,并开启小游戏,但在运行小游戏的过程中,小游戏的运行速率若太慢,会影响用户的游戏体验,因此,如何提高小游戏运行速率的问题亟待解决。
发明内容
本申请实施例提供了一种游戏控制方法及相关产品,能够在电子设备运行小游戏的过程中,提高小游戏的运行速率。
第一方面,本申请实施例提供一种游戏控制方法,所述方法包括:
接收针对游戏广告的触发指令,所述游戏广告为目标应用的应用界面中显示的广告;
根据所述触发指令跳转到游戏大厅,并通过所述游戏大厅运行所述游戏广告对应的目标游戏;
获取目标游戏的游戏信息,在所述游戏信息满足预设条件时,暂缓运行所述目标应用。
第二方面,本申请实施例提供了一种游戏控制装置,所述游戏控制装置包括:
接收单元,用于接收针对游戏广告的触发指令,所述游戏广告为目标应用的应用界面中显示的广告;
处理单元,用于根据所述触发指令跳转到游戏大厅,并通过所述游戏大厅运行所述游戏广告对应的目标游戏;
所述处理单元,还用于获取目标游戏的游戏信息,在所述游戏信息满足预设条件时,暂缓运行所述目标应用。
第三方面,本申请实施例提供一种电子设备,包括处理器、存储器、通信接口,以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述 处理器执行,上述程序包括用于执行本申请实施例第一方面中的步骤的指令。
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。
第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
可以看出,本申请实施例中所描述的游戏控制方法及相关产品,通过接收针对游戏广告的触发指令,游戏广告为目标应用的应用界面中显示的广告,根据触发指令跳转到游戏大厅,并通过游戏大厅运行游戏广告对应的目标游戏,获取目标游戏的游戏信息,在游戏信息满足预设条件时,暂缓运行目标应用,如此,可在电子设备运行小游戏的过程中,暂缓运行目标应用,提高小游戏的运行速率。
下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1A是本申请实施例提供的一种电子设备的结构示意图;
图1B是本申请实施例公开的一种游戏控制方法的流程示意图;
图2是本申请实施例公开的另一种游戏控制方法的流程示意图;
图3是本申请实施例公开的另一种游戏控制方法的流程示意图;
图4是本申请实施例公开的另一种电子设备的结构示意图;
图5A是本申请实施例公开的一种游戏控制装置的结构示意图;
图5B是本申请实施例提供的图5A所示的一种游戏控制装置的变型结构;
图5C是本申请实施例提供的图5A所示的另一种游戏控制装置的变型结构;
图5D是本申请实施例提供的图5A所示的另一种游戏控制装置的变型结构。
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在 没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、***、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本申请实施例所涉及到的电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(user equipment,UE),移动台(mobile station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为电子设备。
下面对本申请实施例进行详细介绍。
请参阅图1A,图1A是本申请实施例公开的一种电子设备的结构示意图,电子设备100可以包括控制电路,该控制电路可以包括存储和处理电路110。该存储和处理电路110可以存储器,例如硬盘驱动存储器,非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等),易失性存储器(例如静态或动态随机存取存储器等)等,本申请实施例不作限制。存储和处理电路110中的处理电路可以用于控制电子设备100的运转。该处理电路可以基于一个或多个微处理器,微控制器,数字主从耳机切换控制器,基带处理器,功率管理单元,音频编解码器芯片,专用集成电路,显示驱动器集成电路等来实现。
存储和处理电路110可用于运行电子设备100中的软件,例如互联网浏览应用程序,互联网协议语音(voice over internet protocol,VOIP)电话呼叫应用程序,电子邮件应用程序,媒体播放应用程序,操作***功能等。这些软件可以用于执行一些控制操作,例如,基于照相机的图像采集,基于环境光传感器的环境光测量,基于接近传感器的接近传感器测量,基于诸如发光二极管的状态指示灯等状态指示器实现的信息显示功能,基于触摸传感器的触摸事件检测,与在多个(例如分层的)显示器上显示信息相关联的功能,与执行无线通信功能相关联的操作,与收集和产生音频信号相关联的操作,与收集和处理按钮按压事件数据相关联的控制操作,以及电子设备100中的其它功能等,本申请实施例不作限制。
电子设备100还可以包括输入-输出电路150。输入-输出电路150可用于使电子设备100实现数据的输入和输出,即允许电子设备100从外部设备接收数据和也允许电子设备100将数据从电子设备100输出至外部设备。输入-输出电路150可以进一步包括传感器170。 传感器170可以包括环境光传感器,基于光和电容的接近传感器,触摸传感器(例如,基于光触摸传感器和/或电容式触摸传感器,其中,触摸传感器可以是触控显示屏的一部分,也可以作为一个触摸传感器结构独立使用),加速度传感器,重力传感器,和其它传感器等。
输入-输出电路150还可以包括一个或多个显示器,例如显示器130。显示器130可以包括液晶显示器,有机发光二极管显示器,电子墨水显示器,等离子显示器,使用其它显示技术的显示器中一种或者几种的组合。显示器130可以包括触摸传感器阵列(即,显示器130可以是触控显示屏)。触摸传感器可以是由透明的触摸传感器电极(例如氧化铟锡(ITO)电极)阵列形成的电容式触摸传感器,或者可以是使用其它触摸技术形成的触摸传感器,例如音波触控,压敏触摸,电阻触摸,光学触摸等,本申请实施例不作限制。
音频组件140可以用于为电子设备100提供音频输入和输出功能。电子设备100中的音频组件140可以包括扬声器,麦克风,蜂鸣器,音调发生器以及其它用于产生和检测声音的组件。
通信电路120可以用于为电子设备100提供与外部设备通信的能力。通信电路120可以包括模拟和数字输入-输出接口电路,和基于射频信号和/或光信号的无线通信电路。通信电路120中的无线通信电路可以包括射频收发器电路、功率放大器电路、低噪声放大器、开关、滤波器和天线。举例来说,通信电路120中的无线通信电路可以包括用于通过发射和接收近场耦合电磁信号来支持近场通信(near field communication,NFC)的电路。例如,通信电路120可以包括近场通信天线和近场通信收发器。通信电路120还可以包括蜂窝电话收发器和天线,无线局域网收发器电路和天线等。
电子设备100还可以进一步包括电池,电力管理电路和其它输入-输出单元160。输入-输出单元160可以包括按钮,操纵杆,点击轮,滚动轮,触摸板,小键盘,键盘,照相机,发光二极管和其它状态指示器等。
用户可以通过输入-输出电路150输入命令来控制电子设备100的操作,并且可以使用输入-输出电路150的输出数据以实现接收来自电子设备100的状态信息和其它输出。
请参阅图1B,图1B是本申请实施例提供的一种游戏控制方法的流程示意图,本实施例中所描述的游戏控制方法,应用于如图1A的电子设备,该游戏控制方法包括:
101、接收针对游戏广告的触发指令,所述游戏广告为目标应用的应用界面中显示的广告。
其中,上述目标应用可包括电子设备中安装的应用或者***出厂时自带的***应用,例如,聊天应用、支付应用、游戏应用、阅读应用、视频播放应用、音乐播放应用等等,应用的功能本申请实施例不作限制。
本申请实施例中,电子设备可在目标应用的应用界面显示游戏广告,例如,上述游戏广告可包括以下至少一种:闪屏广告、Banner(横幅)广告、插屏广告、原生广告、激励式广告等等,其中,闪屏广告是在应用开启时加载,展示完毕后自动关闭并进入应用主页 面的一种广告形式,Banner广告是由图、文组成控件,显示在应用界面的顶部、中部或底部,但是横向贯穿整个或者大半个应用页面的广告,插屏广告是在应用开启、暂停、退出时,以半屏或全屏的形式弹出,展示时机巧妙避开用户对应用的正常体验的广告,原生广告是结合平台特征、用户和视觉体验、内容环境之后刻意进行修饰的广告,其特点是自然和不易察觉,激励式广告是指通过激励受众的方式来获得持久回报的互动广告,例如,用户在使用目标应用的过程中,在看到应用界面中显示的游戏广告后,若对游戏广告对应的目标游戏产生兴趣,可点击游戏广告中的控键或窗口,从而进入游戏广告对应的目标游戏。
102、根据所述触发指令跳转到游戏大厅,并通过所述游戏大厅运行所述游戏广告对应的目标游戏。
其中,上述游戏大厅是指集成多个小游戏的游戏平台应用,电子设备可通过游戏大厅进入目标游戏,上述目标游戏可包括通过目标应用的中的链接、游戏广告进入游戏大厅、并通过游戏大厅开启的小游戏,小游戏无需进行下载安装对应的游戏应用,可直接开启游戏,例如,电子设备在接收到用户点击浏览器应用中的游戏广告的触发指令后,可跳转至游戏大厅,若电子设备未安装游戏大厅,可弹出安装游戏大厅的提示页面,提示用户安装游戏大厅的应用,然后下载安装游戏大厅,在电子设备进入游戏大厅后,可通过游戏大厅运行所述游戏广告对应的目标游戏,本申请实施例中,用户可通过触发目标应用的游戏广告,快速进入小游戏,使游戏开启的方式更加便捷,提高了用户的游戏体验。
可选地,上述步骤102中,通过所述游戏大厅运行所述游戏广告对应的目标游戏,具体可包括以下步骤:
21、通过所述游戏大厅获取所述目标游戏的目标游戏资源;
22、根据所述目标游戏资源运行所述目标游戏。
本申请实施例中,上述目标游戏资源可包括用于运行目标游戏的程序,还可包括辅助运行目标游戏运行的设置信息,例如权限设置信息、游戏道具、游戏角色信息等等。
可选地,本申请实施例中,通过所述游戏大厅运行所述游戏广告对应的目标游戏之前,还可包括以下步骤:
A1、获取所述目标游戏的版本号;
A2、在所述版本号与最新版本号不匹配的情况下,将所述目标游戏对应的游戏资源进行更新,得到所述目标游戏资源。
本申请实施例中,为保证用户开启的目标游戏为最新版本,可在获取到目标游戏的目标游戏资源之前,获取目标游戏的版本号以及目标游戏的最新版本号,然后将目标游戏的版本号与最新版本号进行匹配,若匹配成功,则表明目标游戏为最新版本,无需更新,若匹配失败,可将该目标游戏的游戏版本更新至最新版本,得到最新版本的目标游戏资源。
可选地,本申请实施例中,所述将所述目标游戏对应的游戏资源进行更新之前,还可包括以下步骤:
B1确定所述电子设备当前网络状态;
B2若所述当前网络状态为无线网络,执行所述将所述目标游戏对应的游戏资源进行更新的操作;
B3若所述当前网络状态为数据网络,确定用户当前网络账户的剩余流量;
B4若所述剩余流量大于或等于预设数值,执行所述将所述目标游戏对应的游戏资源进行更新的操作。
其中,在对目标游戏对应的游戏资源进行更新之前,还可确定电子设备当前的网络属于数据网络还是无线网络,若当前网络为数据网络,可进一步确定用户当前网络账户的剩余流量,若剩余流量小于预设数值,则不对目标游戏对应的游戏资源进行更新,若电子设备当前的网络属于无线网络,或者,用户当前网络账户的剩余流量大于或等于预设数值,执行所述将所述目标游戏对应的游戏资源进行更新的操作。
可选地,本申请实施例中,还可包括以下步骤:
C1、将所述目标游戏资源拆分成多个数据包,所述多个数据包包括第一数据包,所述第一数据包包含所述多个数据包中除所述第一数据包以外其他数据包的配置信息;
上述步骤22中,根据所述目标游戏资源运行所述目标游戏,具体可包括以下步骤:
C2、加载所述第一数据包;
C3、根据所述配置信息加载所述多个数据包中除所述第一数据包以外的其他数据包;
C4、依次根据所述多个数据包运行所述目标游戏。
本申请实施例中,为提高目标游戏加载和运行的速率,可将目标游戏资源拆分成多个数据包,然后按照预设顺序加载多个数据包,在加载第一数据包后,可根据第一数据包运行目标游戏,并根据第一数据包中携带的其他数据包的配置信息加载其他数据包,从而,无需在加载完所有目标游戏资源的内容后,再运行目标游戏,提高了目标游戏的运行速率。
103、获取目标游戏的游戏信息,在所述游戏信息满足预设条件时,暂缓运行所述目标应用。
其中,上述游戏信息可包括以下至少一种:目标游戏的运行状态信息、目标游戏的用户操作信息、电子设备接收到的其他玩家的对战游戏信息等等,本申请实施例中,在游戏信息满足预设条件时,可在目标游戏进入游戏运行状态时,暂缓运行所述目标应用,其中,游戏运行状态时指进入游戏场景、游戏关卡、游戏任务运行的状态,具体地,可在后台运行目标应用,减少分配至目标应用的网络资源、内存资源、CPU资源等,在目标游戏进入等待状态时,可恢复目标应用在后台的运行,例如,在目标游戏完成某个关卡的运行后,或者目标游戏进入暂停,又或者,目标游戏完成某个游戏任务的运行后,可恢复目标应用的运行,如此,若目标应用接收到消息,则用户可及时查看该消息。
可选地,所述游戏信息包括所述目标游戏的目标运行状态信息,本申请实施例中,还可包括以下步骤:
31、根据预设的运行状态信息与游戏运行速率之间的对应关系,确定所述目标运行状态信息对应的目标游戏运行速率,所述运行状态信息包括以下至少一种:网络速率、游戏内存、CPU占用率;
32、若所述目标游戏运行速率小于第一预设阈值,确定所述游戏信息满足所述预设条件。
本申请实施例中,可预先设定运行状态信息与游戏运行速率之间的对应关系,例如网络速率与游戏运行速率之间的对应关系,游戏内存与游戏运行速率之间的对应关系,或CPU占用率与游戏运行速率之间的对应关系,在获取目标游戏的目标运行状态信息之后,可根据上述对应关系确定目标运行状态信息对应的目标游戏运行速率,然后判断目标运行状态信息是否小于第一预设阈值,若小于,表明目标游戏运行速率较慢,可确定游戏信息满足预设条件。
可选地,本申请实施例中,还可确定电子设备的电池温度或壳体内部温度,在电池温度或壳体内部温度大于预设温度阈值时,可减缓运行目标应用。
可选地,所述游戏信息包括针对所述目标游戏的用户操作信息,本申请实施例中,还可包括以下步骤:
33、根据预设时间段内的用户操作信息确定所述目标游戏是否卡顿;
34、若所述目标游戏卡顿,确定所述游戏信息满足所述预设条件。
其中,上述用户操作信息可包括用户操作的指令类型、用户的操作频率、用户操作时长等等,本申请实施例中,用户在操作目标游戏的过程中,针对不同类型的操作指令,例如,射击游戏中移动指令、射击指令道具选择指令等等,又例如场景游戏中的消息发送指令、移动指令、技能发动指令等等,可设定不当用户的操作频率不属于预设范围,或者操作时长超过预设时长阈值,确定目标游戏发生卡顿,若目标游戏发生卡顿,确定游戏信息满足所述预设条件,如此,可在目标游戏发生卡顿时,暂缓运行目标应用,从而提高目标游戏的运行速率。
可选地,若所述目标游戏为对战游戏,所述游戏信息包括所述电子设备接收到的其他玩家的对战游戏信息,本申请实施例中,还可包括以下步骤:
35、获取所述电子设备解析所述对战游戏信息的数据解析速率;
36、若所述数据解析速率小于第二预设阈值,确定所述游戏信息满足所述预设条件。
其中,上述对战游戏信息包括其他玩家的游戏运行状态信息、游戏角色信息、游戏操作信息等等,本申请实施例中,在目标游戏为对战游戏时,电子设备会获取其他玩家的对战游戏信息,并解析该对战游戏信息,从而用户可根据其他游戏玩家的游戏状态确定下一步游戏操作,因此,可获取电子设备解析所述对战游戏信息的数据解析速率,若数据解析速率小于第二预设阈值,表明数据解析速率较慢,影响用户游戏的速率,可确定游戏信息满足所述预设条件。
可选地,本申请实施例中,还可包括以下步骤:
D1、获取所述目标应用的应用内存占用资源;
D2、若所述应用内存占用资源大于第三预设阈值,停止运行所述目标应用。
可选地,本申请实施例中,还可获取目标应用的应用内存占用资源,若应用内存占用资源大于第三预设阈值,维持目标应用在后台运行,会占用目标游戏的内存资源,此时,可停止运行目标应用,从而可提高目标游戏的运行速率,防止目标游戏卡顿或者掉线。
可以看出,本申请实施例中所描述的游戏控制方法,通过接收针对游戏广告的触发指令,游戏广告为目标应用的应用界面中显示的广告,根据触发指令跳转到游戏大厅,并通过游戏大厅运行游戏广告对应的目标游戏,获取目标游戏的游戏信息,在游戏信息满足预设条件时,暂缓运行目标应用,如此,可在电子设备运行小游戏的过程中,暂缓运行目标应用,提高小游戏的运行速率,防止目标游戏卡顿或者掉线。
请参阅图2,图2是本申请实施例提供的另一种游戏控制方法的流程示意图,本实施例中所描述的游戏控制方法,应用于如图1A的电子设备,该方法可包括以下步骤:
201、接收针对游戏广告的触发指令,所述游戏广告为目标应用的应用界面中显示的广告。
202、根据所述触发指令跳转到游戏大厅,并通过所述游戏大厅获取所述目标游戏的目标游戏资源。
203、根据所述目标游戏资源运行所述目标游戏。
204、获取目标游戏的游戏信息,在所述游戏信息满足预设条件时,暂缓运行所述目标应用。
其中,上述步骤201-204的具体实现过程可参照图1B所示的方法中相应的描述,在此不再赘述。
可以看出,本申请实施例中所描述的游戏控制方法,通过接收针对游戏广告的触发指令,游戏广告为目标应用的应用界面中显示的广告,根据触发指令跳转到游戏大厅,通过游戏大厅获取目标游戏的目标游戏资源,根据目标游戏资源运行目标游戏,获取目标游戏的游戏信息,在游戏信息满足预设条件时,暂缓运行目标应用,如此,可在电子设备运行小游戏的过程中,暂缓运行目标应用,提高小游戏的运行速率,防止目标游戏卡顿或者掉线。
与上述一致地,请参阅图3,为本申请实施例提供的另一种游戏控制方法的实施例流程示意图,本实施例中所描述的游戏控制方法,应用于如图1A的电子设备,本方法可包括以下步骤:
301、接收针对游戏广告的触发指令,所述游戏广告为目标应用的应用界面中显示的广 告。
302、根据所述触发指令跳转到游戏大厅,并通过所述游戏大厅获取所述目标游戏的目标游戏资源。
303、根据所述目标游戏资源运行所述目标游戏。
304、获取目标游戏的目标运行状态信息。
305、根据预设的运行状态信息与游戏运行速率之间的对应关系,确定所述目标运行状态信息对应的目标游戏运行速率,所述运行状态信息包括以下至少一种:网络速率、游戏内存、CPU占用率。
306、若所述目标游戏运行速率小于第一预设阈值,确定所述游戏信息满足所述预设条件,暂缓运行所述目标应用。
其中,上述步骤301-306的具体实现过程可参照图1B所示的方法中相应的描述,在此不再赘述。
本申请实施例中所描述的游戏控制方法,通过接收针对游戏广告的触发指令,游戏广告为目标应用的应用界面中显示的广告,根据触发指令跳转到游戏大厅,并通过游戏大厅获取目标游戏的目标游戏资源,根据预设的运行状态信息与游戏运行速率之间的对应关系,确定目标运行状态信息对应的目标游戏运行速率,运行状态信息包括以下至少一种:网络速率、游戏内存、CPU占用率,若目标游戏运行速率小于第一预设阈值,确定游戏信息满足所述预设条件,暂缓运行目标应用,如此,可在电子设备运行小游戏的过程中,暂缓运行目标应用,提高小游戏的运行速率,防止目标游戏卡顿或者掉线。
以下是实施上述游戏控制方法的装置,具体如下:
与上述一致地,请参阅图4,图4是本申请实施例提供的一种电子设备,包括:处理器和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包括用于执行以下步骤的指令:
接收针对游戏广告的触发指令,所述游戏广告为目标应用的应用界面中显示的广告;
根据所述触发指令跳转到游戏大厅,并通过所述游戏大厅运行所述游戏广告对应的目标游戏;
获取目标游戏的游戏信息,在所述游戏信息满足预设条件时,暂缓运行所述目标应用。
在一个可能的示例中,所述游戏信息包括所述目标游戏的目标运行状态信息,所述程序还包括用于执行以下步骤的指令:
根据预设的运行状态信息与游戏运行速率之间的对应关系,确定所述目标运行状态信息对应的目标游戏运行速率,所述运行状态信息包括以下至少一种:网络速率、游戏内存、CPU占用率;
若所述目标游戏运行速率小于第一预设阈值,确定所述游戏信息满足所述预设条件。
在一个可能的示例中,所述游戏信息包括针对所述目标游戏的用户操作信息,所述程序还包括用于执行以下步骤的指令:
根据预设时间段内的用户操作信息确定所述目标游戏是否卡顿;
若所述目标游戏卡顿,确定所述游戏信息满足所述预设条件。
在一个可能的示例中,若所述目标游戏为对战游戏,所述游戏信息包括所述电子设备接收到的其他玩家的对战游戏信息,所述程序还包括用于执行以下步骤的指令:
获取所述电子设备解析所述对战游戏信息的数据解析速率;
若所述数据解析速率小于第二预设阈值,确定所述游戏信息满足所述预设条件。
在一个可能的示例中,在所述通过所述游戏大厅运行所述游戏广告对应的目标游戏方面,所述程序包括用于执行以下步骤的指令:
通过所述游戏大厅获取所述目标游戏的目标游戏资源;
根据所述目标游戏资源运行所述目标游戏。
在一个可能的示例中,所述通过所述游戏大厅运行所述游戏广告对应的目标游戏之前,所述程序还包括用于执行以下步骤的指令:
获取所述目标游戏的版本号;
在所述版本号与最新版本号不匹配的情况下,将所述目标游戏对应的游戏资源进行更新,得到所述目标游戏资源。
在一个可能的示例中,所述将所述目标游戏对应的游戏资源进行更新之前,所述程序还包括用于执行以下步骤的指令:
确定所述电子设备当前网络状态;
若所述当前网络状态为无线网络,执行所述将所述目标游戏对应的游戏资源进行更新的操作;
若所述当前网络状态为数据网络,确定用户当前网络账户的剩余流量;
若所述剩余流量大于或等于预设数值,执行所述将所述目标游戏对应的游戏资源进行更新的操作。
在一个可能的示例中,所述程序还包括用于执行以下步骤的指令:
将所述目标游戏资源拆分成多个数据包,所述多个数据包包括第一数据包,所述第一数据包包含所述多个数据包中除所述第一数据包以外其他数据包的配置信息;
所述根据所述目标游戏资源运行所述目标游戏,包括:
加载所述第一数据包;
根据所述配置信息加载所述多个数据包中除所述第一数据包以外的其他数据包;
依次根据所述多个数据包运行所述目标游戏。
在一个可能的示例中,所述程序还包括用于执行以下步骤的指令:
获取所述目标应用的应用内存占用资源;
若所述应用内存占用资源大于第三预设阈值,停止运行所述目标应用。
请参阅图5A,图5A是本实施例提供的一种游戏控制装置的结构示意图。该游戏控制装置应用于如图1A所示的电子设备,所述游戏控制装置包括接收单元501、处理单元502和获取单元503,其中,
所述接收单元501,用于接收针对游戏广告的触发指令,所述游戏广告为目标应用的应用界面中显示的广告;
所述处理单元502,用于根据所述触发指令跳转到游戏大厅,并通过所述游戏大厅运行所述游戏广告对应的目标游戏;
所述获取单元503,用于获取目标游戏的游戏信息;
所述处理单元502,还用于在所述游戏信息满足预设条件时,暂缓运行所述目标应用。
可选地,所述游戏信息包括所述目标游戏的目标运行状态信息,如图5B,图5B为图5A所示的游戏运行装置的变型结构,其与图5A相比较,还可以包括:第一确定单元504,所述第一确定单元504具体用于:
根据预设的运行状态信息与游戏运行速率之间的对应关系,确定所述目标运行状态信息对应的目标游戏运行速率,所述运行状态信息包括以下至少一种:网络速率、游戏内存、CPU占用率;
若所述目标游戏运行速率小于第一预设阈值,确定所述游戏信息满足所述预设条件。
可选地,所述游戏信息包括针对所述目标游戏的用户操作信息,如图5C,图5C为图5A所示的游戏运行装置的变型结构,其与图5A相比较,还可以包括:第二确定单元505,所述第二确定单元505具体用于:
根据预设时间段内的用户操作信息确定所述目标游戏是否卡顿;
若所述目标游戏卡顿,确定所述游戏信息满足所述预设条件。
可选地,若所述目标游戏为对战游戏,所述游戏信息包括所述电子设备接收到的其他玩家的对战游戏信息,如图5D,图5D为图5A所示的游戏运行装置的变型结构,其与图5A相比较,还可以包括:第三确定单元506,所述第三确定单元506具体用于:
获取所述电子设备解析所述对战游戏信息的数据解析速率;
若所述数据解析速率小于第二预设阈值,确定所述游戏信息满足所述预设条件。
可选地,在所述通过所述游戏大厅运行所述游戏广告对应的目标游戏方面,所述处理单元502具体用于:
通过所述游戏大厅获取所述目标游戏的目标游戏资源;
根据所述目标游戏资源运行所述目标游戏。
可选地,所述通过所述游戏大厅运行所述游戏广告对应的目标游戏之前,所述处理单元502还用于:
获取所述目标游戏的版本号;
在所述版本号与最新版本号不匹配的情况下,将所述目标游戏对应的游戏资源进行更新,得到所述目标游戏资源。
可选地,所述将所述目标游戏对应的游戏资源进行更新之前,所述处理单元502还用于:
确定所述电子设备当前网络状态;
若所述当前网络状态为无线网络,执行所述将所述目标游戏对应的游戏资源进行更新的操作;
若所述当前网络状态为数据网络,确定用户当前网络账户的剩余流量;
若所述剩余流量大于或等于预设数值,执行所述将所述目标游戏对应的游戏资源进行更新的操作。
可选地,所述处理单元502还用于:
将所述目标游戏资源拆分成多个数据包,所述多个数据包包括第一数据包,所述第一数据包包含所述多个数据包中除所述第一数据包以外其他数据包的配置信息;
在所述根据所述目标游戏资源运行所述目标游戏方面,所述处理单元502具体用于:
加载所述第一数据包;
根据所述配置信息加载所述多个数据包中除所述第一数据包以外的其他数据包;
依次根据所述多个数据包运行所述目标游戏。
可选地,所述获取单元503,还用于获取所述目标应用的应用内存占用资源;
若所述应用内存占用资源大于第三预设阈值,所述处理单元502还用于停止运行所述目标应用。
可以看出,本申请实施例中所描述的游戏控制装置,通过接收针对游戏广告的触发指令,游戏广告为目标应用的应用界面中显示的广告,根据触发指令跳转到游戏大厅,并通过游戏大厅运行游戏广告对应的目标游戏,获取目标游戏的游戏信息,在游戏信息满足预设条件时,暂缓运行目标应用,如此,可在电子设备运行小游戏的过程中,暂缓运行目标应用,提高小游戏的运行速率,防止目标游戏卡顿或者掉线。
可以理解的是,本实施例的游戏控制装置的各程序模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种游戏控制方法的部分或全部步骤。
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种游戏控制方法的部分或全部步骤。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模块的形式实现。
所述集成的单元如果以软件程序模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、ROM、RAM、磁盘或光盘等。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。
Claims (20)
- 一种游戏控制方法,其特征在于,所述方法包括:接收针对游戏广告的触发指令,所述游戏广告为目标应用的应用界面中显示的广告;根据所述触发指令跳转到游戏大厅,并通过所述游戏大厅运行所述游戏广告对应的目标游戏;获取目标游戏的游戏信息,在所述游戏信息满足预设条件时,暂缓运行所述目标应用。
- 根据权利要求1所述的方法,其特征在于,所述游戏信息包括所述目标游戏的目标运行状态信息,所述方法还包括:根据预设的运行状态信息与游戏运行速率之间的对应关系,确定所述目标运行状态信息对应的目标游戏运行速率,所述运行状态信息包括以下至少一种:网络速率、游戏内存、CPU占用率;若所述目标游戏运行速率小于第一预设阈值,确定所述游戏信息满足所述预设条件。
- 根据权利要求1所述的方法,其特征在于,所述游戏信息包括针对所述目标游戏的用户操作信息,所述方法还包括:根据预设时间段内的用户操作信息确定所述目标游戏是否卡顿;若所述目标游戏卡顿,确定所述游戏信息满足所述预设条件。
- 根据权利要求1所述的方法,其特征在于,若所述目标游戏为对战游戏,所述游戏信息包括所述电子设备接收到的其他玩家的对战游戏信息,所述方法还包括:获取所述电子设备解析所述对战游戏信息的数据解析速率;若所述数据解析速率小于第二预设阈值,确定所述游戏信息满足所述预设条件。
- 根据权利要求1-4任一项所述的方法,其特征在于,所述通过所述游戏大厅运行所述游戏广告对应的目标游戏,包括:通过所述游戏大厅获取所述目标游戏的目标游戏资源;根据所述目标游戏资源运行所述目标游戏。
- 根据权利要求5所述的方法,其特征在于,所述通过所述游戏大厅运行所述游戏广告对应的目标游戏之前,所述方法还包括:获取所述目标游戏的版本号;在所述版本号与最新版本号不匹配的情况下,将所述目标游戏对应的游戏资源进行更新,得到所述目标游戏资源。
- 根据权利要求6所述的方法,其特征在于,所述将所述目标游戏对应的游戏资源进行更新之前,所述方法还包括:确定所述电子设备当前网络状态;若所述当前网络状态为无线网络,执行所述将所述目标游戏对应的游戏资源进行更新的操作;若所述当前网络状态为数据网络,确定用户当前网络账户的剩余流量;若所述剩余流量大于或等于预设数值,执行所述将所述目标游戏对应的游戏资源进行更新的操作。
- 根据权利要求5-7任一项所述的方法,其特征在于,所述方法还包括:将所述目标游戏资源拆分成多个数据包,所述多个数据包包括第一数据包,所述第一数据包包含所述多个数据包中除所述第一数据包以外其他数据包的配置信息;所述根据所述目标游戏资源运行所述目标游戏,包括:加载所述第一数据包;根据所述配置信息加载所述多个数据包中除所述第一数据包以外的其他数据包;依次根据所述多个数据包运行所述目标游戏。
- 根据权利要求1-8任一项所述的方法,其特征在于,所述方法还包括:获取所述目标应用的应用内存占用资源;若所述应用内存占用资源大于第三预设阈值,停止运行所述目标应用。
- 一种游戏控制装置,其特征在于,所述游戏控制装置包括:接收单元,用于接收针对游戏广告的触发指令,所述游戏广告为目标应用的应用界面中显示的广告;处理单元,用于根据所述触发指令跳转到游戏大厅,并通过所述游戏大厅运行所述游戏广告对应的目标游戏;获取单元,用于获取目标游戏的游戏信息;所述处理单元,还用于在所述游戏信息满足预设条件时,暂缓运行所述目标应用。
- 根据权利要求10所述的装置,其特征在于,所述游戏信息包括所述目标游戏的目标运行状态信息,所述装置还包括第一确定单元,所述第一确定单元具体用于:根据预设的运行状态信息与游戏运行速率之间的对应关系,确定所述目标运行状态信息对应的目标游戏运行速率,所述运行状态信息包括以下至少一种:网络速率、游戏内存、CPU占用率;若所述目标游戏运行速率小于第一预设阈值,确定所述游戏信息满足所述预设条件。
- 根据权利要求10所述的装置,其特征在于,所述游戏信息包括针对所述目标游戏的用户操作信息,所述装置还包括第二确定单元,所述第二确定单元具体用于:根据预设时间段内的用户操作信息确定所述目标游戏是否卡顿;若所述目标游戏卡顿,确定所述游戏信息满足所述预设条件。
- 根据权利要求10-12任一项所述的装置,其特征在于,若所述目标游戏为对战游戏,所述游戏信息包括所述电子设备接收到的其他玩家的对战游戏信息,所述装置还包括第二确定单元,所述第二确定单元具体用于:获取所述电子设备解析所述对战游戏信息的数据解析速率;若所述数据解析速率小于第二预设阈值,确定所述游戏信息满足所述预设条件。
- 根据权利要求10-13任一项所述的装置,其特征在于,在所述通过所述游戏大厅运行所述游戏广告对应的目标游戏方面,所述处理单元具体用于:通过所述游戏大厅获取所述目标游戏的目标游戏资源;根据所述目标游戏资源运行所述目标游戏。
- 根据权利要求14所述的装置,其特征在于,所述通过所述游戏大厅运行所述游戏广告对应的目标游戏之前,所述处理单元还用于:获取所述目标游戏的版本号;在所述版本号与最新版本号不匹配的情况下,将所述目标游戏对应的游戏资源进行更新,得到所述目标游戏资源。
- 根据权利要求15所述的装置,其特征在于,所述将所述目标游戏对应的游戏资源进行更新之前,所述处理单元还用于:确定所述电子设备当前网络状态;若所述当前网络状态为无线网络,执行所述将所述目标游戏对应的游戏资源进行更新的操作;若所述当前网络状态为数据网络,确定用户当前网络账户的剩余流量;若所述剩余流量大于或等于预设数值,执行所述将所述目标游戏对应的游戏资源进行更新的操作。
- 根据权利要求14-16任一项所述的装置,其特征在于,所述处理单元还用于:将所述目标游戏资源拆分成多个数据包,所述多个数据包包括第一数据包,所述第一数据包包含所述多个数据包中除所述第一数据包以外其他数据包的配置信息;在所述根据所述目标游戏资源运行所述目标游戏方面,所述处理单元具体用于:加载所述第一数据包;根据所述配置信息加载所述多个数据包中除所述第一数据包以外的其他数据包;依次根据所述多个数据包运行所述目标游戏。
- 根据权利要求10-17所述的装置,其特征在于,所述获取单元,还用于获取所述目标应用的应用内存占用资源;若所述应用内存占用资源大于第三预设阈值,所述处理单元还用于停止运行所述目标应用。
- 一种电子设备,其特征在于,包括处理器、存储器、通信接口,以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置由所述处理器执行,所述程序包括用于执行如权利要求1-9任一项所述的方法中的步骤的指令。
- 一种计算机可读存储介质,其特征在于,存储用于电子数据交换的计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201880097903.2A CN112739432B (zh) | 2018-10-09 | 2018-10-09 | 游戏控制方法及相关产品 |
PCT/CN2018/109535 WO2020073204A1 (zh) | 2018-10-09 | 2018-10-09 | 游戏控制方法及相关产品 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/109535 WO2020073204A1 (zh) | 2018-10-09 | 2018-10-09 | 游戏控制方法及相关产品 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020073204A1 true WO2020073204A1 (zh) | 2020-04-16 |
Family
ID=70163766
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/109535 WO2020073204A1 (zh) | 2018-10-09 | 2018-10-09 | 游戏控制方法及相关产品 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112739432B (zh) |
WO (1) | WO2020073204A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113082705B (zh) * | 2021-05-08 | 2023-09-15 | 腾讯科技(上海)有限公司 | 游戏场景切换方法、装置、计算机设备及存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102968559A (zh) * | 2012-11-14 | 2013-03-13 | 北京奇虎科技有限公司 | 浏览器及其进行页游事件提醒的方法 |
US20140179272A1 (en) * | 2012-12-20 | 2014-06-26 | Cellco Partnership D/B/A Verizon Wireless | Automatic archiving of an application on a mobile device |
US20140223423A1 (en) * | 2013-02-05 | 2014-08-07 | Apple Inc. | Automatic Updating of Applications |
CN106021419A (zh) * | 2016-05-12 | 2016-10-12 | 腾讯科技(深圳)有限公司 | 一种网页运行方法及装置、终端 |
CN106127475A (zh) * | 2016-06-30 | 2016-11-16 | 北京奇虎科技有限公司 | 一种数据处理方法和装置 |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2006105660A1 (en) * | 2005-04-05 | 2006-10-12 | Google Inc. | Method and system supporting audited reporting of advertising impressions from video games |
US20070072676A1 (en) * | 2005-09-29 | 2007-03-29 | Shumeet Baluja | Using information from user-video game interactions to target advertisements, such as advertisements to be served in video games for example |
CN101193346A (zh) * | 2007-11-26 | 2008-06-04 | 北京中科奥科技有限公司 | 一种新的手机网络游戏平台***与方法 |
CN103327109A (zh) * | 2013-06-27 | 2013-09-25 | 腾讯科技(深圳)有限公司 | 一种游戏接入方法、游戏处理方法及服务器、终端、*** |
CN103577229B (zh) * | 2013-10-28 | 2016-11-23 | 北京奇虎科技有限公司 | 一种网页游戏的加载方法及网页浏览器 |
CN104867031A (zh) * | 2015-05-05 | 2015-08-26 | 深圳市鱼丸互动科技有限公司 | 一种应用推广方法及*** |
CN105404539A (zh) * | 2015-12-30 | 2016-03-16 | 网易(杭州)网络有限公司 | 客户端游戏向网页游戏移植的方法、网页游戏***及终端 |
CN108681436B (zh) * | 2018-03-13 | 2020-09-22 | Oppo广东移动通信有限公司 | 画质参数调节方法、装置、终端及存储介质 |
-
2018
- 2018-10-09 WO PCT/CN2018/109535 patent/WO2020073204A1/zh active Application Filing
- 2018-10-09 CN CN201880097903.2A patent/CN112739432B/zh active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102968559A (zh) * | 2012-11-14 | 2013-03-13 | 北京奇虎科技有限公司 | 浏览器及其进行页游事件提醒的方法 |
US20140179272A1 (en) * | 2012-12-20 | 2014-06-26 | Cellco Partnership D/B/A Verizon Wireless | Automatic archiving of an application on a mobile device |
US20140223423A1 (en) * | 2013-02-05 | 2014-08-07 | Apple Inc. | Automatic Updating of Applications |
CN106021419A (zh) * | 2016-05-12 | 2016-10-12 | 腾讯科技(深圳)有限公司 | 一种网页运行方法及装置、终端 |
CN106127475A (zh) * | 2016-06-30 | 2016-11-16 | 北京奇虎科技有限公司 | 一种数据处理方法和装置 |
Also Published As
Publication number | Publication date |
---|---|
CN112739432B (zh) | 2024-04-19 |
CN112739432A (zh) | 2021-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109388453B (zh) | 应用页面的展示方法、装置、存储介质和电子设备 | |
US20170289629A1 (en) | Interaction method and system based on recommended content | |
WO2020087230A1 (zh) | 游戏页面的显示方法及相关产品 | |
CN111294638B (zh) | 一种实现视频互动的方法、装置、终端和存储介质 | |
CN104383681B (zh) | 游戏进程控制方法、装置和移动终端 | |
US10506292B2 (en) | Video player calling method, apparatus, and storage medium | |
CN106375774B (zh) | 一种直播间显示内容控制的方法、装置和*** | |
CN106231433B (zh) | 一种播放网络视频的方法、装置和*** | |
CN107967153B (zh) | 一种应用程序的管理方法及移动终端 | |
CN107276984B (zh) | 游戏直播方法、装置及移动终端 | |
CN106406924B (zh) | 应用程序启动和退出画面的控制方法、装置及移动终端 | |
WO2019071626A1 (zh) | 一种刷新显示异常处理的方法及终端 | |
CN108958629B (zh) | 分屏退出方法、装置、存储介质和电子设备 | |
CN106919458B (zh) | Hook目标内核函数的方法及装置 | |
CN110362185B (zh) | 屏幕亮度调节的控制方法、终端及计算机可读存储介质 | |
WO2020052307A1 (zh) | 权限配置方法及相关产品 | |
US10713414B2 (en) | Web page display method, terminal, and storage medium | |
CN109692474A (zh) | 基于移动终端的游戏控制方法、移动终端及可读存储介质 | |
WO2020073204A1 (zh) | 游戏控制方法及相关产品 | |
CN110851106B (zh) | 一种音频输出方法及电子设备 | |
CN109902232B (zh) | 显示控制方法及终端 | |
CN110100424A (zh) | 一种流媒体数据的处理方法及移动终端 | |
CN111325597A (zh) | 一种应用程序推荐方法及电子设备 | |
CN108920086B (zh) | 分屏退出方法、装置、存储介质和电子设备 | |
CN108170362B (zh) | 一种应用运行状态控制方法及移动终端 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18936631 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 06/08/2021) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18936631 Country of ref document: EP Kind code of ref document: A1 |