Game operation method, device and storage medium
By identifying game scenarios and monitoring user actions, personalized game commands are executed only during matchmaking, solving the problem of low personalization in existing technologies and improving the personalization of game operations and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- MIGU INTERACTIVE ENTERTAINMENT CO LTD
- Filing Date
- 2022-12-23
- Publication Date
- 2026-04-14
AI Technical Summary
In existing technologies, users cannot distinguish specific scenarios in different games, resulting in low levels of personalized operation and a poor user experience.
By identifying whether the current game scene is a personalized operation scene and monitoring whether the user's actual game operation is a personalized operation, personalized game instructions are executed only when the scene and operation match. This includes obtaining user operation deviation information to determine the comfortable touch position and generating input operation prompts, and establishing a correspondence between personalized operations and target game instructions.
This avoids accidental user actions in different game scenarios, increases the personalization of game controls, and enhances the user's gaming experience.
Smart Images

Figure CN115814429B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of game technology, and in particular to a game operation method, device and storage medium. Background Technology
[0002] Currently, when users play games, they can usually pre-set personalized operations to facilitate their operation. Whenever a personalized operation is detected, the corresponding game command is executed.
[0003] However, since the above methods cannot distinguish specific scenarios, they suffer from low personalization and poor user experience. Summary of the Invention
[0004] The main objective of this invention is to provide a game operation method, device, and storage medium, aiming to solve the technical problem in the prior art where the game commands corresponding to the personalized operation are executed whenever a personalized operation of the user is detected, without being able to distinguish the specific scene, resulting in low personalization and poor operation experience.
[0005] To achieve the above objectives, the present invention provides a game operation method, which includes the following steps:
[0006] Identify whether the current game scene is a personalized game operation scene, and simultaneously monitor whether the user's actual game operation is the personalized game operation corresponding to the personalized game operation scene;
[0007] Based on the scene recognition results and operation monitoring results, determine whether to execute the target game command corresponding to the personalized game operation.
[0008] Optionally, before the step of identifying whether the current game scene is a personalized game operation scene and simultaneously monitoring whether the user's actual game operation is the personalized game operation corresponding to the personalized game operation scene, the method further includes:
[0009] Obtain the execution count of each game command in the current game scene, and determine the target game command based on the execution count;
[0010] Generate input operation prompts based on the current game scene, and receive personalized game operations input by the user based on the input operation prompts;
[0011] Establish the correspondence between the personalized game operations and the target game commands.
[0012] Optionally, the step of generating input operation prompts based on the current game scene and receiving personalized game operations input by the user based on the input operation prompts includes:
[0013] Obtain information on user input deviations while playing preset test games;
[0014] The user's comfortable touch position is determined based on the operation deviation information and the current game scene;
[0015] Based on the comfortable touch position and the corresponding input gesture, input operation prompts are generated, and personalized game operations input by the user based on the input operation prompts are received.
[0016] Optionally, the step of determining the user's comfortable touch position based on the operation deviation information and the current game scene includes:
[0017] The touch contact area of the user when playing the preset test game is determined based on the operation deviation information, and the touch comfort point of the user is determined based on the touch contact area;
[0018] Based on the current scene information, the user's high-frequency effective touch area is determined, and the high-frequency effective touch area is divided into multiple touch sub-areas;
[0019] The frequency of occurrence of the touch comfort point in each touch sub-region is counted, and the user's touch comfort position is determined based on the frequency of occurrence.
[0020] Optionally, the step of establishing the correspondence between the personalized game operation and the target game command includes:
[0021] Retrieve the current game commands and historical game commands in the current game scene;
[0022] Predict future game commands for the current game scene based on the current game commands and the historical game commands;
[0023] The target game command is updated according to the future game command, and a correspondence is established between the personalized game operation and the updated target game command.
[0024] Optionally, the step of monitoring whether the user's actual game operation is the personalized game operation corresponding to the personalized game operation scenario includes:
[0025] The actual touch trajectory is determined based on the user's actual game operation, and the personalized touch trajectory is determined based on the personalized game operation corresponding to the personalized game operation scenario.
[0026] The actual touch trajectory is scaled to ensure that the actual touch trajectory after scaling is the same size as the personalized touch trajectory, and the scaling ratio is obtained when scaling is performed.
[0027] Detect the average distance between the scaled actual touch trajectory and each point in the personalized touch trajectory;
[0028] Based on the scaling ratio and the average distance value, monitor whether the user's actual game operation is the personalized game operation corresponding to the personalized game operation scenario.
[0029] Optionally, the step of monitoring whether the user's actual game operation is a personalized game operation corresponding to the personalized game operation scenario based on the operation similarity includes:
[0030] Obtain user device information and generate personalized trigger conditions based on the user device information;
[0031] Based on the personalized trigger conditions and the operation similarity, it is monitored whether the user's actual game operation is the personalized game operation corresponding to the personalized game operation scenario.
[0032] Optionally, the step of identifying whether the current game scene is a personalized game operation scene includes:
[0033] Match the current game scene with the personalized game operation scene;
[0034] Detect the percentage of current game commands in the current game scene relative to the historical game commands in the personalized game operation scene;
[0035] Based on the image matching results and the stated proportion, it is determined whether the current game scene is a personalized game operation scene.
[0036] Furthermore, to achieve the above objectives, the present invention also proposes a game operation device, which includes a memory, a processor, and a game operation program stored in the memory and executable on the processor, wherein the game operation program is configured to implement the game operation method described above.
[0037] In addition, to achieve the above objectives, the present invention also proposes a storage medium storing a game operation program, which, when executed by a processor, implements the game operation method as described above.
[0038] This invention discloses a method for identifying whether the current game scene is a personalized game operation scene, and simultaneously monitoring whether the user's actual game operation is a personalized game operation corresponding to the personalized game operation scene. Based on the scene identification result and the operation monitoring result, it determines whether to execute the target game instruction corresponding to the personalized game operation. Since this invention only executes the target game instruction corresponding to the personalized game operation when the current game scene is a personalized operation scene and the user's actual game operation is a personalized game operation, it avoids user misoperation in different game scenes, thereby improving the personalization of game operation and enhancing the user's game experience. Attached Figure Description
[0039] Figure 1 This is a schematic diagram of the structure of the game operation device in the hardware operating environment involved in the embodiments of the present invention;
[0040] Figure 2 This is a flowchart illustrating the first embodiment of the game operation method of the present invention;
[0041] Figure 3 This is a schematic diagram of game operation in the prior art;
[0042] Figure 4 This is a diagram illustrating the game controls for this solution;
[0043] Figure 5 This is a flowchart illustrating the second embodiment of the game operation method of the present invention;
[0044] Figure 6 This is a schematic diagram of the operation input prompts according to an embodiment of the game operation method of the present invention;
[0045] Figure 7 This is a schematic diagram of a preset test game for an embodiment of the game operation method of the present invention;
[0046] Figure 8 This is a flowchart illustrating the third embodiment of the game operation method of the present invention.
[0047] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0048] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0049] Reference Figure 1 , Figure 1 This is a schematic diagram of the hardware operating environment of the game operation device involved in the embodiment of the present invention.
[0050] like Figure 1As shown, the game operating device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen, and optionally, it may also include a standard wired interface or a wireless interface. In this invention, the wired interface of the user interface 1003 may be a USB interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wireless-Fidelity (Wi-Fi) interface). The memory 1005 may be high-speed random access memory (RAM) or non-volatile memory (NVM), such as a disk storage device. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.
[0051] Those skilled in the art will understand that Figure 1 The structure shown does not constitute a limitation on the game operating device and may include more or fewer parts than shown, or combine certain parts, or have different arrangements of parts.
[0052] like Figure 1 As shown, the memory 1005, which is identified as a computer storage medium, may include an operating system, a network communication module, a user interface module, and a game operation program.
[0053] exist Figure 1 In the game operation device shown, the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; the user interface 1003 is mainly used to connect to the user device; the game operation device calls the game operation program stored in the memory 1005 through the processor 1001 and executes the game operation method provided in the embodiment of the present invention.
[0054] Based on the above hardware structure, an embodiment of the game operation method of the present invention is proposed.
[0055] Reference Figure 2 , Figure 2 This is a flowchart illustrating the first embodiment of the game operation method of the present invention, which presents the first embodiment of the game operation method of the present invention.
[0056] In the first embodiment, the game operation method includes the following steps:
[0057] Step S10: Identify whether the current game scene is a personalized game operation scene, and at the same time monitor whether the user's actual game operation is the personalized game operation corresponding to the personalized game operation scene.
[0058] It should be understood that the execution subject of the method in this embodiment may be a game operation device with data processing, network communication and program running functions, such as a server, or other electronic devices that can achieve the same or similar functions. This embodiment does not limit this.
[0059] Understandably, currently, when users play games, they can usually pre-set personalized operations to facilitate user operation. Whenever a user's personalized operation is detected, the corresponding game command is executed.
[0060] For ease of understanding, please refer to Figure 3 This explanation does not limit the scope of this solution. Figure 3 This is a schematic diagram of game operation in the prior art. In the diagram, when the user is playing the game, he / she needs to operate the battle in area 1 and click the button in area 2 at the same time. Since area 1 and area 2 are far apart, the user's hand needs to move a long distance, which affects the user's operation. Therefore, the user can pre-set a personalized game operation to slide upward in area 1, and the corresponding game command for the personalized operation is to trigger the button in area 2.
[0061] However, since the above method cannot distinguish specific scenarios, users will trigger the button in area 2 when they swipe up in area 1 in any scenario, resulting in problems such as accidental operation, low personalization, and poor user experience.
[0062] Therefore, in order to overcome the above-mentioned defects, in this embodiment, the target game instruction corresponding to the personalized game operation is only executed when the current game scenario is a personalized operation scenario and the user's actual game operation is a personalized game operation. This avoids the user's misoperation in different game scenarios, thereby improving the personalization of game operation and enhancing the user's game experience.
[0063] For ease of understanding, please refer to Figure 4 This explanation does not limit the scope of this solution. Figure 4 This is a diagram illustrating the game operation of this solution. In the diagram, the personalized game operation is to swipe upwards in area 1. The corresponding game command for the personalized operation is to trigger the button in area 2. The button in area 2 is only triggered when the current game scene is identified as a personalized game operation scene, the personalized game operation is to swipe upwards in area 1, and the user's actual game operation is to swipe upwards in area 1.
[0064] It's understandable that a game can be viewed as composed of multiple game scenes, each with a fixed start and end screen. Therefore, identifying whether the current game scene is a personalized operation scene could involve obtaining the start and end screens of each scene and then using these screens to determine if the current game scene is a personalized operation scene.
[0065] It should be noted that the actual game operation can be at least one of clicking, long pressing, and swiping, and this embodiment does not limit this.
[0066] It should be understood that monitoring whether a user's actual game operation is a personalized game operation corresponding to a personalized game operation scenario can be done by determining the actual touch trajectory based on the user's actual game operation and determining the personalized touch trajectory based on the personalized game operation corresponding to the personalized game operation scenario. When the actual touch trajectory matches the personalized touch trajectory, the user's actual game operation is determined to be a personalized game operation corresponding to the personalized game operation scenario.
[0067] The personalized game operation corresponding to the personalized game operation scenario can be preset by the user. In this embodiment and other embodiments, the personalized game operation corresponding to the personalized game operation scenario is illustrated by swiping upwards as an example.
[0068] Furthermore, considering that different users have different personalized game operation settings, in order to ensure the accuracy of personalized game operation, the personalized game operation corresponding to the personalized game operation scenario can be determined through the following steps:
[0069] Obtain user identity information;
[0070] Personalized game actions are obtained based on the user's identity information to correspond to the current game scene.
[0071] It is understandable that different users have different personalized game operation settings. Therefore, in order to ensure the accuracy of personalized game operation, this embodiment obtains the personalized game operation corresponding to the current game scene based on the user's identity information.
[0072] It should be noted that user identity information can be user fingerprints or user facial information. In this embodiment, user fingerprints will be used as an example for explanation.
[0073] It should be understood that obtaining user identity information can involve the user terminal collecting the user's fingerprint and sending the fingerprint to the server.
[0074] It is understandable that obtaining personalized game operations corresponding to the current game scene based on user identity information can be done by obtaining a set of user information based on user identity information and then searching for personalized game operations corresponding to the current game scene in the set of user information.
[0075] Step S20: Determine whether to execute the target game instruction corresponding to the personalized game operation based on the scene recognition result and operation monitoring result.
[0076] Determining whether to execute the target game command corresponding to the personalized game operation based on the scene recognition results and operation monitoring results can be done as follows: if the current game scene is a personalized operation scene and the user's actual game operation is a personalized game operation, the target game command corresponding to the personalized game operation will be executed; if the current game scene is not a personalized operation scene, or the user's actual game operation is not a personalized game operation, the target game command corresponding to the personalized game operation will not be executed.
[0077] In the first embodiment, it is disclosed that the system identifies whether the current game scene is a personalized game operation scene and simultaneously monitors whether the user's actual game operation is a personalized game operation corresponding to the personalized game operation scene. Based on the scene identification result and the operation monitoring result, it determines whether to execute the target game instruction corresponding to the personalized game operation. Since this embodiment only executes the target game instruction corresponding to the personalized game operation when the current game scene is a personalized operation scene and the user's actual game operation is a personalized game operation, it avoids user misoperation in different game scenes, thereby improving the personalization of game operation and enhancing the user's game experience.
[0078] Reference Figure 5 , Figure 5 This is a flowchart illustrating the second embodiment of the game operation method of the present invention, based on the above. Figure 2 The first embodiment shown presents a second embodiment of the game operation method of the present invention.
[0079] In the second embodiment, before step S10, the method further includes:
[0080] Step S01: Obtain the number of times each game instruction is executed in the current game scene, and determine the target game instruction based on the number of executions.
[0081] It should be understood that, in order to facilitate users in entering personalized game operations, this embodiment can also generate input operation prompts in the current game scene and receive personalized game operations entered by users according to the input operation prompts, so as to establish a correspondence between personalized game operations and target game commands.
[0082] It should be noted that the target game command can be a game command that is frequently triggered in the current game scene. Therefore, the target game command can be determined based on the number of times each game command is executed in the current game scene.
[0083] Step S02: Generate input operation prompts based on the current game scene, and receive personalized game operations input by the user based on the input operation prompts.
[0084] It is understandable that generating input prompts based on the current game scene could involve first determining a preset location corresponding to the current game scene and then displaying the input prompts near that preset location.
[0085] For ease of understanding, please refer to Figure 6 This explanation does not limit the scope of this solution. Figure 6 This is a schematic diagram of the operation input prompt. In the diagram, the preset position is point P in area 1. Near point P, the operation input prompt "Please start inputting your personalized game operation from this point" is displayed. After viewing the operation input prompt, the user can perform an operation at point P to input personalized game operations. The personalized game operation can be at least one of clicking, long pressing, and swiping. In this embodiment and other embodiments, swiping upwards is used as an example for explanation.
[0086] Furthermore, to ensure that the input operation prompts conform to the user's operating habits, step S02 includes:
[0087] Obtain information on user input deviations while playing preset test games;
[0088] The user's comfortable touch position is determined based on the operation deviation information and the current game scene;
[0089] Based on the comfortable touch position and the corresponding input gesture, input operation prompts are generated, and personalized game operations input by the user based on the input operation prompts are received.
[0090] It should be understood that, in order to ensure that the input operation prompts conform to the user's operating habits, in this embodiment, the user's comfortable touch position is first determined by the user playing the preset test game and the current game scene, and then the input operation prompts are generated based on the comfortable touch position and the input gesture corresponding to the comfortable touch position.
[0091] It should be noted that the preset test game can be set in advance to test user operation deviations.
[0092] For ease of understanding, please refer to Figure 7 This explanation does not limit the scope of this solution. Figure 7 The diagram shows a preset test game. In the diagram, the preset test game randomly displays 5 circular patterns with a radius of R on the screen. The actual touch coordinates when the user clicks the center point of each circle are obtained. The user's operation deviation information is determined based on the actual touch coordinates and the actual center point coordinates of the circular patterns.
[0093] It is understandable that determining a user's operational deviation information based on a preset test game and operational information could involve first finding the standard operational information of the preset test game, then comparing the standard operational information with the operational information, and determining the user's operational deviation information based on the comparison result.
[0094] Furthermore, to ensure the accuracy of the comfortable touch position, the step of determining the user's comfortable touch position based on the operation deviation information and the current game scene includes:
[0095] The touch contact area of the user when playing the preset test game is determined based on the operation deviation information, and the touch comfort point of the user is determined based on the touch contact area;
[0096] Based on the current scene information, the user's high-frequency effective touch area is determined, and the high-frequency effective touch area is divided into multiple touch sub-areas;
[0097] The frequency of occurrence of the touch comfort point in each touch sub-region is counted, and the user's touch comfort position is determined based on the frequency of occurrence.
[0098] For ease of understanding, examples are provided below, but these are not intended to limit the scope of this solution. The specific steps for determining a comfortable touch location are as follows:
[0099] 1. When the game starts, provide the user with a preset test game and record the user's actual touch coordinates based on the preset test game.
[0100] For example, user A opens game G on device D1. When the game starts, the loading screen of game G is replaced with a preset test game. The content of the preset test game is not limited, as long as it can test user operation deviations. For example, m circular patterns with radius R are randomly displayed on the screen, and the actual touch coordinates {center1′, center2′, ..., center} when the user clicks the center point of each circle are obtained. m Let {center1, center2, ..., center} be the coordinates of the actual center points of m circular patterns. m}
[0101] 2. Calculate the average deviation based on the actual center point coordinates and the actual touch coordinates.
[0102] 1) Calculate the deviation of the first point
[0103] In the formula, Dev1 is the deviation of the first point, center1x is the x-axis coordinate of the actual center point center1, center1y is the y-axis coordinate of the actual center point center1, center1′x is the x-axis coordinate of the actual touch coordinate center1′, center1′y is the y-axis coordinate of the actual touch coordinate center1′, and R is the radius of the circular pattern.
[0104] Similarly, the deviation Dev at m points is obtained. m .
[0105] 2) Calculate the average deviation
[0106] 3. According to Calculate the standard area (StandardArea) of the screen where user A's finger touches.
[0107] 1) Calculate the area of the screen surface touched by user A's finger.
[0108] Among them, FingerArea i Let m be the area of the finger contact when clicking on m circular patterns.
[0109] 2) Standard screen area touched by User A's finger:
[0110] 4. Determine the user's comfortable touch position P based on the Standard Area.
[0111] 1) Based on the historical data of the first touch point after user A opens and displays the game screen, the high-frequency effective area HighFreqSpace of touch is obtained.
[0112] 2) Draw a circumscribed square of HighFreqSpace with an area of HighFreqArea, and calculate the ratio of the high-frequency area to the standard area (rounded up).
[0113] 3) Divide HighFreqSpace into M×M blocks.
[0114] 4) Find the small area with the most occurrences of points, and record the point with the most occurrences in the small area as the user's comfortable touch position P.
[0115] Step S03: Establish the correspondence between the personalized game operation and the target game command.
[0116] It should be understood that, in order to directly execute the target game command when the user performs a personalized game operation next time, this embodiment directly establishes a correspondence between the personalized game operation and the target game command.
[0117] In the second embodiment, the method of obtaining the execution count of each game command in the current game scene, determining the target game command based on the execution count, generating input operation prompts based on the current game scene, and receiving personalized game operations entered by the user according to the input operation prompts, thereby establishing a correspondence between personalized game operations and target game commands. Since this embodiment generates input operation prompts in the current game scene and receives personalized game operations entered by the user according to the input operation prompts to establish a correspondence between personalized game operations and target game commands, it is convenient for users to enter personalized game operations.
[0118] Furthermore, considering that frequently triggered game commands in the current game scenario may change at any time, in order to ensure the accuracy of the correspondence, step S03 includes:
[0119] Retrieve the current game commands and historical game commands in the current game scene;
[0120] Predict future game commands for the current game scene based on the current game commands and the historical game commands;
[0121] The target game command is updated according to the future game command, and a correspondence is established between the personalized game operation and the updated target game command.
[0122] It should be understood that, considering that the game commands frequently triggered in the current game scenario may change at any time, in order to ensure the accuracy of the correspondence, in this embodiment, the future game commands in the current game scenario can also be predicted based on the command triggering trend in the current game scenario, and the target game commands can be updated based on the future game commands.
[0123] For ease of understanding, examples are provided below, but these are not intended to limit the scope of this solution. The specific steps for predicting future game commands in the current game scenario are as follows:
[0124] 1. The current game scene is scene F. Retrieve the historical game commands in scene F. Assign the values y to the commands received by user A in scene F a total of t times, starting from 1. Different commands are incremented by 1, and commands that are the same as those in the history are assigned the same value. This results in a set {y1, y2, ..., y...}. t}
[0125] 2. Define n (e.g., n=10). After there are more than 2n historical data entries, take the n most recent instruction values {y}. t-9 ,y t-8 ,…,y tConsidering the influence of time, more recent data better reflects future user trends. Therefore, a weight is added, assigned a value w, and the predicted value for the (t+1)th time is calculated.
[0126] 3. Calculate the predicted value {y} for each of the last n predictions. t ′ -9 ,y t ′ -8 ,…,y t ′}, and the actual value {y} t-9 ,y t-8 ,…,y t Calculate the overall average error
[0127] 4. Correct the predicted value based on k times for t+1 to obtain the corrected predicted value.
[0128] 5. Y t+1 If a new instruction (set) T2 is obtained by matching it with historical game instructions, and T2 accounts for 90% of the total amount of historical data, then T2 is used as the target game instruction.
[0129] Reference Figure 8 , Figure 8 This is a flowchart illustrating the third embodiment of the game operation method of the present invention. Based on the above embodiments, a third embodiment of the game operation method of the present invention is proposed.
[0130] In the third embodiment, step S10 includes:
[0131] Step S101: Match the screen of the current game scene with the screen of the personalized game operation scene.
[0132] It should be understood that, in order to improve the accuracy of personalized game operation scene recognition, in this embodiment, whether the current game scene is a personalized game operation scene can be determined by combining the screen matching results and the proportion of game commands.
[0133] It's understandable that a game can be viewed as consisting of multiple game scenes, each with a fixed start and end screen. Therefore, matching the screen of the current game scene with the screen of the personalized game operation scene could involve obtaining the start and end screens of the current game scene and matching them with the start and end screens of the personalized game operation scene.
[0134] Step S102: Detect the proportion of the current game command in the current game scene to the historical game commands in the personalized game operation scene.
[0135] Step S103: Identify whether the current game scene is a personalized game operation scene based on the screen matching result and the ratio.
[0136] For ease of understanding, examples are provided below, but this does not limit the scope of this solution. The specific steps to obtain the target game command in the current game scene are as follows:
[0137] 1. When user A is playing game G, the cloud identifies the game screen in real time. When a certain screen matches the start screen of scene F, it is recorded as L1.
[0138] 2. After L1 is identified, it will check whether there is a screen in the subsequent screen that matches the ending screen of scene F. If there is, it will be recorded as L2. The current game scene can be determined to be scene F by going from L1 to L2.
[0139] 3. Obtain the current game commands received in the current game scene.
[0140] 4. When the current game command T1 accounts for 90% of the total number of historical game commands in scenario F (for example, the historical game commands are {aabbsk,weaabbpw,paabb}, and the current game command T1 is aabb), scenario F is a personalized operation scenario.
[0141] In the third embodiment, the method of matching the screen of the current game scene with the screen of the personalized game operation scene is disclosed, detecting the proportion of the current game command in the current game scene to the historical game commands in the personalized game operation scene, and identifying whether the current game scene is a personalized game operation scene based on the screen matching result and the proportion. Since this embodiment determines whether the current game scene is a personalized game operation scene by jointly determining whether the current game scene is a personalized game operation scene through the screen matching result and the proportion of game commands, the accuracy of personalized game operation scene identification can be improved.
[0142] In the third embodiment, step S10 further includes:
[0143] Step S104: Determine the actual touch trajectory based on the user's actual game operation, and determine the personalized touch trajectory based on the personalized game operation corresponding to the personalized game operation scenario.
[0144] It should be understood that in practical applications, a user's actual game actions cannot be completely identical to personalized game actions. Therefore, in order to ensure that the user's actual game actions can successfully trigger the target game command, this embodiment can determine whether the actual game action is a personalized game action based on the similarity between the actual game action and the personalized game action.
[0145] Step S105: Scale the actual touch trajectory to ensure that the actual touch trajectory after scaling has the same size as the personalized touch trajectory, and obtain the scaling ratio when scaling.
[0146] Step S106: Detect the average distance between the scaled actual touch trajectory and each point in the personalized touch trajectory.
[0147] Step S107: Monitor whether the user's actual game operation is the personalized game operation corresponding to the personalized game operation scenario based on the scaling ratio and the average distance value.
[0148] In practice, the user's actual game action X in the current game scene cannot perfectly match the trajectory of the personalized game action X1 (swiping distance S1) recorded for the current game scene. Therefore, when the current game scene is a personalized game operation scene, a fault-tolerance mechanism is added to monitor whether the actual game action is a personalized game action. That is, when the current game scene is a personalized game operation scene and the user's actual game action X is a personalized game action X1, the target game instruction T1 corresponding to personalized game action X1 is executed; when the current game scene is a personalized game operation scene and the user's actual game action X is not exactly the same as personalized game action X1, but the similarity of the actions is high, the target game instruction T1 corresponding to personalized game action X1 will also be executed.
[0149] The implementation process of the fault tolerance mechanism is as follows:
[0150] 1. Scale the trajectory X, taking the touch start point as a fixed point, to make its overall width and height the same as the trajectory X1, resulting in a new trajectory X'. Calculate the scaling ratio:
[0151]
[0152] Where WidthX1 and HeightX1 are the width and height of the X1 trajectory, and WidthX′ and HeightX′ are the width and height of the scaled new trajectory X'.
[0153] 2. Take 100 points {P1, P2, ..., P1} on both X' and X1 respectively. 100} and {Q1,Q2,…,Q 100} Calculate the distance between two points with the same index on two trajectories.
[0154] For example, the distance to point number 1 is:
[0155]
[0156] Among them, P 1x Let P1 be the x-axis coordinate, and P be the x-axis coordinate. 1yLet Q be the y-coordinate of P1. 1x Let Q1 be the x-axis coordinate, and Q be the x-axis coordinate. 1y Let Q1 be the y-axis coordinate.
[0157] Therefore, Distance1, Distance2, ..., Distance can be calculated. 100 .
[0158] 3. Calculate the average distance value
[0159] 4. Scaling ratio and average distance value The smaller the value, the more similar the trajectory shape and size, meaning X and X1 are closer. When Scale < 0.5 and Then execute the target game instruction T1 corresponding to the personalized game operation X1.
[0160] In the third embodiment, a method is disclosed to determine the actual touch trajectory based on the user's actual game operation, and to determine the personalized touch trajectory based on the personalized game operation corresponding to the personalized game operation scenario. The actual touch trajectory is scaled to ensure that the scaled actual touch trajectory and the personalized touch trajectory have the same size, and the scaling ratio is obtained during scaling. The average distance value of each point in the scaled actual touch trajectory and the personalized touch trajectory is detected. Based on the scaling ratio and the average distance value, it is monitored whether the user's actual game operation is the personalized game operation corresponding to the personalized game operation scenario. Since this embodiment determines whether the actual game operation is a personalized game operation based on the similarity between the actual game operation and the personalized game operation, it can ensure that the user's actual game operation can successfully trigger the target game command.
[0161] Furthermore, considering that users may switch devices after setting personalized actions, step S108 includes the following steps to ensure the accuracy of personalized game action detection:
[0162] Obtain user device information and generate personalized trigger conditions based on the user device information;
[0163] Based on the personalized trigger conditions and the operation similarity, it is monitored whether the user's actual game operation is the personalized game operation corresponding to the personalized game operation scenario.
[0164] For ease of understanding, examples are provided below, but this does not limit the scope of this solution. The specific steps to determine whether actual game operations are personalized game operations are as follows:
[0165] This personalized action remains effective even when a user switches devices. For example, when user A switches from device D1 to device D2, the devices are different and have different sizes, so the conditions for triggering X1 also need to be adjusted.
[0166] Assuming device D1 has width and height W1 and H1, and device D2 has width and height W2 and H2, calculate the aspect ratio of the two devices. If a user swipes on D2 at a distance of S2 = S1 × k, the personalized operation X1 will be triggered.
[0167] Furthermore, this embodiment of the invention also proposes a storage medium storing a game operation program, which, when executed by a processor, implements the game operation method described above.
[0168] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0169] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0170] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as a read-only memory image (ROM) / random access memory (RAM), magnetic disk, optical disk), and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0171] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A game operation method, characterized in that, The game operation method includes the following steps: Identify whether the current game scene is a personalized game operation scene, and simultaneously monitor whether the user's actual game operation is the personalized game operation corresponding to the personalized game operation scene; Based on the scene recognition results and operation monitoring results, determine whether to execute the target game command corresponding to the personalized game operation; Before identifying whether the current game scene is a personalized game operation scene, the process also includes: When the game starts, a preset test game is provided to the user, and information on the user's operational deviations while playing the preset test game is obtained; The user's comfortable touch position is determined based on the operation deviation information and the current game scene; Based on the comfortable touch position and the corresponding input gesture, input operation prompts are generated, and personalized game operations input by the user based on the input operation prompts are received.
2. The game operation method as described in claim 1, characterized in that, Before the step of identifying whether the current game scene is a personalized game operation scene and simultaneously monitoring whether the user's actual game operation is the personalized game operation corresponding to the personalized game operation scene, the method further includes: Obtain the execution count of each game command in the current game scene, and determine the target game command based on the execution count; Generate input operation prompts based on the current game scene, and receive personalized game operations input by the user based on the input operation prompts; Establish the correspondence between the personalized game operations and the target game commands.
3. The game operation method as described in claim 2, characterized in that, The steps of generating input operation prompts based on the current game scene and receiving personalized game operations input by the user based on the input operation prompts include: Obtain information on user input deviations while playing preset test games; The user's comfortable touch position is determined based on the operation deviation information and the current game scene; Based on the comfortable touch position and the corresponding input gesture, input operation prompts are generated, and personalized game operations input by the user based on the input operation prompts are received.
4. The game operation method as described in claim 3, characterized in that, The step of determining the user's comfortable touch position based on the operation deviation information and the current game scene includes: The touch contact area of the user when playing the preset test game is determined based on the operation deviation information, and the touch comfort point of the user is determined based on the touch contact area; Based on the current game scene, determine the user's high-frequency effective touch area and divide the high-frequency effective touch area into multiple touch sub-areas; The frequency of occurrence of the touch comfort point in each touch sub-region is counted, and the user's touch comfort position is determined based on the frequency of occurrence.
5. The game operation method as described in claim 2, characterized in that, The step of establishing the correspondence between the personalized game operations and the target game commands includes: Retrieve the current game commands and historical game commands in the current game scene; Predict future game commands for the current game scene based on the current game commands and the historical game commands; The target game command is updated according to the future game command, and a correspondence is established between the personalized game operation and the updated target game command.
6. The game operation method as described in any one of claims 1 to 5, characterized in that, The step of monitoring whether the user's actual game operation is the personalized game operation corresponding to the personalized game operation scenario includes: The actual touch trajectory is determined based on the user's actual game operation, and the personalized touch trajectory is determined based on the personalized game operation corresponding to the personalized game operation scenario. The actual touch trajectory is scaled to ensure that the actual touch trajectory after scaling is the same size as the personalized touch trajectory, and the scaling ratio is obtained when scaling is performed; Detect the average distance between the scaled actual touch trajectory and each point in the personalized touch trajectory; Based on the scaling ratio and the average distance value, monitor whether the user's actual game operation is the personalized game operation corresponding to the personalized game operation scenario.
7. The game operation method as described in claim 6, characterized in that, The steps for detecting whether a user's actual game operation is a personalized game operation corresponding to the personalized game operation scenario based on operation similarity include: Obtain user device information and generate personalized trigger conditions based on the user device information; Based on the personalized trigger conditions and the operation similarity, it is monitored whether the user's actual game operation is the personalized game operation corresponding to the personalized game operation scenario.
8. The game operation method as described in any one of claims 1 to 5, characterized in that, The step of identifying whether the current game scene is a personalized game operation scene includes: Match the current game scene with the personalized game operation scene; Detect the percentage of current game commands in the current game scene relative to the historical game commands in the personalized game operation scene; Based on the image matching results and the stated proportion, it is determined whether the current game scene is a personalized game operation scene.
9. A game control device, characterized in that, The game operation device includes: a memory, a processor, and a game operation program stored in the memory and executable on the processor. When the game operation program is executed by the processor, it implements the game operation method as described in any one of claims 1 to 8.
10. A storage medium, characterized in that, The storage medium stores a game operation program, which, when executed by a processor, implements the game operation method as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Mobile terminal key self-adapting method, mobile terminal and readable storage medium
CN107329757A
Cloud game image processing method, device and equipment and computer readable storage medium
CN115040866A