Tablet-based game virtual control key size adjustment method and system
By detecting the size of the virtual control key in tablet games and automatically adjusting according to player selection or finger sliding distance, the operation problem caused by changes in the size of the virtual control key is solved, the gaming experience is optimized and autonomous selectivity is increased.
Patent Information
- Application Number
- CN202111349853.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-15
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2041-11-15
AI Technical Summary
When playing mobile games with a tablet, the size of the virtual control keys will increase with the change in the screen size, resulting in the problem of unchanging player operations.
A tablet-based game virtual control key size adjustment method is provided. By detecting the size of the virtual control key, if it has not been reset by the user, it enters the active adjustment module or automatic adjustment module, and automatically adjusts the size of the virtual control key according to the player's selection or finger sliding distance.
It realizes the active or automatic adjustment of the virtual control key size according to the player's choice, optimizes the game experience, and increases the player's independent selectivity.
Smart Images

Figure CN114225371B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of game control, and in particular to a method and system for adjusting the size of game virtual control keys based on a tablet. Background Art
[0002] Nowadays, mobile games can be played on tablets. However, since the screen of a tablet is larger than that of a mobile phone, after entering the game, the size of the corresponding virtual control keys will also increase, resulting in the problem of unchanged player operations.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to solve the technical problem in the prior art that when a tablet computer is used to play a mobile game, the size of the virtual control key will also become larger, resulting in the player's operation remaining unchanged.
[0005] To achieve the above object, the present invention provides a method for adjusting the size of a game virtual control key based on a tablet, comprising:
[0006] S1: Enter the game, detect the size of the virtual control key, if the size of the virtual control key has not been reset by the user, then go to step S2, otherwise continue the game; the virtual control key includes: a virtual direction control key and a virtual skill control key;
[0007] S2: Send a prompt whether to choose to actively adjust the size. If the choice is yes, go to step S3, otherwise go to step S4;
[0008] S3: Entering the virtual control key size setting interface, setting the control radius of the virtual control key, and setting and saving the new virtual control key size according to the control radius of the virtual control key;
[0009] S4: Detect whether the tablet is held by hand, if so, proceed to step S5, otherwise, determine that the virtual control key is too large and proceed to step S6;
[0010] S5: Automatically adjust the size of the virtual control key according to the player's finger sliding distance;
[0011] S6: Issue a prompt again to ask whether to actively adjust the size. If yes, return to step S3; otherwise, do not issue a prompt to ask whether to actively adjust the size before ending the game.
[0012] Preferably, the virtual direction control key is used to control the movement of the character and is located at the lower left of the tablet screen; the virtual skill control key is used to control the release of the character's skills and is located at the lower right of the tablet screen.
[0013] Preferably, step S3 specifically includes:
[0014] S31: Acquire an original control radius R1 of the virtual direction control key and an original control radius R2 of the virtual skill control key;
[0015] S32: Displaying a setting box in the area of the virtual direction control key;
[0016] S33: Draw a forward movement operation instruction in the setting box to obtain a set sliding distance L1 for the forward movement;
[0017] S34: Set the control radius of the virtual direction control key to L1, and set the control radius of the virtual skill control key to
[0018] S35: Setting and saving the size of the virtual control key as the original size
[0019] Preferably, step S5 is specifically:
[0020] S51: Setting an optimal sliding distance L2 for moving forward using the virtual direction control key;
[0021] S52: Real-time detection of the current sliding distance L of each forward movement triggered n , n represents the number of triggers;
[0022] S53: Get the average sliding distance of the current sliding distance triggered forward movement for 50 times
[0023] S54: If the average sliding distance L p If the sliding distance L2 is greater than the optimal sliding distance, the control radius and size of the virtual control key are set to the original value.
[0024] S55: Reset n to 0 and return to step S52.
[0025] Preferably, the prompt for active size adjustment in step S2 and the function of automatically adjusting the size of the virtual control key in step S5 can be manually turned off or on.
[0026] A tablet-based game virtual control key size adjustment system, comprising:
[0027] A virtual control key detection module is used to detect the size of the virtual control key. If the size of the virtual control key has not been reset by the user, the active adjustment module is entered, otherwise the game continues; the virtual control key includes: a virtual direction control key and a virtual skill control key;
[0028] The active adjustment prompt module is used to issue a prompt whether to select active size adjustment. If yes, the active setting module is entered; otherwise, the hand holding detection module is entered;
[0029] An active setting module, used to enter a virtual control key size setting interface, set a control radius of the virtual control key, and set and save a new virtual control key size according to the control radius of the virtual control key;
[0030] The hand-holding detection module detects whether the tablet is held by hand. If so, the automatic adjustment module is entered. Otherwise, the virtual control key is judged to be too large and the re-prompt module is entered.
[0031] An automatic adjustment module, used to automatically adjust the size of the virtual control key according to the sliding distance of the player's finger;
[0032] The re-prompt module is used to issue a prompt again on whether to choose to actively adjust the size. If yes, the system returns to the active setting module; otherwise, the prompt on whether to actively adjust the size will not be issued before the game ends, and the size of the virtual control key will be locked.
[0033] The present invention has the following beneficial effects:
[0034] 1. The size of the tablet's virtual control keys can be adjusted actively or automatically according to the player's choice, optimizing the player's gaming experience;
[0035] 2. The virtual control key size adjustment function can be actively turned on or off, increasing the player's autonomy and selectivity. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 is a flow chart of an embodiment method of the present invention;
[0037] Figure 2 is a schematic diagram of the virtual control keys of the present invention;
[0038] Figure 3 It is a system structure diagram of an embodiment of the present invention;
[0039] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0040] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0041] Reference Figure 1 The present invention provides a method for adjusting the size of a game virtual control key based on a tablet, comprising:
[0042] S1: Enter the game, detect the size of the virtual control key, if the size of the virtual control key has not been reset by the user, then go to step S2, otherwise continue the game; the virtual control key includes: a virtual direction control key and a virtual skill control key;
[0043] S2: Send a prompt whether to choose to actively adjust the size. If the choice is yes, go to step S3, otherwise go to step S4;
[0044] S3: Entering the virtual control key size setting interface, setting the control radius of the virtual control key, and setting and saving the new virtual control key size according to the control radius of the virtual control key;
[0045] S4: Detect whether the tablet is held by hand, if so, proceed to step S5, otherwise, determine that the virtual control key is too large and proceed to step S6;
[0046] S5: Automatically adjust the size of the virtual control key according to the player's finger sliding distance;
[0047] S6: Issue a prompt again to ask whether to actively adjust the size. If yes, return to step S3; otherwise, do not issue a prompt to ask whether to actively adjust the size before ending the game.
[0048] refer to Figure 2 In this embodiment, the virtual direction control key is used to control the movement of the character and is located at the lower left of the tablet screen; the virtual skill control key is used to control the release of the character's skills and is located at the lower right of the tablet screen;
[0049] In a specific implementation, taking the virtual direction control key moving forward as an example, when the distance the finger slides forward exceeds four fifths of the control radius of the virtual direction control key, it is determined that the character moves forward;
[0050] The effective range of the virtual skill control key is within a quarter circle drawn by the control radius of the virtual skill control key. The virtual skill control key includes: a first virtual key, a second virtual key, a third virtual key, a fourth virtual key and a fifth virtual key. Each virtual key has its own trigger radius. The virtual skill control key will not be triggered if the control radius exceeds the virtual skill control key.
[0051] In this embodiment, step S3 is specifically as follows:
[0052] S31: Acquire an original control radius R1 of the virtual direction control key and an original control radius R2 of the virtual skill control key;
[0053] S32: Displaying a setting box in the area of the virtual direction control key;
[0054] S33: Draw a forward movement operation instruction in the setting box to obtain a set sliding distance L1 for the forward movement;
[0055] S34: Set the control radius of the virtual direction control key to L1, and set the control radius of the virtual skill control key to Set the accuracy to 0.2cm, that is, |R1-L1|≤0.2cm, and then judge that the control radius and size of the virtual control key do not change;
[0056] S35: Setting and saving the size of the virtual control key as the original size
[0057] In a specific implementation, for example, when running a game on a tablet computer, the original control radius R1 of the virtual direction control key is 2 cm, and the original control radius R2 of the virtual skill control key is 2.5 cm. After the setting box is displayed, the player swipes forward 1 cm in the setting box, and then the system sets the control radius of the virtual direction control key to 1 cm and the control radius of the virtual skill control key to 1.25 cm, and sets and saves the size of the virtual control key to half of the original size.
[0058] In this embodiment, step S5 is specifically as follows:
[0059] S51: Setting an optimal sliding distance L2 for moving forward using the virtual direction control key;
[0060] S52: Real-time detection of the current sliding distance L of each forward movement triggered n , n represents the number of triggers, n is an integer greater than 0;
[0061] S53: Get the average sliding distance of the current sliding distance triggered forward movement for 50 times
[0062] S54: If the average sliding distance L p If the sliding distance L2 is greater than the optimal sliding distance, the control radius and size of the virtual control key are set to the original value. The detection accuracy is 0.2cm, that is, the average sliding distance L p If the value greater than the optimal sliding distance L2 is ≤ 0.2 cm, it is determined that the control radius and size of the virtual control key are unchanged;
[0063] S55: Reset n to 0 and return to step S52.
[0064] In a specific implementation, the optimal sliding distance L2 is preferably set to 1 cm; if the average sliding distance L p If the control radius and size of the virtual control key are set to 1.5cm, the system will automatically set the control radius and size of the virtual control key to the original value. After resetting the value of n, return to step S52 to re-detect the current sliding distance L n ; If the sliding average distance L p If it is not greater than 1cm, the control radius and size of the current virtual control key remain unchanged.
[0065] In this embodiment, the prompt for active size adjustment in step S2 and the function of automatically adjusting the size of the virtual control key in step S5 can be manually turned off or on;
[0066] When the above functions are turned off, players can still adjust the size of the virtual control keys through the adjustment function of the setting interface.
[0067] A tablet-based game virtual control key size adjustment system, comprising:
[0068] The virtual control key detection module 10 is used to detect the size of the virtual control key. If the size of the virtual control key has not been reset by the user, the active adjustment module is entered, otherwise the game continues; the virtual control key includes: a virtual direction control key and a virtual skill control key;
[0069] An active adjustment prompting module 20 is used to issue a prompt whether to select active size adjustment. If yes, the active setting module is entered; otherwise, the hand holding detection module is entered;
[0070] An active setting module 30, used to enter a virtual control key size setting interface, set a control radius of a virtual control key, and set and save a new virtual control key size according to the control radius of the virtual control key;
[0071] A hand-holding detection module 40 detects whether the tablet is held by hand, and if so, enters the automatic adjustment module; otherwise, it determines that the virtual control key is too large and enters the re-prompt module;
[0072] An automatic adjustment module 50, used for automatically adjusting the size of the virtual control key according to the sliding distance of the player's finger;
[0073] The re-prompting module 60 is used to re-issue the prompt whether to choose to actively adjust the size. If yes, it returns to the active setting module; otherwise, no prompt whether to choose to actively adjust the size is issued before ending the game, and the size of the virtual control key is locked.
[0074] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system 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, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0075] The serial numbers of the embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. In a unit claim that lists several means, several of these means may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order and these words may be interpreted as identifiers.
[0076] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for adjusting the size of a game virtual control key based on a tablet, characterized in that: include: S1: Enter the game, detect the size of the virtual control key, if the size of the virtual control key has not been reset by the user, then go to step S2, otherwise continue the game; the virtual control key includes: a virtual direction control key and a virtual skill control key; S2: Send a prompt whether to choose to actively adjust the size. If the choice is yes, go to step S3, otherwise go to step S4; S3: Entering the virtual control key size setting interface, setting the control radius of the virtual control key, and setting and saving the new virtual control key size according to the control radius of the virtual control key; S4: Detect whether the tablet is held by hand, if so, proceed to step S5, otherwise, determine that the virtual control key is too large and proceed to step S6; S5: Automatically adjust the size of the virtual control key according to the player's finger sliding distance; S6: issuing a prompt again to ask whether to actively adjust the size. If yes, return to step S3; otherwise, no prompt is issued before ending the game. Step S5 is specifically as follows: S51: Setting an optimal sliding distance L2 for moving forward using the virtual direction control key; S52: Real-time detection of the current sliding distance L of each forward movement triggered n , n represents the number of triggers; S53: Get the average sliding distance of the current sliding distance triggered forward movement for 50 times S54: If the average sliding distance L p If the sliding distance L2 is greater than the optimal sliding distance, the control radius and size of the virtual control key are set to the original value. S55: Reset n to 0 and return to step S52.
2. The tablet-based game virtual control key size adjustment method according to claim 1, characterized in that: The virtual direction control key is used to control the movement of the character and is located at the lower left of the tablet screen; the virtual skill control key is used to control the release of the character's skills and is located at the lower right of the tablet screen.
3. The method for adjusting the size of a game virtual control key based on a tablet according to claim 1, characterized in that: Step S3 is specifically as follows: S31: Acquire an original control radius R1 of the virtual direction control key and an original control radius R2 of the virtual skill control key; S32: Displaying a setting box in the area of the virtual direction control key; S33: Draw a forward movement operation instruction in the setting box to obtain a set sliding distance L1 for the forward movement; S34: Set the control radius of the virtual direction control key to L1, and set the control radius of the virtual skill control key to S35: Setting and saving the size of the virtual control key as the original size 4. The method for adjusting the size of a game virtual control key based on a tablet according to claim 1, characterized in that: The prompt for active size adjustment in step S2 and the function of automatically adjusting the size of the virtual control key in step S5 can both be turned off or on manually.
5. A tablet-based game virtual control key size adjustment system, used to implement the tablet-based game virtual control key size adjustment method according to any one of claims 1 to 4, characterized in that: include: A virtual control key detection module is used to detect the size of the virtual control key. If the size of the virtual control key has not been reset by the user, the active adjustment module is entered, otherwise the game continues; the virtual control key includes: a virtual direction control key and a virtual skill control key; The active adjustment prompt module is used to issue a prompt whether to select active size adjustment. If yes, the active setting module is entered; otherwise, the hand holding detection module is entered; An active setting module, used to enter a virtual control key size setting interface, set a control radius of the virtual control key, and set and save a new virtual control key size according to the control radius of the virtual control key; The hand-holding detection module detects whether the tablet is held by hand. If so, the automatic adjustment module is entered. Otherwise, the virtual control key is judged to be too large and the re-prompt module is entered. An automatic adjustment module, used to automatically adjust the size of the virtual control key according to the sliding distance of the player's finger; The re-prompt module is used to issue a prompt again on whether to choose to actively adjust the size. If yes, the system returns to the active setting module; otherwise, the prompt on whether to actively adjust the size will not be issued before the game ends, and the size of the virtual control key will be locked.
Citation Information
Patent Citations
Game interface display method and device, storage medium and electronic device
CN110025953A
Interactive interface display method and device
CN111198640A