Game display control method and device, program product and electronic equipment
By generating an arc-shaped control area to control the forward, backward, and steering of virtual vehicles, the problem of poor operation comfort and continuity in virtual driving games is solved. This achieves multi-dimensional, precise, and continuous control within a single touch area, improving the user's operating experience.
Patent Information
- Application Number
- CN202510813580.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-17
- Publication Date
- 2025-08-01
AI Technical Summary
In virtual driving games, the current control methods for virtual vehicles result in poor operating comfort and consistency, especially since the fixed circular touch area does not match the natural movement of the user's thumb, and the operation of the separate controls is not smooth enough.
By acquiring the target holding side, touch activity radius, and touch contact surface width of the terminal device, the display control parameters of the arc-shaped control area are determined, and an arc-shaped control area is generated to control the forward, backward, and steering of the virtual vehicle, conforming to the natural swing arc of the user's thumb, and integrating forward, backward, and steering control.
It enables multi-dimensional, precise, and continuous control within a single touch area, improving user comfort and making it suitable for single-finger operation, conforming to the user's natural movement patterns.
Smart Images

Figure CN120393390A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technologies, and in particular, to a game display control method, a game display control device, a computer program product, and an electronic device. Background Art
[0002] During the interaction process of virtual driving games, players need to complete precise direction control and real-time steering dynamic adjustment within the limited screen space of the terminal device to achieve a smooth driving experience.
[0003] In the related art, a fixed circular touch area or separate forward / backward and steering controls are usually adopted to control the virtual vehicle. However, the fixed circular touch area does not match the natural swing arc of the user's thumb, which easily causes joint stretching fatigue and poor operation comfort; for the separate forward / backward and steering controls, since the controls are independent of each other, the operation coherence is poor and it is not suitable for single-finger operation.
[0004] It should be noted that the information disclosed in the above background art section is only used to enhance the understanding of the background of the present disclosure, and thus may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention
[0005] The present disclosure provides a game display control method, a game display control device, a computer program product, and an electronic device to at least to some extent solve the problems such as poor operation comfort and coherence in controlling the forward / backward movement and steering of a virtual vehicle in the related art.
[0006] According to a first aspect of the present disclosure, there is provided a game display control method. A graphical user interface is provided through a terminal device, the graphical user interface displays at least a part of a game scene, a virtual vehicle is included in the game scene, and the virtual vehicle is controlled for forward / backward movement and steering through an arc control area. The method includes: obtaining a target holding side of the terminal device, a touch activity radius, and a touch contact surface width for the graphical user interface; determining display control parameters corresponding to the arc control area according to the target holding side, the touch activity radius, and the touch contact surface width; and controlling the display of the arc control area in the graphical user interface according to the display control parameters corresponding to the arc control area.
[0007] According to a second aspect of the present disclosure, there is provided a game display control device that provides a graphical user interface through a terminal device. The graphical user interface displays at least a part of a game scene, and the game scene includes a virtual vehicle. The virtual vehicle is controlled to move forward and backward and turn through an arc control area. The device includes: an acquisition module configured to acquire a target holding side of the terminal device, a touch activity radius, and a touch contact surface width for the graphical user interface; a determination module configured to determine display control parameters corresponding to the arc control area according to the target holding side, the touch activity radius, and the touch contact surface width; and a display module configured to control the display of the arc control area in the graphical user interface according to the display control parameters corresponding to the arc control area.
[0008] According to a third aspect of the present disclosure, there is provided a computer program product including a computer program, which when executed by a processor implements the game display control method of the first aspect and its possible implementation manners.
[0009] According to a fourth aspect of the present disclosure, there is provided an electronic device including: a processor; and a memory configured to store executable instructions of the processor; wherein the processor is configured to execute the game display control method of the first aspect and its possible implementation manners by executing the executable instructions.
[0010] The technical solution of the present disclosure has the following beneficial effects:
[0011] During the above game display control process, the target holding side of the terminal device, the touch activity radius, and the touch contact surface width for the graphical user interface are acquired; the display control parameters corresponding to the arc control area are determined according to the target holding side, the touch activity radius, and the touch contact surface width; and the display of the arc control area in the graphical user interface is controlled according to the display control parameters corresponding to the arc control area. The present disclosure generates an arc control area capable of controlling the virtual vehicle to move forward and backward and turn based on touch data matching the user's operation. Since the arc control area conforms to the natural swing arc of the user's thumb and integrates forward / backward and turning controls, it can not only achieve multi-dimensional precise and coherent control within a single touch area, but also improve the comfort of the user's operation and is suitable for single-finger operation. Description of the Drawings
[0012] Figure 1 A flowchart showing a game display control method in an exemplary embodiment;
[0013] Figure 2 A display schematic diagram of an arc control area in an exemplary embodiment;
[0014] Figure 3Schematic diagram showing the adjustment comparison of an arc control area in this exemplary embodiment;
[0015] Figure 4A Schematic diagram showing a first sliding touch operation in this exemplary embodiment;
[0016] Figure 4B Schematic diagram showing a second sliding touch operation in this exemplary embodiment;
[0017] Figure 5 Schematic diagram of the process of controlling the virtual vehicle through the arc control area in this exemplary embodiment;
[0018] Figure 6 Block diagram showing the structure of a game display control device in this exemplary embodiment;
[0019] Figure 7 An electronic device for implementing the above game display control method in this exemplary embodiment is shown. Detailed implementation mode
[0020] The exemplary embodiments of the present disclosure will be described more comprehensively below with reference to the accompanying drawings.
[0021] The accompanying drawings are schematic diagrams of the present disclosure and are not necessarily drawn to scale. Some of the block diagrams shown in the accompanying drawings may be functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in hardware modules or integrated circuits, or in networks, processors or microcontrollers. The embodiments can be implemented in multiple forms and should not be construed as limited to the examples set forth herein. The features, structures or characteristics described in the present disclosure can be combined in any suitable manner in one or more embodiments. In the following description, many specific details are provided to give a full explanation of the embodiments of the present disclosure. However, those skilled in the art should be aware that one or more specific details can be omitted when implementing the technical solutions of the present disclosure, or other methods, components, devices, steps, etc. can be used to replace one or more specific details.
[0022] In the related art, by fixing a circular touch area at the bottom of the screen and controlling the virtual vehicle according to the offset of the touch point from the center, since the fixed circular touch area does not match the natural swing arc of the user's thumb, it is easy to cause joint stretching fatigue and the operation comfort is poor; by separating the forward / backward and steering controls and controlling the virtual vehicle according to the triggered control type, since each control is independent, the operation coherence is poor and it is not suitable for single-finger operation.
[0023] In view of the above one or more problems, exemplary embodiments of the present disclosure provide a game display control method, a game display control device, a computer program product, and an electronic device.
[0024] In one embodiment of the present disclosure, the game display control method may run on a local terminal device or a server. When the game display control method runs on the server, the game display control method may be implemented and executed based on a cloud interaction system, where the cloud interaction system includes a server and a client device.
[0025] In an alternative embodiment, various cloud applications may run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the running entity of the game program and the presenting entity of the game screen are separated. The storage and running of the game display control method are completed on the cloud game server, and the role of the client device is to receive, send, and present the game screen. For example, the client device may be a display device with data transmission function close to the user side; however, the cloud game server in the cloud is responsible for game processing. When playing a game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses data such as the game screen, returns it to the client device through the network, and finally, the client device decodes and outputs the game screen.
[0026] In an alternative embodiment, taking a game as an example, the local terminal device stores a game program and is used to present the game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, conventionally, the game program is downloaded and installed on the electronic device and run. The way the local terminal device provides the graphical user interface to the player may include various methods. For example, it may be rendered and displayed on the display screen of the terminal, or provided to the player through holographic projection. For example, the local terminal device may include a display screen and a processor. The display screen is used to present the graphical user interface, and the graphical user interface includes the game screen. The processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.
[0027] In an alternative embodiment, referring to Figure 1 As shown, a flowchart of a game display control method is provided. The graphical user interface is provided by the terminal device, and at least part of the game scene is displayed on the graphical user interface. The game scene includes a virtual vehicle, and the virtual vehicle controls forward and backward movement and turning through an arc control area, specifically including the following steps S110 to step S130:
[0028] Step S110: Obtain the target holding side of the terminal device, as well as the touch activity radius and touch contact surface width for the graphical user interface.
[0029] Step S120: Determine the display control parameters corresponding to the arc control area according to the target holding side, the touch activity radius, and the touch contact surface width.
[0030] Step S130: Control the display of the arc control area in the graphical user interface according to the display control parameters corresponding to the arc control area.
[0031] Figure 1 In the method shown, based on the touch data matching the user operation, an arc control area capable of controlling the forward / backward movement and steering of the virtual vehicle is generated. Since the arc control area conforms to the natural swing arc of the user's thumb and integrates the forward / backward movement and steering controls, it can not only achieve multi-dimensional precise and coherent control within a single touch area, but also improve the comfort of the user operation and is applicable to single-finger operations.
[0032] It should be noted that the game scene in the present disclosure can be a virtual scene displayed (or provided) when the application program runs on the terminal or the server, which may include a virtual vehicle that can be controlled by the terminal device. Optionally, the virtual scene is a simulation environment of the real world, or a semi-simulation and semi-fictional virtual environment, or a purely fictional virtual environment. The present disclosure does not specifically limit this. Among them, the terminal device can be a device that needs to be held by the user, such as a mobile phone, a tablet, etc. The present disclosure does not specifically limit this.
[0033] Optionally, in the actual application process, the present disclosure can be used in a portrait game scene or a landscape game scene. For the convenience of description, the portrait game scene will be taken as an example for description below.
[0034] The following Figure 1 will specifically describe each step.
[0035] In step S110, obtain the target holding side of the terminal device, as well as the touch activity radius and touch contact surface width for the graphical user interface.
[0036] When the user plays the game, the user usually holds at least one side of the terminal device with the hand, so that the graphical user interface can interact with the user's thumb. Among them, the target holding side refers to the side of the terminal device held by the user, such as one of the left side or the right side.
[0037] Exemplarily, the target holding side of the terminal device can be obtained by reading the pre-configured holding side.
[0038] Exemplarily, the target holding side of the terminal device can be obtained by monitoring with the sensors carried by the terminal device.
[0039] When a user performs a touch interaction with a graphical user interface through the thumb, an active radius and a contact surface will be generated. Therefore, the touch active radius and the touch contact surface width for the graphical user interface can be obtained.
[0040] Optionally, the touch active radius and the touch contact surface width can be the average active radius and contact surface width calculated based on the user's historical touch operations on the graphical user interface.
[0041] Optionally, the touch active radius and the touch contact surface width can also be the touch active radius and touch contact surface width matched from the candidate active radius and candidate contact surface width according to the user's historical touch operations on the graphical user interface.
[0042] Optionally, the touch active radius and the touch contact surface width can also be the touch active radius and touch contact surface width self - selected from the candidate active radius and candidate contact surface width.
[0043] In step S120, according to the target holding side, the touch active radius, and the touch contact surface width, the display control parameters corresponding to the arc - shaped control area are determined.
[0044] Among them, the display control parameters are used to control the display form of the arc - shaped control area in the graphical user interface. Optionally, the display control parameters may include, but are not limited to, parameter information such as the center position, arc radius, and arc width.
[0045] In an alternative embodiment, the above - mentioned determining the display control parameters corresponding to the arc - shaped control area according to the target holding side, the touch active radius, and the touch contact surface width can be implemented through the following steps: determining the center position corresponding to the arc - shaped control area according to the target holding side; determining the arc radius corresponding to the arc - shaped control area according to the touch active radius; determining the arc width corresponding to the arc - shaped control area according to the touch contact surface width.
[0046] According to the target holding side, the touch active radius, and the touch contact surface width, respectively determine the center position, arc radius, and arc width corresponding to the arc - shaped control area, so that the display control parameters of the arc - shaped control area can better adapt to the user's actual physiological data, conform to the natural movement law of the thumb, break through the geometric hypothesis limitations of traditional virtual joysticks, and improve the comfort of user operations.
[0047] It should be noted that in the actual application process, the steps of determining the center position, arc radius, and arc width corresponding to the arc - shaped control area can be carried out synchronously or sequentially according to a pre - set step sequence. The present disclosure does not specifically limit this.
[0048] In an alternative embodiment, determining the center position of the arc control area corresponding to the target holding side can be achieved through the following steps: Based on the bottom edge of the graphical user interface, determine that the center position of the arc control area is located on the target holding side, so as to represent the spatial position where the base of the thumb is located through the center position, so that the arc control area can meet the swinging path of the user's thumb operation and meet the comfort of the user's operation.
[0049] In an alternative embodiment, determining the center position of the arc control area corresponding to the target holding side can be achieved through the following steps: Obtain the horizontal size, vertical size of the graphical user interface, and the horizontal ratio parameter and vertical ratio parameter matching the target holding side; Determine the horizontal position of the center according to the horizontal ratio parameter and the horizontal size of the graphical user interface; Determine the vertical position of the center according to the vertical ratio parameter and the vertical size of the graphical user interface.
[0050] Among them, the horizontal ratio parameter is used to control the horizontal position of the center position in the graphical user interface, and the vertical ratio parameter is used to control the vertical position of the center position in the graphical user interface.
[0051] Specifically, corresponding horizontal ratio parameters and vertical ratio parameters can be pre-matched for different holding sides, so that after obtaining the target holding side, the horizontal ratio parameter and vertical ratio parameter matching it can be determined according to the target holding side.
[0052] Optionally, the target holding side is one of the right side or the left side; the sum of the horizontal ratio parameter corresponding to the right side and the horizontal ratio parameter corresponding to the left side is 1; the vertical ratio parameter corresponding to the right side is the same as the vertical ratio parameter corresponding to the left side to ensure that the right side mode is mirror-symmetrical with the left side mode.
[0053] Optionally, the horizontal ratio parameter corresponding to the right side can be greater than the horizontal ratio parameter corresponding to the left side, so that the center position of the arc control area is biased towards the target holding side, and the thumb movement range is concentrated on the target holding side, thereby improving the comfort of the user's operation.
[0054] Exemplarily, when the target holding side is the right side, the horizontal ratio parameter is 88%, and the vertical ratio parameter is 12%; when the target holding side is the left side, the horizontal ratio parameter is 12%, and the vertical ratio parameter is 12%.
[0055] It should be noted that when the target holding side is the right side, if the contact point of the thumb pulp when placed naturally is at about 12% of the height of the bottom of the screen, by configuring the vertical ratio parameter to 12%, over-stretching of the thumb can be avoided; by configuring the horizontal ratio parameter to a larger value, such as 88%, the thumb movement range can be concentrated in the right half of the interface, and space can also be reserved on the left side to display game information.
[0056] Exemplarily, determining the horizontal position of the circle center according to the horizontal scale parameter and the horizontal size of the graphical user interface can be achieved by the following steps: obtaining the horizontal position of the circle center according to the product of the horizontal scale parameter and the horizontal size of the graphical user interface.
[0057] Exemplarily, determining the longitudinal position of the circle center according to the longitudinal scale parameter and the longitudinal size of the graphical user interface can be achieved by the following steps: obtaining the longitudinal position of the circle center according to the product of the longitudinal scale parameter and the longitudinal size of the graphical user interface.
[0058] The horizontal and vertical positions of the center of the circle are determined based on the longitudinal and transverse proportion parameters that match the target holding side, which can achieve dynamic positioning of the origin of the thumb base, so that the arc-shaped control area can be specifically adapted to the user's holding posture of the terminal device, rather than being fixedly displayed in a specific position of the graphical user interface, which can meet the adaptability of single-finger operation.
[0059] In an optional embodiment, the above-mentioned determination of the arc radius corresponding to the arc control area based on the touch activity radius can be achieved through the following steps: obtaining a radius correction coefficient matching the graphical user interface, and determining the arc radius corresponding to the arc control area based on the radius correction coefficient and the touch activity radius.
[0060] The radius correction coefficient refers to a correction parameter that adapts the touch active radius to the current graphical user interface size.
[0061] It should be noted that, in order to adapt to different GUI sizes, different radius correction coefficients can be pre-configured for GUIs of different sizes. The specific setting can be made by the developer based on experience, and this disclosure does not specifically limit this. For example, the radius correction coefficient can be set between 1.2 and 1.8.
[0062] For example, the arc radius corresponding to the arc control area can be determined by multiplying the radius correction coefficient by the touch active radius. For example, if the touch active radius is 18mm and the radius correction coefficient is 1.5, the corrected radius length of 27mm can be obtained by calculating 18mm x 1.5. This corrected radius length is used as the arc radius length.
[0063] By correcting the touch active radius using the radius correction coefficient, the arc radius corresponding to the arc control area can be better adapted to the interface size of the current graphical user interface.
[0064] In an alternative embodiment, the following steps may also be performed: obtaining the pixel value per unit length corresponding to the screen pixel density, and converting the arc radius corresponding to the arc control region from a length value to a pixel value according to the pixel value per unit length corresponding to the screen pixel density, so as to represent the arc radius corresponding to the arc control region in terms of pixels.
[0065] Among them, the screen pixel density (PPI) refers to the number of pixels per inch and can be used to measure the screen clarity. Exemplarily, PPI = 400, which can represent that 400 pixel points are evenly distributed on the diagonal length of each inch of the screen. The pixel value per unit length corresponding to the screen pixel density refers to the number of pixel units included in a certain length unit (such as mm). Among them, mm represents the millimeter length unit.
[0066] Exemplarily, the product of the pixel value per unit length corresponding to the screen pixel density and the length value of the arc radius corresponding to the arc control region can be used as the pixel value of the arc radius corresponding to the arc control region.
[0067] Taking the length value of the arc radius corresponding to the arc control region (i.e., the corrected radius length) as 27 mm and the pixel value per unit length corresponding to the screen pixel density as 11.8 pixels / mm as an example, the pixel value of the arc radius corresponding to the arc control region can be obtained by calculating 27 mm × 11.8 pixels / mm, which is approximately 319 pixels.
[0068] By converting the arc radius corresponding to the arc control region from a length value to a pixel value, the arc control region can be accurately laid out in the graphical user interface.
[0069] In an alternative embodiment, the above determining the arc width corresponding to the arc control region according to the width of the touch contact surface includes: obtaining a preset touch safety factor, and determining the arc width corresponding to the arc control region according to the preset touch safety factor and the width of the touch contact surface.
[0070] Among them, the preset touch safety factor refers to a control factor that enables the width of the touch contact surface to be compatible with the possible touch coverage range of the user, so as to enhance the touch fault tolerance. Specifically, it can be set by the developer according to experience, and the present disclosure does not make specific limitations thereon.
[0071] Exemplarily, the product of the preset touch safety factor and the width of the touch contact surface can be preset to determine the arc width corresponding to the arc control region. Taking the width of the touch contact surface as 22 mm and the preset touch safety factor as 1.3 as an example, the expanded contact surface width of 28.6 mm can be obtained by calculating 22 mm × 1.3, and the expanded width of 28.6 mm can be used as the arc width.
[0072] By presetting a touch safety factor, the arc width corresponding to the arc control area can be made to accommodate the instability of touch operations, enhancing touch tolerance.
[0073] In an alternative embodiment, the following steps may also be performed: Obtain the pixel value per unit length corresponding to the screen pixel density. According to the pixel value per unit length corresponding to the screen pixel density, convert the arc width corresponding to the arc control area from a length value to a pixel value, and represent the arc width corresponding to the arc control area in terms of pixels.
[0074] Exemplarily, the pixel value per unit length corresponding to the screen pixel density may be multiplied by the arc width corresponding to the arc control area to convert the arc width from a length value to a pixel value.
[0075] Taking the arc width corresponding to the arc control area (i.e., the widened contact surface width) as 28.6 mm and the pixel value per unit length corresponding to the screen pixel density as 11.8 pixels / mm as an example, the pixel value of the arc width corresponding to the arc control area can be obtained by calculating 28.6 mm × 11.8 pixels / mm, which is approximately 338 pixels.
[0076] By converting the arc width corresponding to the arc control area from a length value to a pixel value, the arc control area can be accurately laid out in the graphical user interface.
[0077] In step S130, according to the display control parameters corresponding to the arc control area, control the display of the arc control area in the graphical user interface.
[0078] Exemplarily, as Figure 2 shown, taking the target holding side as the right side as an example, a display schematic diagram of an arc control area is provided. The concave surface of the arc control area 201 faces the target holding side. Through this arc control area 201, the virtual vehicle 202 in the game scene can be conveniently controlled by a single finger to perform forward / backward and turning actions.
[0079] In an alternative embodiment, the following steps may also be performed: In response to the touch pressure value satisfying a specific condition, control the adjustment of the display control parameters corresponding to the arc control area.
[0080] Optionally, in response to the touch pressure value being greater than a preset pressure value, control the adjustment of the display control parameters corresponding to the arc control area. Herein, the preset pressure value refers to a threshold value preset for adjusting the display control parameters of the arc control area, which can be specifically set by developers according to experience, and the present disclosure does not specifically limit this. Exemplarily, the specific condition may be set as the touch pressure value being greater than 1.2 Newtons. Specifically, in actual application, the user can trigger the adjustment logic of the display control parameters corresponding to the arc control area by pressing hard on the graphical user interface.
[0081] Optionally, one or more of the center position, arc radius, and arc width corresponding to the arc control area can be controllably adjusted.
[0082] By controlling and adjusting the display control parameters corresponding to the arc control area in response to the touch pressure value satisfying a specific condition, the user can dynamically fine-tune the display state of the arc control area to meet different touch operation requirements of the user.
[0083] In an optional implementation manner, the above-mentioned controlling and adjusting the display control parameters corresponding to the arc control area can be achieved through the following steps: controlling and adjusting the vertical position of the center of the arc control area according to a preset downward adjustment ratio; or controlling and adjusting the arc radius corresponding to the arc control area according to a preset radius expansion parameter; or controlling and adjusting the arc width corresponding to the arc control area according to a preset width expansion parameter.
[0084] Among them, the preset downward adjustment ratio is the ratio of the downward movement of the center position set in advance. Exemplarily, the vertical dimension of the graphical user interface can be multiplied by the preset downward adjustment ratio, such as 5%, to obtain the downward movement amount of the center in the vertical position, and the center position can be moved downward according to the downward movement amount of the center in the vertical position.
[0085] Among them, the preset radius expansion parameter is the ratio of the expansion of the arc radius set in advance. Exemplarily, the arc radius can be multiplied by the preset radius expansion parameter, such as 115%, to obtain the expanded arc radius.
[0086] Among them, the preset width expansion parameter is the ratio of the widening of the arc width set in advance. Exemplarily, the arc width can be multiplied by the preset width expansion parameter, such as 110%, to obtain the expanded arc width.
[0087] Exemplarily, as Figure 3 shown, taking the target holding side as the right side as an example, a schematic diagram of the adjustment comparison of the arc control area is provided. Compared with the control area 302 before adjustment, the center position of the adjusted arc control area 301 moves downward, the arc radius increases, and the arc width widens.
[0088] By controlling the downward movement of the center position, expanding the arc radius, and widening the arc width, the operation fault tolerance of the arc control area can be dynamically increased according to user needs.
[0089] In an alternative embodiment, the following steps may also be performed: in response to a first sliding touch operation, control the virtual vehicle to perform forward and backward movements according to the sliding direction of the first sliding touch operation; the first sliding touch operation is a sliding touch operation along the arc control area; in response to a second sliding touch operation, control the virtual vehicle to perform a steering action according to the sliding direction of the second sliding touch operation, and the second sliding touch operation is a sliding touch operation perpendicular to the arc control area.
[0090] Exemplarily, as Figure 4A shown, a schematic diagram of the first sliding touch operation is provided. Taking the target holding side as the right side as an example, the first sliding touch operation 401 can slide along the arc control area towards both ends of the area to control the virtual vehicle 202 to perform forward and backward movements. Specifically, taking the target holding side as the right side as an example, when the first sliding touch operation is an operation of sliding left and down, the virtual vehicle can be controlled to perform a backward movement; when the first sliding operation is an operation of sliding right and up, the virtual vehicle can be controlled to perform a forward movement, so that the thumb operation trajectory more conforms to the arc movement law and user operation habits.
[0091] Exemplarily, as Figure 4B shown, a schematic diagram of the second sliding touch operation is provided. Taking the target holding side as the right side as an example, the second sliding touch operation 402 can slide along the normal of the arc control area to control the virtual vehicle 202 to perform a steering action. Specifically, taking the target holding side as the right side as an example, when the second sliding touch operation is an operation of sliding left and up, the virtual vehicle can be controlled to perform a left turn action; when the second sliding touch operation is an operation of sliding right and down, the virtual vehicle can be controlled to perform a right turn action, taking into account the user's steering operation habits.
[0092] It should be noted that when the target holding side is the left side, the display state of the arc control area is mirror-symmetrical to the right side mode. Optionally, taking the target holding side as the left side as an example, when the first sliding touch operation along the arc control area is an operation of sliding left and up, the virtual vehicle can be controlled to perform a forward movement; when the first sliding operation along the arc control area is an operation of sliding right and down, the virtual vehicle can be controlled to perform a backward movement, so that the thumb operation trajectory more conforms to the arc movement law and user operation habits. When the second sliding touch operation perpendicular to the arc control area is an operation of sliding right and up, the virtual vehicle can be controlled to perform a right turn action; when the second sliding touch operation along the perpendicular to the arc control area is an operation of sliding left and down, the virtual vehicle can be controlled to perform a left turn action, taking into account the user's steering operation habits.
[0093] By integrating forward and backward control and steering control within the arc control area that conforms to the natural movement law of the thumb, multi-dimensional precise control within a single touch area can be achieved, improving the user operation comfort.
[0094] Optionally, the central angle corresponding to the arc control area can be configured to a value that conforms to the thumb sliding angle range, such as 90°, to improve the comfort of user operation. It should be noted that in the actual application process, this central angle can be adaptively micro-adjusted according to actual needs, and the present disclosure does not make specific limitations thereon.
[0095] Optionally, the arc control area can be displayed in a semi-transparent state to provide visual guidance for user operation while not obscuring the scene content.
[0096] In an alternative embodiment, the following steps can also be performed: Determine the forward and backward speed of the virtual vehicle according to the touch offset of the first sliding touch operation, and the forward and backward speed is positively correlated with the touch offset of the first sliding touch operation.
[0097] By mapping the touch offset of the first sliding touch operation to the driving speed of the virtual vehicle, the arc control area can not only control the forward and backward movement of the vehicle but also flexibly control the driving speed of the virtual vehicle.
[0098] In an alternative embodiment, the following steps can also be performed: Determine the steering angle of the virtual vehicle according to the touch offset of the second sliding touch operation, and the steering angle is positively correlated with the touch offset of the second sliding touch operation.
[0099] By mapping the touch offset of the second sliding touch operation to the steering angle of the virtual vehicle, the arc control area can not only control the steering of the vehicle but also flexibly control the turning amplitude.
[0100] In an alternative embodiment, the above-mentioned determining the steering angle of the virtual vehicle according to the touch offset of the second sliding touch operation can be implemented by the following steps: Determine the steering angle corresponding to the unit offset according to the current moving speed of the virtual vehicle; the steering angle corresponding to the unit offset is positively correlated with the moving speed; Determine the steering angle of the virtual vehicle according to the touch offset of the second sliding touch operation and the steering angle corresponding to the unit offset.
[0101] Among them, the steering angle corresponding to the unit offset can be used to control the steering accuracy. The smaller the value, the higher the control accuracy, and the larger the value, the lower the control accuracy. For example, 3° / mm, that is, a 1mm offset corresponds to a 3° steering angle.
[0102] Optionally, a positive correlation mapping relationship can be established in advance between the vehicle moving speed and the steering angle corresponding to the unit offset, so as to determine the steering angle corresponding to the unit offset according to the current moving speed of the virtual vehicle.
[0103] Exemplarily, if the current moving speed of the virtual vehicle is less than the first preset speed (e.g., 100 km / h) and greater than the second preset speed (e.g., 50 km / h), the steering angle corresponding to the preset unit offset can be adopted, e.g., 3° / mm; if the current moving speed of the virtual vehicle is greater than the first preset speed (e.g., 100 km / h), it can be considered that the virtual vehicle is currently in the high-speed mode, and based on the preset angle increment, the steering angle corresponding to the preset unit offset can be increased, e.g., increased to 4° / mm, to enhance the response speed; if the current moving speed of the virtual vehicle is less than the second preset speed (e.g., 50 km / h), it can be considered that the virtual vehicle is currently in the low-speed mode, and based on the preset angle decrement, the steering angle corresponding to the preset unit offset can be decreased, e.g., decreased to 2° / mm, to improve the steering accuracy. Among them, the first preset speed is greater than the second preset speed.
[0104] After determining the steering angle corresponding to the unit offset, the steering angle corresponding to the virtual vehicle can be obtained by calculating the product of the touch offset of the second sliding touch operation and the steering angle corresponding to the unit offset.
[0105] Since the moving speed of the virtual vehicle is controllable by the first sliding control operation, determining the steering angle corresponding to the unit offset based on the current moving speed of the virtual vehicle makes the steering accuracy also flexibly controllable, and can meet the different control needs of users to a certain extent.
[0106] In an alternative embodiment, the following steps can also be performed: in response to the first sliding touch operation, control the terminal device to vibrate in the first vibration mode; in response to the second sliding touch operation, control the terminal device to vibrate in the second vibration mode.
[0107] Among them, the first vibration mode and the second vibration mode are used to provide haptic feedback to the user.
[0108] Exemplarily, the first vibration mode can be a short vibration with a frequency of 80 Hz, and the short vibration can last for 40 ms.
[0109] Exemplarily, the second vibration mode can be a long vibration with a frequency of 120 HZ, and the long vibration can last for 80 ms.
[0110] Through different vibration modes, the type of the current sliding touch operation can be prompted to the user to provide haptic feedback to the user and reduce user misoperations.
[0111] As Figure 5 shown, a schematic flowchart of controlling the driving of a virtual vehicle through an arc control area is provided, which specifically may include the following steps:
[0112] Step S501: Obtain the target holding side for the terminal device, as well as the touch activity radius and touch contact surface width for the graphical user interface.
[0113] Step S502: Determine the center position, arc radius, and arc width of the arc control area according to the target holding side, touch activity radius, and touch contact surface width.
[0114] Step S503: Control the display of the arc control area in the graphical user interface according to the center position, arc radius, and arc width of the arc control area.
[0115] Step S504: In response to the first sliding touch operation, control the virtual vehicle to perform forward and backward movements according to the sliding direction of the first sliding touch operation; the first sliding touch operation is a sliding touch operation along the arc control area.
[0116] Step S505: In response to the second sliding touch operation, control the virtual vehicle to perform a steering action according to the sliding direction of the second sliding touch operation; the second sliding touch operation is a sliding touch operation along a direction perpendicular to the arc control area.
[0117] Figure 5 In the steps shown, by establishing an arc control area with an arc trajectory that conforms to the natural movement law of the thumb to control the forward and backward movement and steering of the virtual vehicle, the comfort of the user's single-finger operation can be improved to a certain extent.
[0118] An exemplary embodiment of the present disclosure also provides a game display control device. A graphical user interface is provided through the terminal device, and at least part of the game scene is displayed on the graphical user interface. The game scene includes a virtual vehicle, and the virtual vehicle is controlled to move forward and backward and turn through the arc control area. Referring Figure 6 as shown, the game display control device 600 may include the following program modules:
[0119] An acquisition module 610, configured to obtain the target holding side for the terminal device, as well as the touch activity radius and touch contact surface width for the graphical user interface.
[0120] A determination module 620, configured to determine the display control parameters corresponding to the arc control area according to the target holding side, touch activity radius, and touch contact surface width.
[0121] A display module 630, configured to control the display of the arc control area in the graphical user interface according to the display control parameters corresponding to the arc control area.
[0122] In an alternative embodiment, based on the foregoing solution, the display control parameters include the center position, arc radius, and arc width. The determination module 620 may include: a center position determination module, configured to determine the center position corresponding to the arc control area according to the target holding side; an arc radius determination module, configured to determine the arc radius corresponding to the arc control area according to the touch activity radius; and an arc width determination module, configured to determine the arc width corresponding to the arc control area according to the touch contact surface width.
[0123] In an alternative embodiment, based on the foregoing solution, the center position determination module may be configured to: obtain the horizontal dimension and vertical dimension of the graphical user interface, as well as the horizontal ratio parameter and vertical ratio parameter matching the target holding side; determine the horizontal position of the center according to the horizontal ratio parameter and the horizontal dimension of the graphical user interface; and determine the vertical position of the center according to the vertical ratio parameter and the vertical dimension of the graphical user interface.
[0124] In an alternative embodiment, based on the foregoing solution, the target holding side is one of the right side or the left side; the sum of the horizontal ratio parameter corresponding to the right side and the horizontal ratio parameter corresponding to the left side is 1; and the vertical ratio parameter corresponding to the right side is the same as the vertical ratio parameter corresponding to the left side.
[0125] In an alternative embodiment, based on the foregoing solution, the horizontal ratio parameter corresponding to the right side is greater than the horizontal ratio parameter corresponding to the left side, so that the center position corresponding to the arc control area is biased towards the target holding side.
[0126] In an alternative embodiment, based on the foregoing solution, the arc radius determination module may be configured to: obtain a radius correction coefficient matching the graphical user interface, and determine the arc radius corresponding to the arc control area according to the radius correction coefficient and the touch activity radius.
[0127] In an alternative embodiment, based on the foregoing solution, the game display control device 600 may include: a first unit conversion module, configured to obtain the pixel value per unit length corresponding to the screen pixel density, and convert the arc radius corresponding to the arc control area from a length value to a pixel value according to the pixel value per unit length corresponding to the screen pixel density, so as to represent the arc radius corresponding to the arc control area in pixels.
[0128] In an alternative embodiment, based on the foregoing solution, the arc width determination module may be configured to: obtain a preset touch safety factor, and determine the arc width corresponding to the arc control area according to the preset touch safety factor and the touch contact surface width.
[0129] In an alternative embodiment, based on the foregoing solution, the game display control device 600 may include: a second unit conversion module, configured to obtain the pixel value per unit length corresponding to the screen pixel density, and convert the arc width corresponding to the arc control area from a length value to a pixel value according to the pixel value per unit length corresponding to the screen pixel density, so as to represent the arc width corresponding to the arc control area in pixels.
[0130] In an alternative embodiment, based on the foregoing solution, the game display control device 600 may include: a display parameter adjustment module, configured to control and adjust the display control parameters corresponding to the arc control area in response to the touch pressure value satisfying a specific condition.
[0131] In an alternative embodiment, based on the foregoing solution, the display parameter adjustment module may be configured to: control and adjust the longitudinal position of the center of the circle corresponding to the arc control area according to a preset downward adjustment ratio; or control and adjust the arc radius corresponding to the arc control area according to a preset radius expansion parameter; or control and adjust the arc width corresponding to the arc control area according to a preset width expansion parameter.
[0132] In an alternative embodiment, based on the foregoing solution, the game display control device 600 may include: a vehicle forward and backward control module, configured to control a virtual vehicle to perform forward and backward actions according to the sliding direction of a first sliding touch operation in response to the first sliding touch operation; the first sliding touch operation is a sliding touch operation along the arc control area; a vehicle steering control module, configured to control the virtual vehicle to perform a steering action according to the sliding direction of a second sliding touch operation in response to the second sliding touch operation, and the second sliding touch operation is a sliding touch operation perpendicular to the arc control area.
[0133] In an alternative embodiment, based on the foregoing solution, the game display control device 600 may include: a forward and backward speed determination module, configured to determine the forward and backward speed corresponding to the virtual vehicle according to the touch offset of the first sliding touch operation, and the forward and backward speed is positively correlated with the touch offset of the first sliding touch operation.
[0134] In an alternative embodiment, based on the foregoing solution, the game display control device 600 may include: a steering angle determination module, configured to determine the steering angle corresponding to the virtual vehicle according to the touch offset of the second sliding touch operation, and the steering angle is positively correlated with the touch offset of the second sliding touch operation.
[0135] In an alternative embodiment, based on the foregoing solution, the steering angle determination module may be configured to: determine the steering angle corresponding to a unit offset according to the current moving speed of the virtual vehicle; the steering angle corresponding to the unit offset is positively correlated with the moving speed; and determine the steering angle corresponding to the virtual vehicle according to the touch offset of the second sliding touch operation and the steering angle corresponding to the unit offset.
[0136] In an alternative embodiment, based on the foregoing solution, the game display control device 600 may include: a first vibration control module configured to control the terminal device to vibrate in a first vibration mode in response to a first sliding touch operation; and a second vibration control module configured to control the terminal device to vibrate in a second vibration mode in response to a second sliding touch operation.
[0137] The specific details of each part of the above device have been described in detail in the embodiments of the method part. The details not disclosed can be referred to the embodiments of the method part, and thus will not be repeated.
[0138] An exemplary embodiment of the present disclosure further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the above game display control method is implemented.
[0139] In one embodiment, the computer program product may be a tangible product including a computer program, such as a computer-readable storage medium storing the computer program. The readable storage medium may be a storage medium based on signals such as electricity, magnetism, light, electromagnetic, infrared, etc., including but not limited to: random access memory (RAM), read-only memory (ROM), magnetic tape, floppy disk, flash memory (Flash), mechanical hard disk (HDD), solid state drive (SSD), etc. Exemplarily, the computer program product may be implemented as a non-volatile storage medium storing the computer program, such as read-only memory, Nand Flash, etc.
[0140] In one embodiment, the computer program product may be an intangible product including a computer program. Exemplarily, the computer program product may be implemented as a virtual digital product, such as an executable file storing the computer program, an installation package and other digital files.
[0141] The code of a computer program can be written in one or more programming languages. Examples of programming languages include C, Java, C++, etc. The program code can be executed entirely on the user's computing device, or partially on the user's computing device, or as an independent software package, or partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device can be connected to the user's computing device through any type of network, such as a local area network (LAN), wide area network (WAN), etc., or it can be connected to an external computing device (e.g., through an Internet connection provided by an operator).
[0142] A computer program can be carried or transmitted by signals such as electricity, magnetism, light, electromagnetic, infrared, etc. An electronic device can convert the signal carrying the computer program into a digital signal and then run the computer program. When the computer program runs on the electronic device, its code is used to cause the electronic device to execute (more specifically, to cause the processor of the electronic device to execute) the method steps of various exemplary embodiments of the present disclosure. Exemplarily, the following steps may be included:
[0143] Obtain the target holding side for the terminal device, the touch activity radius, and the touch contact surface width for the graphical user interface;
[0144] Determine the display control parameters corresponding to the arc control area according to the target holding side, the touch activity radius, and the touch contact surface width;
[0145] Control the display of the arc control area in the graphical user interface according to the display control parameters corresponding to the arc control area.
[0146] In an alternative embodiment, based on the foregoing solution, the above display control parameters include the center position, arc radius, and arc width. To determine the display control parameters corresponding to the arc control area according to the target holding side, the touch activity radius, and the touch contact surface width, the following steps can be implemented: Determine the center position corresponding to the arc control area according to the target holding side; determine the arc radius corresponding to the arc control area according to the touch activity radius; determine the arc width corresponding to the arc control area according to the touch contact surface width.
[0147] In an alternative embodiment, based on the foregoing solution, to determine the center position corresponding to the arc control area according to the target holding side, the following steps can be implemented: Obtain the horizontal size, vertical size of the graphical user interface, and the horizontal ratio parameter and vertical ratio parameter matching the target holding side; determine the horizontal position of the center according to the horizontal ratio parameter and the horizontal size of the graphical user interface; determine the vertical position of the center according to the vertical ratio parameter and the vertical size of the graphical user interface.
[0148] In an alternative embodiment, based on the foregoing solution, the above-mentioned target holding side is one of the right side or the left side; the sum of the horizontal ratio parameters corresponding to the right side and the horizontal ratio parameters corresponding to the left side is 1; the vertical ratio parameters corresponding to the right side are the same as the vertical ratio parameters corresponding to the left side.
[0149] In an alternative embodiment, based on the foregoing solution, the horizontal ratio parameter corresponding to the right side is greater than the horizontal ratio parameter corresponding to the left side, so that the center position of the arc control area is biased towards the target holding side.
[0150] In an alternative embodiment, based on the foregoing solution, to determine the arc radius corresponding to the arc control area according to the touch activity radius, the following steps can be implemented: obtain a radius correction coefficient matching the graphical user interface, and determine the arc radius corresponding to the arc control area according to the radius correction coefficient and the touch activity radius.
[0151] In an alternative embodiment, based on the foregoing solution, the following steps can also be performed: obtain the pixel value per unit length corresponding to the screen pixel density, and convert the arc radius corresponding to the arc control area from a length value to a pixel value according to the pixel value per unit length corresponding to the screen pixel density, and represent the arc radius corresponding to the arc control area in pixels.
[0152] In an alternative embodiment, based on the foregoing solution, to determine the arc width corresponding to the arc control area according to the touch contact surface width, the following steps can be implemented: obtain a preset touch safety factor, and determine the arc width corresponding to the arc control area according to the preset touch safety factor and the touch contact surface width.
[0153] In an alternative embodiment, based on the foregoing solution, the following steps can also be performed: obtain the pixel value per unit length corresponding to the screen pixel density, and convert the arc width corresponding to the arc control area from a length value to a pixel value according to the pixel value per unit length corresponding to the screen pixel density, and represent the arc width corresponding to the arc control area in pixels.
[0154] In an alternative embodiment, based on the foregoing solution, the following steps can also be performed: in response to the touch pressure value satisfying a specific condition, control and adjust the display control parameters corresponding to the arc control area.
[0155] In an alternative embodiment, based on the foregoing solution, the display control parameters corresponding to the arc control area are adjusted as follows: according to a preset downward adjustment ratio, the longitudinal position of the center of the circle corresponding to the arc control area is controlled and adjusted; or according to a preset radius expansion parameter, the arc radius corresponding to the arc control area is controlled and adjusted; or according to a preset width expansion parameter, the arc width corresponding to the arc control area is controlled and adjusted.
[0156] In an alternative embodiment, based on the foregoing solution, the following steps may also be performed: in response to a first sliding touch operation, according to the sliding direction of the first sliding touch operation, the virtual vehicle is controlled to perform forward and backward movements; the first sliding touch operation is a sliding touch operation along the arc control area; in response to a second sliding touch operation, according to the sliding direction of the second sliding touch operation, the virtual vehicle is controlled to perform a steering action, and the second sliding touch operation is a sliding touch operation perpendicular to the arc control area.
[0157] In an alternative embodiment, based on the foregoing solution, the following steps may also be performed: according to the touch offset of the first sliding touch operation, the forward and backward speed corresponding to the virtual vehicle is determined, and the forward and backward speed is positively correlated with the touch offset of the first sliding touch operation.
[0158] In an alternative embodiment, based on the foregoing solution, the following steps may also be performed: according to the touch offset of the second sliding touch operation, the steering angle corresponding to the virtual vehicle is determined, and the steering angle is positively correlated with the touch offset of the second sliding touch operation.
[0159] In an alternative embodiment, based on the foregoing solution, the following steps may be used to determine the steering angle corresponding to the virtual vehicle according to the touch offset of the second sliding touch operation: according to the current moving speed of the virtual vehicle, the steering angle corresponding to a unit offset is determined; the steering angle corresponding to a unit offset is positively correlated with the moving speed; according to the touch offset of the second sliding touch operation and the steering angle corresponding to a unit offset, the steering angle corresponding to the virtual vehicle is determined.
[0160] In an alternative embodiment, based on the foregoing solution, the following steps may also be performed: in response to the first sliding touch operation, the terminal device is controlled to vibrate in a first vibration mode; in response to the second sliding touch operation, the terminal device is controlled to vibrate in a second vibration mode.
[0161] In the above steps, an arc control area capable of controlling the forward and backward movement and steering of the virtual vehicle is generated based on touch data matching the user's operation. Since the arc control area conforms to the natural swing arc of the user's thumb and integrates forward and backward and steering controls, it can not only achieve multi-dimensional precise and coherent control within a single touch area, but also improve the comfort of the user's operation and is suitable for single-finger operation.
[0162] Exemplary embodiments of the present disclosure also provide an electronic device capable of implementing the above game display control method. The electronic device may include a processor and a memory. The memory stores executable instructions of the processor, which may be program code. The processor executes the method in this exemplary embodiment by executing the executable instructions. In addition, the electronic device may further include a display for displaying a graphical user interface.
[0163] Reference is made below Figure 7 , and the electronic device is exemplarily described in the form of a general computing device. It should be understood that Figure 7 the electronic device 700 shown is merely an example and should not impose limitations on the functions and usage scope of the embodiments of the present disclosure.
[0164] As Figure 7 shown, the electronic device 700 may include: a processor 710, a memory 720, a bus 730, an I / O (input / output) interface 740, a network adapter 750, and a display 760.
[0165] The memory 720 may include volatile memory, such as RAM 721 and a cache unit 722, and may also include non-volatile memory, such as ROM 723. The memory 720 may further include one or more program modules 724. Such program modules 724 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include the implementation of a network environment. For example, the program module 724 may include each module in the above device.
[0166] The processor 710 may include one or more processing units. For example: the processor 710 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor, and / or an NPU (Neural-Network Processing Unit), etc.
[0167] The processor 710 may be used to execute the executable instructions stored in the memory 720, such as executing any one or more method steps in this exemplary embodiment.
[0168] Exemplarily, the processor 710 may execute the following steps:
[0169] Obtain the target holding side for the terminal device, as well as the touch activity radius and touch contact surface width for the graphical user interface;
[0170] Determine the display control parameters corresponding to the arc control area according to the target holding side, touch activity radius, and touch contact surface width;
[0171] Control the display of the arc control area in the graphical user interface according to the display control parameters corresponding to the arc control area.
[0172] In an alternative embodiment, based on the foregoing solution, the display control parameters include the center position, arc radius, and arc width. Determining the display control parameters corresponding to the arc control area according to the target holding side, touch activity radius, and touch contact surface width can be achieved through the following steps: Determine the center position corresponding to the arc control area according to the target holding side; Determine the arc radius corresponding to the arc control area according to the touch activity radius; Determine the arc width corresponding to the arc control area according to the touch contact surface width.
[0173] In an alternative embodiment, based on the foregoing solution, determining the center position corresponding to the arc control area according to the target holding side can be achieved through the following steps: Obtain the horizontal size, vertical size of the graphical user interface, and the horizontal ratio parameter and vertical ratio parameter matching the target holding side; Determine the horizontal position of the center according to the horizontal ratio parameter and the horizontal size of the graphical user interface; Determine the vertical position of the center according to the vertical ratio parameter and the vertical size of the graphical user interface.
[0174] In an alternative embodiment, based on the foregoing solution, the target holding side is one of the right side or the left side; the sum of the horizontal ratio parameter corresponding to the right side and the horizontal ratio parameter corresponding to the left side is 1; the vertical ratio parameter corresponding to the right side is the same as the vertical ratio parameter corresponding to the left side.
[0175] In an alternative embodiment, based on the foregoing solution, the horizontal ratio parameter corresponding to the right side is greater than the horizontal ratio parameter corresponding to the left side, so that the center position corresponding to the arc control area is biased towards the target holding side.
[0176] In an alternative embodiment, based on the foregoing solution, determining the arc radius corresponding to the arc control area according to the touch activity radius can be achieved through the following steps: Obtain the radius correction coefficient matching the graphical user interface, and determine the arc radius corresponding to the arc control area according to the radius correction coefficient and the touch activity radius.
[0177] In an alternative embodiment, based on the foregoing solution, the following steps may further be performed: obtaining the pixel value per unit length corresponding to the screen pixel density, and converting the arc radius corresponding to the arc control area from a length value to a pixel value according to the pixel value per unit length corresponding to the screen pixel density, so as to represent the arc radius corresponding to the arc control area in terms of pixels.
[0178] In an alternative embodiment, based on the foregoing solution, the above step of determining the arc width corresponding to the arc control area according to the width of the touch contact surface may be implemented by the following steps: obtaining a preset touch safety factor, and determining the arc width corresponding to the arc control area according to the preset touch safety factor and the width of the touch contact surface.
[0179] In an alternative embodiment, based on the foregoing solution, the following steps may further be performed: obtaining the pixel value per unit length corresponding to the screen pixel density, and converting the arc width corresponding to the arc control area from a length value to a pixel value according to the pixel value per unit length corresponding to the screen pixel density, so as to represent the arc width corresponding to the arc control area in terms of pixels.
[0180] In an alternative embodiment, based on the foregoing solution, the following steps may further be performed: in response to the touch pressure value satisfying a specific condition, controlling and adjusting the display control parameters corresponding to the arc control area.
[0181] In an alternative embodiment, based on the foregoing solution, the above step of controlling and adjusting the display control parameters corresponding to the arc control area may be implemented by the following steps: controlling and adjusting the longitudinal position of the center of the circle corresponding to the arc control area according to a preset downward adjustment ratio; or controlling and adjusting the arc radius corresponding to the arc control area according to a preset radius expansion parameter; or controlling and adjusting the arc width corresponding to the arc control area according to a preset width expansion parameter.
[0182] In an alternative embodiment, based on the foregoing solution, the following steps may further be performed: in response to a first sliding touch operation, controlling the virtual vehicle to perform a forward and backward movement according to the sliding direction of the first sliding touch operation; the first sliding touch operation is a sliding touch operation along the arc control area; in response to a second sliding touch operation, controlling the virtual vehicle to perform a steering movement according to the sliding direction of the second sliding touch operation, and the second sliding touch operation is a sliding touch operation perpendicular to the arc control area.
[0183] In an alternative embodiment, based on the foregoing solution, the following steps may further be performed: determining the forward and backward speed corresponding to the virtual vehicle according to the touch offset of the first sliding touch operation, and the forward and backward speed is positively correlated with the touch offset of the first sliding touch operation.
[0184] In an alternative embodiment, based on the foregoing solution, the following steps may further be performed: determining a steering angle corresponding to the virtual vehicle according to the touch offset of the second sliding touch operation, where the steering angle is positively correlated with the touch offset of the second sliding touch operation.
[0185] In an alternative embodiment, based on the foregoing solution, the determination of the steering angle corresponding to the virtual vehicle according to the touch offset of the second sliding touch operation may be implemented through the following steps: determining the steering angle corresponding to a unit offset according to the current moving speed of the virtual vehicle; the steering angle corresponding to the unit offset is positively correlated with the moving speed; determining the steering angle corresponding to the virtual vehicle according to the touch offset of the second sliding touch operation and the steering angle corresponding to the unit offset.
[0186] In an alternative embodiment, based on the foregoing solution, the following steps may further be performed: in response to the first sliding touch operation, controlling the terminal device to vibrate in a first vibration mode; in response to the second sliding touch operation, controlling the terminal device to vibrate in a second vibration mode.
[0187] In the above steps, an arc control area capable of controlling the forward and backward movement and steering of the virtual vehicle is generated based on touch data matching the user operation. Since the arc control area conforms to the natural swing arc of the user's thumb and integrates forward and backward movement and steering control, it can not only achieve multi-dimensional precise and coherent control within a single touch area, but also improve the comfort of the user operation and is suitable for single-finger operation.
[0188] The bus 730 is used to implement connections between different components of the electronic device 700 and may include a data bus, an address bus, and a control bus.
[0189] The electronic device 700 may communicate with one or more external devices 800 (such as a keyboard, a mouse, an external controller, etc.) through the I / O interface 740.
[0190] The electronic device 700 may communicate with one or more networks through the network adapter 750. For example, the network adapter 750 may provide mobile communication solutions such as 3G / 4G / 5G, or provide wireless communication solutions such as wireless local area network, Bluetooth, and near field communication. The network adapter 750 may communicate with other modules of the electronic device 700 through the bus 730.
[0191] The electronic device 700 may display a graphical user interface, etc., through the display 760.
[0192] Although Figure 7Although not shown in the figure, other hardware and / or software modules may also be provided in the electronic device 700, including but not limited to: a display, microcode, device drivers, redundant processors, external disk drive arrays, RAID (Redundant ArraYs of Independent Disks) systems, tape drives, and data backup storage systems, etc.
[0193] It should be noted that although several modules or units of the devices for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0194] Those skilled in the art can understand that various aspects of the present disclosure can be implemented as a system, a method, or a program product. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to as "circuits", "modules", or "systems" here. After considering the specification and practicing the invention disclosed herein, those skilled in the art will readily think of other embodiments of the present disclosure. This application aims to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include well-known common general knowledge or conventional technical means in the technical field not disclosed in the present disclosure. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the claims.
[0195] It should be understood that the present disclosure is not limited to the exact structures already described and shown in the figures, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only defined by the appended claims.
Claims
1. A game display control method, characterized in that, Providing a graphical user interface through a terminal device, the graphical user interface displaying at least a part of a game scene, the game scene including a virtual vehicle, and the virtual vehicle being controlled to move forward and backward and turn through an arc control area, the method comprising: Obtaining a target holding side for the terminal device, a touch activity radius for the graphical user interface, and a touch contact surface width; Determining display control parameters corresponding to the arc control area according to the target holding side, the touch activity radius, and the touch contact surface width; Controlling the display of the arc control area in the graphical user interface according to the display control parameters corresponding to the arc control area.
2. The method according to claim 1, wherein The display control parameters include a center position, an arc radius, and an arc width. Determining the display control parameters corresponding to the arc control area according to the target holding side, the touch activity radius, and the touch contact surface width includes: Determining the center position corresponding to the arc control area according to the target holding side; Determining the arc radius corresponding to the arc control area according to the touch activity radius; Determining the arc width corresponding to the arc control area according to the touch contact surface width.
3. The method according to claim 2, wherein Determining the center position corresponding to the arc control area according to the target holding side includes: Obtaining a horizontal dimension and a vertical dimension of the graphical user interface, and a horizontal ratio parameter and a vertical ratio parameter matching the target holding side; Determining the horizontal position of the center according to the horizontal ratio parameter and the horizontal dimension of the graphical user interface; Determining the vertical position of the center according to the vertical ratio parameter and the vertical dimension of the graphical user interface.
4. The method according to claim 3, wherein The target holding side is one of the right side or the left side; the sum of the horizontal ratio parameter corresponding to the right side and the horizontal ratio parameter corresponding to the left side is 1; the vertical ratio parameter corresponding to the right side is the same as the vertical ratio parameter corresponding to the left side.
5. The method according to claim 4, wherein The horizontal ratio parameter corresponding to the right side is greater than the horizontal ratio parameter corresponding to the left side, such that the center position corresponding to the arc control area is biased towards the target holding side.
6. The method according to claim 2, characterized in that, Determining the arc radius corresponding to the arc control area according to the touch activity radius includes: Obtaining a radius correction coefficient matching the graphical user interface, and determining the arc radius corresponding to the arc control area according to the radius correction coefficient and the touch activity radius.
7. The method according to claim 6, wherein The method further comprises: Obtaining a pixel value per unit length corresponding to the screen pixel density, and converting the arc radius corresponding to the arc control area from a length value to a pixel value according to the pixel value per unit length corresponding to the screen pixel density, and representing the arc radius corresponding to the arc control area in pixels.
8. The method according to claim 2, characterized in that, Determining the arc width corresponding to the arc control area according to the touch contact surface width includes: Obtaining a preset touch safety factor, and determining the arc width corresponding to the arc control area according to the preset touch safety factor and the touch contact surface width.
9. The method according to claim 8, wherein The method further comprises: Obtain the pixel value per unit length corresponding to the screen pixel density. According to the pixel value per unit length corresponding to the screen pixel density, convert the arc width corresponding to the arc control area from a length value to a pixel value, and characterize the arc width corresponding to the arc control area in pixels.
10. The method according to claim 1, wherein The method further includes: In response to the touch pressure value satisfying a specific condition, control and adjust the display control parameters corresponding to the arc control area.
11. The method according to claim 10, characterized in that The controlling and adjusting the display control parameters corresponding to the arc control area includes: According to a preset downward adjustment ratio, control and adjust the vertical position of the center of the circle corresponding to the arc control area; or According to a preset radius expansion parameter, control and adjust the arc radius corresponding to the arc control area; or According to a preset width expansion parameter, control and adjust the arc width corresponding to the arc control area.
12. The method according to claim 1, characterized in that, The method further includes: In response to a first sliding touch operation, according to the sliding direction of the first sliding touch operation, control the virtual vehicle to perform forward and backward movements; the first sliding touch operation is a sliding touch operation along the arc control area; In response to a second sliding touch operation, according to the sliding direction of the second sliding touch operation, control the virtual vehicle to perform a steering action, and the second sliding touch operation is a sliding touch operation perpendicular to the arc control area.
13. The method according to claim 12, characterized in that, The method further includes: According to the touch offset of the first sliding touch operation, determine the forward and backward speed corresponding to the virtual vehicle, and the forward and backward speed is positively correlated with the touch offset of the first sliding touch operation.
14. The method according to claim 12, wherein The method further includes: According to the touch offset of the second sliding touch operation, determine the steering angle corresponding to the virtual vehicle, and the steering angle is positively correlated with the touch offset of the second sliding touch operation.
15. The method according to claim 14, wherein The determining the steering angle corresponding to the virtual vehicle according to the touch offset of the second sliding touch operation includes: According to the current moving speed of the virtual vehicle, determine the steering angle corresponding to the unit offset; the steering angle corresponding to the unit offset is positively correlated with the moving speed; According to the touch offset of the second sliding touch operation and the steering angle corresponding to the unit offset, determine the steering angle corresponding to the virtual vehicle.
16. The method according to claim 12, wherein The method further includes: In response to a first sliding touch operation, control the terminal device to vibrate in a first vibration mode; In response to a second sliding touch operation, control the terminal device to vibrate in a second vibration mode.
17. A game display control device, characterized in that, Provide a graphical user interface through a terminal device. The graphical user interface displays at least part of a game scene. The game scene includes a virtual vehicle, and the virtual vehicle controls forward and backward movements and steering through an arc control area. The device includes: An acquisition module, configured to acquire a target holding side of the terminal device, a touch activity radius, and a touch contact surface width of the graphical user interface; A determination module, configured to determine the display control parameters corresponding to the arc control area according to the target holding side, the touch activity radius, and the touch contact surface width; A display module, configured to control the display of the arc control area in the graphical user interface according to the display control parameters corresponding to the arc control area.
18. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method according to any one of claims 1 to 16.
19. An electronic device, characterized in that, Comprising: A processor; And A memory for storing executable instructions of the processor; Wherein, the processor is configured to execute the method according to any one of claims 1 to 16 by executing the executable instructions.