Game multi-opening method and device, storage medium and electronic equipment

By using cache pool matching technology to determine the game status on Android devices, the multiple opening function of H5 games is solved, and the problem that users cannot open multiple games at the same time is improved.

CN119166238AInactive Publication Date: 2024-12-20广州三七极耀网络科技有限公司
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411267489.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-10
Publication Date
2024-12-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When running H5 games on Android devices, users cannot turn on multiple games at the same time, resulting in a reduced user gaming experience.

Method used

By determining the current game parameters when the user clicks to start the game, and making matching judgments in the pre-established cache pool. If the game is turned on, the small window will be used to convert other games. If it is not turned on, a new WebView will be created to display the current game in full screen, achieving multiple Open all games at the same time.

Benefits of technology

It improves the user's gaming experience, enables users to turn on multiple games at the same time, and enhances the game's multitasking capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119166238A_ABST
    Figure CN119166238A_ABST
Patent Text Reader

Abstract

The invention discloses a game multi-opening method and device, a storage medium and electronic equipment, when a user has opened at least one game, parameter matching is performed in a pre-established cache pool based on current game parameters of the game currently clicked by the user, and whether the game currently clicked by the user is the opened game or not is judged. And if yes, windowing other games opened by the user, and displaying the game currently clicked by the user in a full-screen manner based on the current game parameters. And if not, newly creating a WebView, and displaying the game currently clicked by the user in a full-screen manner based on the newly created WebView. According to the method, other games are displayed in a windowing mode through the windowing technology, the current game is displayed in a full-screen mode through WebView, and therefore a user can start a plurality of games at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and more particularly to a method, device, storage medium and electronic device for opening multiple games. Background Art

[0002] Generally speaking, when H5 (HTML5) games are running on Android devices, the H5 games opened by users often need to be displayed in full screen. This full-screen display format makes it impossible for users to open multiple games at the same time. Therefore, users cannot experience multiple characters at the same time, which reduces the user's gaming experience.

[0003] Therefore, how to enable users to open multiple games at the same time is an urgent problem to be solved. Based on this, this manual provides a method for opening multiple games. Summary of the invention

[0004] This specification provides a method, device, storage medium and electronic device for opening multiple games to partially solve the above-mentioned problems existing in the prior art.

[0005] This manual adopts the following technical solutions:

[0006] This specification provides a method for opening multiple games, the method comprising:

[0007] When the user has started at least one game, based on the user's operation of clicking to start the game, determining the current game parameters of the game currently clicked by the user;

[0008] Based on the current game parameters, matching parameters is performed in a pre-established cache pool to determine whether the game currently clicked by the user is an opened game;

[0009] If yes, other games opened by the user are displayed in small windows, and based on the current game parameters, the game currently clicked by the user is displayed in full screen;

[0010] If not, a new WebView is created, and based on the newly created WebView, the game currently clicked by the user is displayed in full screen.

[0011] Optionally, the method further comprises:

[0012] Determine the game that is running;

[0013] For each running game, determine the display mode of the game;

[0014] Based on the display mode of each running game, it is determined whether the user has started at least one game.

[0015] Optionally, based on the display mode of each running game, determining whether the user has started at least one game specifically includes:

[0016] Based on the display mode of each running game, determine whether there is a game displayed in full screen and / or in small window;

[0017] If so, the user has started at least one game.

[0018] Optionally, the method further comprises:

[0019] Determine whether there is a matching relationship between the stored WebView and the game parameters in the pre-established cache pool;

[0020] If present, the user has opened at least one game.

[0021] Optionally, the current game parameter includes an identifier of the game currently clicked by the user;

[0022] Based on the current game parameters, parameter matching is performed in a pre-established cache pool to determine whether the game currently clicked by the user is an opened game, specifically including:

[0023] Querying a pre-established cache pool to determine whether there is a WebView that matches an identifier of the game currently clicked by the user;

[0024] If so, determining that the game currently clicked by the user is an opened game;

[0025] If it does not exist, it is determined that the game currently clicked by the user is an unopened game.

[0026] Optionally, based on the current game parameters, the game currently clicked by the user is displayed in full screen, specifically including:

[0027] Based on the current game parameters, determine a WebView that matches the game currently clicked by the user;

[0028] Based on the WebView that matches the game currently clicked by the user, the game currently clicked by the user is displayed in full screen.

[0029] Optionally, the method further comprises:

[0030] Determine the matching relationship between the newly created WebView and the current game parameters;

[0031] The current game parameters and the matching relationship are cached in the cache pool.

[0032] Optionally, the game parameters include window parameters;

[0033] The method further comprises:

[0034] When the opened game is displayed in a small window, determining the window parameters of the opened game; and storing the window parameters in the cache pool;

[0035] Other games opened by the user are displayed in small windows, including:

[0036] According to the stored window parameters, other games opened by the user and displayed in full screen are displayed in small windows.

[0037] This specification provides a game multi-opening device, the device comprising:

[0038] A current game parameter determination module, used for determining the current game parameters of the game currently clicked by the user based on the operation of the user clicking to start the game when the user has already started at least one game;

[0039] A first judgment module is used to perform parameter matching in a pre-established cache pool based on the current game parameters to determine whether the game currently clicked by the user is an opened game;

[0040] A first application module is used for, if yes, displaying other games opened by the user in small windows, and displaying the game currently clicked by the user in full screen based on the current game parameters;

[0041] The second application module is used for, if not, creating a new WebView, and displaying the game currently clicked by the user in full screen based on the newly created WebView.

[0042] Optionally, the device further comprises:

[0043] The second judgment module is used to determine the games being run; for each game being run, determine the display mode of the game; and based on the display mode of each game being run, determine whether the user has started at least one game.

[0044] Optionally, the second judgment module is specifically used to judge whether there are games displayed in full screen and / or small window based on the display mode of each running game; if so, the user has opened at least one game.

[0045] Optionally, the second judgment module is specifically used to determine whether there is a matching relationship between the stored WebView and the game parameters in the pre-established cache pool; if so, the user has opened at least one game.

[0046] Optionally, the current game parameter includes an identifier of the game currently clicked by the user;

[0047] The first judgment module is specifically used to query whether there is a WebView matching the identifier of the game currently clicked by the user in a pre-established cache pool; if so, determine that the game currently clicked by the user is an opened game; if not, determine that the game currently clicked by the user is an unopened game.

[0048] Optionally, the first application module is specifically used to determine, based on the current game parameters, a WebView that matches the game currently clicked by the user; and based on the WebView that matches the game currently clicked by the user, display the game currently clicked by the user in full screen.

[0049] Optionally, the device comprises:

[0050] A matching relationship establishment module is used to determine the matching relationship between the newly created WebView and the current game parameters; and cache the current game parameters and the matching relationship in the cache pool.

[0051] Optionally, the game parameters include window parameters;

[0052] The device comprises:

[0053] A window parameter determination module, for determining the window parameters of the opened game when the opened game is displayed in a small window; and storing the window parameters in the cache pool;

[0054] The first application module is specifically used to display other full-screen games opened by the user in small windows according to the stored window parameters.

[0055] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned multi-game opening method is implemented.

[0056] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned multi-opening game method when executing the computer program.

[0057] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:

[0058] It can be seen from the multi-game opening method provided in this specification that when the user has opened at least one game, the current game parameters of the game currently clicked by the user are determined based on the operation of the user clicking to start the game. Based on the current game parameters, parameter matching is performed in a pre-established cache pool to determine whether the game currently clicked by the user is an opened game. If so, other games opened by the user are windowed, and based on the current game parameters, the game currently clicked by the user is displayed in full screen. If not, a new WebView is created, and the game currently clicked by the user is displayed in full screen based on the newly created WebView. This method determines whether the currently clicked game is an opened game by matching the cache pool. If so, other games are displayed in small windows through small windowing technology, and the current game parameters are used. If not, the current game is displayed in full screen using the newly created WebView, so that users can open multiple games at the same time, improving the user's gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:

[0060] Figure 1 A flowchart of a method for opening multiple games provided in this specification;

[0061] Figure 2 A flowchart of another method for opening multiple games provided in this manual;

[0062] Figure 3 This is a schematic diagram of multiple openings of games provided in this manual;

[0063] Figure 4 A schematic diagram of the prompt information provided in this manual;

[0064] Figure 5 A schematic diagram of the split-screen display mode provided for this manual;

[0065] Figure 6 A schematic diagram of a multi-game opening device provided in this specification;

[0066] Figure 7 A method corresponding to the Figure 1 Schematic diagram of the structure of an electronic device. DETAILED DESCRIPTION

[0067] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0068] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

[0069] When running H5 games on Android devices, the game interface is usually displayed in full screen, so that users cannot open multiple games at the same time. Then, users cannot experience multiple games at the same time, which reduces the user's gaming experience. Therefore, this specification provides a method for opening multiple games. The execution subject of this specification is a computing device that can execute the method for opening multiple games provided in this specification, including a server and a terminal, such as a smart phone. When the execution subject is a server, the server can communicate with the terminal to implement the method for opening multiple games provided in this specification. Of course, the execution subject can also be other electronic devices with computing functions. For the sake of convenience, this specification uses the terminal as the execution subject for description.

[0070] Figure 1 A flowchart of a method for opening multiple games provided in this specification includes the following steps:

[0071] S100: When the user has started at least one game, based on the user's operation of clicking to start the game, determine the current game parameters of the game currently clicked by the user.

[0072] Figure 2 A flowchart of another method for opening multiple games provided in this manual is shown in FIG. Figure 2 shown.

[0073] The user can start the game by clicking the game icon in the terminal, the game start button in the game auxiliary system deployed in the terminal, etc. The terminal can be any Android device, such as a smart phone, a tablet computer, etc. When the user clicks to start the game, the terminal can first determine whether the user has already started at least one game, so as to determine whether the game needs to be displayed in a small window later. The opened game in this specification means that the game is running and displayed in the terminal foreground. Then, the aforementioned user has started at least one game means that there is at least one game running and displayed in the terminal foreground.

[0074] When the terminal determines whether the user has already started at least one game, it can first determine the running game, such as using ActivityManager to determine the running game. Since the game can also run in the background, and the terminal needs to determine whether there is a game that has been displayed on the terminal display screen, the terminal also needs to determine whether the game is displayed on the terminal display screen for each running game. Specifically, the terminal can determine the display mode of each running game, obtain the display mode of each running game, and determine whether the user has started at least one game based on the display mode of each running game. Among them, the display mode includes a small window display mode and a full screen display mode.

[0075] Further, the terminal can determine whether there are games that are displayed in full screen and / or in small windows based on the display modes of each running game. If among the display modes of each running game, at least one game has a display mode of full screen and / or small window, then the user has opened at least one game. For example, there are currently running games 1 and 2, the display mode of game 1 is full screen, and game 2 is small window, then there are two games whose display modes are full screen and / or small window, and then it is determined that the user has opened two games. The user can open two games, which is also achieved by using the method of opening multiple games provided in this specification. For example, following the above example, if game 1 is the game that the user opens for the first time, then when the user clicks to open game 2, the terminal determines that the user has opened game 1, then game 1 is displayed in a small window, a new WebView is created, and game 2 is displayed in full screen based on the newly created WebView.

[0076] If the display mode of each running game is not any one or more of full-screen display and small window display, it means that the running game may not be displayed in the terminal foreground, and then it is determined that the user has not opened any game. For example, using the above example, if the display mode of game 1 is any one of full-screen display and small window display, and the display mode of game 2 is not any one of full-screen display and small window display, it means that the user has not opened any game. Of course, the running game does not have full-screen display and / or small window display, which means that the game may be running in the terminal background. Then, if the user clicks to start the game, in order to display the game, the terminal can create a new WebView, and based on the newly created WebView, the game currently clicked by the user is displayed in full screen.

[0077] Based on the display mode of each running game, judging whether the user has opened at least one game can also be understood as determining whether the game is displayed in full screen or in a small window for each running game. If there is at least one game running, and the window mode of the game is any one of full screen display and small window display, it indicates that the user has opened at least one game. Among them, the terminal can use the getWindow function to determine the window mode of the running game.

[0078] When the user has opened at least one game, if the user clicks to start the game again, it may involve a scenario where multiple games are opened. If the number of games that the user has opened is 1, and the game that the user currently clicks is a game that has already been opened, then there is no situation where multiple games are opened. If the game that the user currently clicks is not a game that has already been opened, it involves a situation where multiple games are opened. In addition, even if the user has opened at least two games, which involves a situation where multiple games are opened, in order to facilitate the subsequent full-screen display of the game that the user currently clicks, the terminal also needs to determine whether the game that the user currently clicks is a game that has already been opened. Based on the foregoing content, it can be shown that as long as the user has opened the game, regardless of whether the number of games that the user has opened is 1 or more than 1, the terminal needs to determine whether the game that the user currently clicks is a game that has already been opened.

[0079] Specifically, the terminal can determine the current game parameters of the game currently clicked by the user based on the operation of the user clicking to start the game. The current game parameters include user information, such as the user's game character, character name, user game level, etc. The current game parameters also include the game status, such as game progress, game mode, etc. The current game parameters also include the game environment, such as background music, game effect music, game map, etc. The current game parameters also include the identifier of the game currently clicked by the user. The identifier can be obtained by mapping the user's game account and region, or by other means, such as mapping the game account and character name, and this manual does not limit this.

[0080] It should be noted that the current in this specification refers to the moment when the user clicks to start the game, and "current" is unique. For example, if the user clicks to start Game 3 at 14:00, then the current refers to the moment of 14:00, and the current game parameters refer to the game parameters of Game 3. If the user clicks to start Game 4 at 15:00, the current refers to the moment of 15:00, not 14:00, and the current game parameters refer to the game parameters of Game 4.

[0081] S102: Based on the current game parameters, parameter matching is performed in a pre-established cache pool to determine whether the game currently clicked by the user is an opened game.

[0082] In one or more embodiments of the present specification, when a user clicks to start a game, the terminal can start a GameActivity instance, obtain the GameViewData parameter object, that is, the current game parameters, through the getIntent().getBundleExtra() function, and perform parameter matching according to the identifier in the current game parameters to determine whether the currently clicked game is an already opened game. When a user starts a game, the terminal can establish a matching relationship between the game parameters of the game and the WebView used to display the game, and cache the game parameters and the matching relationship in a pre-established cache pool, so as to subsequently determine whether the game that the user clicks to start again is an already opened game. If the terminal is establishing a matching relationship between the identifier in the game parameters and the WebView, then, when performing parameter matching, the terminal can query in the pre-established cache pool whether there is a WebView that matches the identifier of the game currently clicked by the user, that is, query in the pre-established cache pool whether there is an identifier of the game currently clicked by the user, if so, it is determined that the game currently clicked by the user is an already opened game, and step S104 is executed. If not, it is determined that the game currently clicked by the user is an unopened game, and step S106 is executed.

[0083] It should be noted that when a user opens different servers for the same game or opens different games, it is considered as multiple game opening scenarios. For example, if there are games A and B, there are four servers for game A, namely A1, A2, A3, and A4. Generally speaking, when a user opens A1 and A2 of game A, it is considered that the user has opened two games. When a user opens any server of game A and game B, it is also considered that the user has opened two games. Therefore, when determining the identifier, it is necessary to distinguish between different servers for the same game. For example, the user's game account is 123. For the A1 server of game A, the identifier can be 123A1, and for the A2 server of game A, the identifier can be 123A2, in order to distinguish between different servers for the same game.

[0084] Of course, the terminal can also establish a matching relationship between other parameters in the game parameters and WebView, but the other parameters for establishing the matching relationship should be unique to avoid the situation where multiple other parameters match one WebView. If a matching relationship between other parameters and WebView is established, then when performing parameter matching, the query is whether there is a WebView that matches the other parameters. In other words, the parameters for establishing a matching relationship need to correspond to the parameters for performing parameter matching. This manual takes the example of establishing a matching relationship between an identifier and a WebView as an example.

[0085] S104: other games opened by the user are displayed in small windows, and based on the current game parameters, the game currently clicked by the user is displayed in full screen.

[0086] If the identifier of the game currently clicked by the user is found in the pre-established cache pool, a matching relationship related to the identifier is determined, and based on the matching relationship, a WebView matching the identifier is determined, and based on the matching WebView, the game currently clicked by the user is displayed in full screen. In other words, the terminal can determine the WebView matching the game currently clicked by the user based on the current game parameters, and based on the WebView matching the game currently clicked by the user, the game currently clicked by the user is displayed in full screen.

[0087] Of course, if the user has already opened at least one game, the terminal also needs to small-window other games opened by the user. Other games refer to games other than the game currently clicked by the user. Among them, the terminal can adjust the window size of the WebView of other games opened by the user through technologies such as Picture-in-Picture (PiP) and Floating Window to display other games opened by the user in small windows. This specification does not limit the use of any technology to achieve the small-window display of games. The window size can be a fixed value or it can be determined based on the user's operation of adjusting the window size. In other words, the window size can be a fixed value and cannot be changed. The initial size can also be set first and displayed in a small window with the initial size. The user can change the window size by zooming in and out.

[0088] In addition, when implementing the aforementioned small window display, the user must first grant the terminal permission to use the floating window, and the terminal can add and manage windows through WindowManager.

[0089] S106: Create a new WebView, and based on the newly created WebView, display the game currently clicked by the user in full screen.

[0090] In one or more embodiments of the present specification, if the game currently clicked by the user is not opened, the terminal can create a new WebView, and based on the newly created WebView, display the game currently clicked by the user in full screen. When creating a new WebView, the terminal can first create a Window object, and add the newly created Window object to the screen through the WindowManager.addView() method, so that the newly created Window object displays the game currently clicked by the user, and the terminal can set the default window size of the newly created WebView to be full screen size.

[0091] It should be noted that games usually have audio content such as background music and game sound effects. The terminal can be set to play the audio content of the game displayed in full screen to avoid the problem of chaotic audio playback.

[0092] based on Figure 1 The multi-game opening method shown, when the user has opened at least one game, determines the current game parameters of the game currently clicked by the user based on the operation of the user clicking to start the game. Based on the current game parameters, parameter matching is performed in a pre-established cache pool to determine whether the game currently clicked by the user is an opened game. If so, other games opened by the user are windowed, and based on the current game parameters, the game currently clicked by the user is displayed in full screen. If not, a new WebView is created, and the game currently clicked by the user is displayed in full screen based on the newly created WebView. This method determines whether the currently clicked game is an opened game by matching the cache pool. If so, other games are displayed in small windows through small windowing technology, and the current game parameters are used. If not, the current game is displayed in full screen using the newly created WebView, so that users can open multiple games at the same time, improving the user's gaming experience.

[0093] In addition, in order to subsequently determine whether the game clicked by the user is an already opened game, the terminal can determine the matching relationship between the newly created WebView and the current game parameters, and cache the current game parameters and the matching relationship in the cache pool. The current game parameters can be identifiers or other parameters, which are not limited in this manual. Among them, when storing the matching relationship, the terminal can use table storage, chain storage, etc., that is, structured storage and unstructured storage, which are not limited in this manual.

[0094] Furthermore, when determining whether the user has opened at least one game, the terminal can also determine whether there is a matching relationship between the WebView and the game parameters stored in the pre-established cache pool. If so, the user has opened at least one game. This is because the terminal stores the matching relationship for each opened game.

[0095] For step S104, when the opened game is displayed in a small window, the terminal can also determine the window parameters of the opened game and store the window parameters in the cache pool. The window parameters include the display position of the window, the size of the window, the color of the window, etc. The window parameters are determined because the user may adjust the size and display position of the game window. If the game is displayed in full screen and the user clicks on another game, then when the full-screen game is displayed in a small window, the stored window parameters can be used to restore the full-screen game to the position and size of the small window display before the full-screen display. That is, when other games opened by the user are displayed in small windows, the terminal displays other full-screen games opened by the user in small windows according to the stored window parameters.

[0096] Figure 3This is a schematic diagram of multiple game openings provided in this manual, such as Figure 3 As shown, the terminal is a tablet computer.

[0097] For example, the existing games C and D are displayed in small windows, the window size of game C is 5*4, and the window size of game D is 4*3. The user displays game C in full screen and then starts game E. Then, the terminal can use the window parameters of game C stored previously to display game C in a small window with a window size of 5*4.

[0098] When there are at least two small windows, in order to avoid overlapping between windows and causing the problem of the game content being blocked, when the terminal is in small window mode, it can also first determine whether there is a window at the display position of the window of the game to be displayed in the small window according to the window parameters. If there is, the screen area where the window is not displayed is determined, and the window of the game to be displayed in the small window is placed in the screen area where the window is not displayed.

[0099] If there are too many windows and overlapping windows cannot be avoided, the terminal can also use the Z order to determine the window display order, including determining the Z order of the windows by the time sequence of WebView creation. For example, if the WebView of game H is created at 14:00 on March 11, 2023, and the WebView of game I is created at 15:00 on March 11, 2023, then the Z order value of game H is greater than that of game I. The larger the Z order value, the closer the window is to the front.

[0100] It should be noted that if the game opened by the user has an automatic level-breaking mode, then even if the game is displayed in a small window, the game displayed in a small window can be set to execute the automatic level-breaking mode normally. Of course, the game can also be set to be paused when the game is displayed in a small window.

[0101] Before displaying the game currently clicked by the user in full screen based on the current game parameters, the terminal may first determine whether the game currently clicked by the user is displayed in full screen. This is because in a scenario where multiple games are opened, the user has opened many games, and the game currently clicked may be the game displayed in full screen. If the game currently clicked by the user is not displayed in full screen, the game currently clicked by the user is displayed in full screen based on the current game parameters. If the game currently clicked by the user is displayed in full screen, the terminal may display a prompt message to prompt the user that the game currently clicked has been displayed.

[0102] Figure 4 This is a schematic diagram of the prompt information provided in this manual, such as Figure 4As shown, when the terminal is a smart phone, there is a game E displayed in a small window. If the game displayed in full screen is the F1 zone of game F, and the game currently clicked by the user is also the F1 zone of game F, then a prompt message such as "The game you are currently clicking on is displayed in full screen!" will be displayed.

[0103] It should be supplemented that this specification also provides a split-screen display mode. The user can choose whether to display the currently clicked game in split-screen mode. In response to the user's split-screen display operation, the terminal determines and displays the game to be displayed in split-screen mode with the game currently clicked by the user.

[0104] Specifically, if the user has only opened one game, and the game currently clicked by the user is not an opened game, then the terminal responds to the user's split-screen display operation and displays the game opened by the user and the game currently clicked in split-screen based on the newly created WebView. If the user has only opened one game, and the game currently clicked by the user is an opened game, it means that the user has not opened other games except the game currently clicked by the user, and there is no multiple game opening situation.

[0105] If the user has opened at least two games, then the terminal responds to the user's split-screen display operation, determines the game to be displayed in split-screen with the game currently clicked by the user according to the preset rules, and displays the game currently clicked by the user in split-screen based on the newly created WebView. The preset rules include the Z order of the window, etc. For example, the game in the window with the largest Z order value is determined as the game to be displayed in split-screen with the game currently clicked by the user, and this description does not limit this.

[0106] Figure 5 This is a schematic diagram of the split-screen display mode provided in this manual, such as Figure 5 shown.

[0107] The game currently clicked by the user is game K. Game K can be displayed in a split screen with game G, and there may also be game L displayed in a small window.

[0108] The above is one or more implementation methods of this specification, based on Figure 1 The flowchart of the game multiple opening method shown in FIG. 1 is a flowchart of the game multiple opening method shown in FIG. 1 , and the present specification also provides a corresponding game multiple opening device, such as Figure 6 shown.

[0109] Figure 6 This is a schematic diagram of a multi-game opening device provided in this specification, the device comprising:

[0110] The current game parameter determination module 600 is used to determine the current game parameters of the game currently clicked by the user based on the operation of the user clicking to start the game when the user has already started at least one game;

[0111] A first judgment module 602 is used to perform parameter matching in a pre-established cache pool based on the current game parameters to determine whether the game currently clicked by the user is an opened game;

[0112] The first application module 604 is used to, if yes, display other games opened by the user in small windows, and based on the current game parameters, display the game currently clicked by the user in full screen;

[0113] The second application module 606 is used to create a new WebView if no, and display the game currently clicked by the user in full screen based on the newly created WebView.

[0114] Optionally, the device further comprises:

[0115] The second judgment module is used to determine the games being run; for each game being run, determine the display mode of the game; and based on the display mode of each game being run, determine whether the user has started at least one game.

[0116] Optionally, the second judgment module is specifically used to judge whether there are games displayed in full screen and / or small window based on the display mode of each running game; if so, the user has opened at least one game.

[0117] Optionally, the second judgment module is specifically used to determine whether there is a matching relationship between the stored WebView and the game parameters in the pre-established cache pool; if so, the user has opened at least one game.

[0118] Optionally, the current game parameter includes an identifier of the game currently clicked by the user;

[0119] The first judgment module 602 is specifically used to query whether there is a WebView matching the identifier of the game currently clicked by the user in a pre-established cache pool; if so, determine that the game currently clicked by the user is an opened game; if not, determine that the game currently clicked by the user is an unopened game.

[0120] Optionally, the first application module 604 is specifically used to determine, based on the current game parameters, a WebView that matches the game currently clicked by the user; and based on the WebView that matches the game currently clicked by the user, display the game currently clicked by the user in full screen.

[0121] Optionally, the device comprises:

[0122] A matching relationship establishment module is used to determine the matching relationship between the newly created WebView and the current game parameters; and cache the current game parameters and the matching relationship in the cache pool.

[0123] Optionally, the game parameters include window parameters;

[0124] The device comprises:

[0125] A window parameter determination module, for determining the window parameters of the opened game when the opened game is displayed in a small window; and storing the window parameters in the cache pool;

[0126] The first application module 604 is specifically used to display other full-screen games opened by the user in small windows according to the stored window parameters.

[0127] This specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 A method for opening multiple games is provided.

[0128] This manual also provides Figure 7 The one shown corresponds to Figure 1 Schematic diagram of the structure of the electronic equipment. Figure 7 As shown, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 How to open multiple games.

[0129] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0130] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0131] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0132] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0133] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0134] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification 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.) that contain computer-usable program code.

[0135] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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.

[0136] 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.

[0137] 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 in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0138] In a typical configuration, a computing device includes one or more processors (first chips), input / output interfaces, network interfaces, and memory.

[0139] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0140] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0141] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0142] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification 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.

[0143] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0144] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0145] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A method for opening multiple games, characterized in that: The method comprises: When the user has started at least one game, based on the user's operation of clicking to start the game, determining the current game parameters of the game currently clicked by the user; Based on the current game parameters, matching parameters is performed in a pre-established cache pool to determine whether the game currently clicked by the user is an opened game; If yes, other games opened by the user are displayed in small windows, and based on the current game parameters, the game currently clicked by the user is displayed in full screen; If not, a new WebView is created, and based on the newly created WebView, the game currently clicked by the user is displayed in full screen.

2. The method according to claim 1, characterized in that The method further comprises: Determine the game that is running; For each running game, determine the display mode of the game; Based on the display mode of each running game, it is determined whether the user has started at least one game.

3. The method according to claim 2, characterized in that Based on the display mode of each running game, determining whether the user has opened at least one game includes: Based on the display mode of each running game, determine whether there is a game displayed in full screen and / or in small window; If so, the user has started at least one game.

4. The method according to claim 1, characterized in that The method further comprises: Determine whether there is a matching relationship between the stored WebView and the game parameters in the pre-established cache pool; If present, the user has opened at least one game.

5. The method according to claim 1, characterized in that The current game parameters include an identifier of the game currently clicked by the user; Based on the current game parameters, parameter matching is performed in a pre-established cache pool to determine whether the game currently clicked by the user is an opened game, specifically including: Querying a pre-established cache pool to determine whether there is a WebView that matches an identifier of the game currently clicked by the user; If so, determining that the game currently clicked by the user is an opened game; If it does not exist, it is determined that the game currently clicked by the user is an unopened game.

6. The method according to claim 1, characterized in that Based on the current game parameters, the game currently clicked by the user is displayed in full screen, specifically including: Based on the current game parameters, determine a WebView that matches the game currently clicked by the user; Based on the WebView that matches the game currently clicked by the user, the game currently clicked by the user is displayed in full screen.

7. The method according to claim 1, characterized in that The method further comprises: Determine the matching relationship between the newly created WebView and the current game parameters; The current game parameters and the matching relationship are cached in the cache pool.

8. The method according to claim 1, characterized in that Game parameters include window parameters; The method further comprises: When the opened game is displayed in a small window, determining the window parameters of the opened game; and storing the window parameters in the cache pool; Other games opened by the user are displayed in small windows, including: According to the stored window parameters, other games opened by the user and displayed in full screen are displayed in small windows.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Task window processing method and apparatus

    CN105468437A

  • Window display method, electronic equipment and computer readable storage medium

    CN116048311A

  • Method, device, system and equipment for switching foreground and background of cloud game

    CN116531747A

  • Game display and interaction method and device and computer product

    CN118454222A

  • Multiple example type network game system

    CN1861237A