Game picture processing method and device and storage medium
By smoothing the position of touch points in sliding operations in multiplayer online tactical competitive games, the screen jitter caused by external interference and finger shaking during sliding operations is solved, and a more stable game screen is achieved.
Patent Information
- Application Number
- CN202310968350.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-02
- Publication Date
- 2025-02-14
AI Technical Summary
In multiplayer online tactical competitive games, when users view the field of view through minimap sliding operations, they are easily disturbed by external interference and finger shaking, resulting in non-linear sliding trajectory and severe screen shaking.
By receiving the sliding operation, the positions of multiple touch points in the sliding operation are smoothed in response to the smoothing process, the smoothness of the sliding track is improved, and the game screen corresponding to the touch points after the smoothing is output.
Improves the stability of the game screen during sliding operation, reduces screen shaking, and improves the user's operating experience.
Smart Images

Figure CN119425070A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a method, device and storage medium for processing game images. Background Art
[0002] In some games, such as multiplayer online battle arena (MOBA), users have the function of viewing the game screen of teammates' locations and multiplayer team battles, so as to facilitate interaction and cooperation between users and teammates. Usually, there is a small map in the upper left corner of the game interface, which corresponds to the current game screen. Users can click or slide the small map to view the field of view corresponding to the position in the small map.
[0003] However, when a user slides a finger on a small map to view the corresponding field of view, the sliding trajectory may be poorly linear due to some external interference such as noise or finger shaking, which in turn causes severe shaking of the corresponding field of view seen by the user. Therefore, how to improve the image stability of the corresponding field of view in the game when viewing the field of view through a small map has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] The present application provides a method, device and storage medium for processing a game screen, which can improve the image stability of a corresponding field of view screen in the game when viewing the field of view screen through a small map.
[0005] In a first aspect, the present application provides a method for processing a game screen, the method comprising: receiving a sliding operation in a target area, the target area being an area in a game interface for switching a viewing field of view; in response to the sliding operation, smoothing the positions of multiple touch points included in the sliding operation, wherein the smoothness of a sliding trajectory formed by the multiple touch points after the smoothing is greater than the smoothness of a sliding trajectory formed by the multiple touch points before the smoothing; and outputting a game screen corresponding to the sliding operation, the game screen comprising multiple sub-game screens corresponding to the multiple touch points after the smoothing.
[0006] In a second aspect, the present application provides a device for processing a game screen, the device comprising: a receiving module for receiving a sliding operation in a target area, the target area being an area in a game interface for switching a viewing field of view; a processing module for smoothing the positions of multiple touch points included in the sliding operation in response to the sliding operation, wherein the smoothness of the sliding trajectory formed by the multiple touch points after the smoothing is greater than the smoothness of the sliding trajectory formed by the multiple touch points before the smoothing; an output module for outputting a game screen corresponding to the sliding operation, the game screen comprising multiple sub-game screens corresponding to the multiple touch points after the smoothing.
[0007] In a third aspect, the present application provides a terminal device, including a processor and a memory, wherein the memory is used to store code instructions; the processor is used to execute the code instructions to implement the method in the first aspect above.
[0008] Optionally, there are one or more processors and one or more memories.
[0009] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
[0010] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips respectively. The embodiments of the present application do not limit the type of memory and the setting method of the memory and the processor.
[0011] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program (also referred to as code, or instruction) which, when executed on a computer, enables the computer to execute the method in the first aspect.
[0012] In a fifth aspect, the present application provides a computer program product, comprising: a computer program (also referred to as code, or instruction), which enables a computer to execute the method in the above-mentioned first aspect when the computer program is executed.
[0013] In an embodiment of the present application, the terminal device smoothes the positions of multiple touch points included in the sliding operation to stabilize the position coordinate outputs at the multiple touch points, thereby stabilizing the output game screen corresponding to the sliding operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 An exemplary schematic diagram of a game screen provided for one embodiment of the present application;
[0015] Figure 2 A schematic diagram of a system architecture of a terminal device provided for one embodiment of the present application;
[0016] Figure 3 A flowchart of a method for processing a game screen provided by one embodiment of the present application;
[0017] Figure 4 An exemplary schematic diagram of a sliding operation provided for one embodiment of the present application;
[0018] Figure 5 A flowchart of a method for processing a game screen provided by another embodiment of the present application;
[0019] Figure 6 An exemplary schematic diagram of different coordinate ranges of a small map area provided for one embodiment of the present application;
[0020] Figure 7 A schematic diagram of sliding tracks formed by multiple touch points before and after smoothing provided by an embodiment of the present application;
[0021] Figure 8 A flowchart of a method for processing a game screen provided by another embodiment of the present application;
[0022] Fig. 9 A flowchart of a method for processing a game screen provided by another embodiment of the present application;
[0023] Fig.10 A structural schematic diagram of a device for processing a game screen provided by one embodiment of the present application;
[0024] Fig.11 A structural schematic diagram of a device for processing game screens provided in accordance with another embodiment of the present application. DETAILED DESCRIPTION
[0025] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0026] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first" and "second" are used to distinguish the same items or similar items with substantially the same functions and effects. For example, the first instruction and the second instruction are to distinguish different user instructions, and their order is not limited. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not necessarily limit them to be different.
[0027] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
[0028] In addition, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or multiple.
[0029] With the increasing popularity of terminal devices, games are becoming more and more popular among young people. In some games, such as multiplayer online tactical competitive games, users have the function of viewing the game screen of teammates' locations and multiplayer team battles, which facilitates users to interact and cooperate with teammates and better complete the game.
[0030] At present, in multiplayer online tactical competitive games, there is generally a small map in the upper left corner of the game interface. The small map corresponds to the current game screen. The user can click or slide the small map to view the field of view corresponding to the position in the small map. The exemplary schematic diagram is as follows: Figure 1 shown.
[0031] However, when the user slides his finger on the mini-map to view the corresponding field of view, since the finger is always on the mini-map, the finger may slide due to some external interference such as noise, or the finger itself shaking, resulting in poor linearity of the finger sliding trajectory, which in turn causes severe shaking of the corresponding picture seen by the user.
[0032] Therefore, how to improve the image stability of the corresponding field of view in the game when viewing the field of view through the mini-map has become a technical problem that needs to be solved urgently.
[0033] In view of this, the embodiments of the present application provide a method, device and storage medium for processing a game screen. In the technical solution of the present application, the terminal device receives a sliding operation in a target area, which is an area in the game interface for switching viewing fields; then, in response to the sliding operation, the positions of multiple touch points included in the sliding operation are smoothed, wherein the smoothness of the sliding trajectory formed by the multiple touch points after smoothing is greater than the smoothness of the sliding trajectory formed by the multiple touch points before smoothing; finally, a game screen corresponding to the sliding operation is output, and the game screen includes multiple sub-game screens corresponding to the multiple touch points after smoothing. In the method for processing a game screen of the present application, the terminal device performs smoothing on the positions of the multiple touch points included in the sliding operation to stabilize the output of the position coordinates at the multiple touch points, thereby improving the stability of the output game screen corresponding to the sliding operation.
[0034] It should be understood that the terminal device involved in the embodiments of the present application may be a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a smart screen, a terminal in industrial control, a terminal in self-driving, a terminal in a smart grid, a terminal in transportation safety, a terminal in a smart city, a terminal in a smart home, a personal digital assistant (PDA), and other terminal devices that can play games, and the specific embodiments of the present application are not limited to this.
[0035] For example, Figure 2 A schematic diagram of the system architecture of a terminal device provided in one embodiment of the present application. Figure 2 As shown, the terminal device includes components such as a processor 210, a memory 220, a transceiver 230, a display unit 240, an input unit 250, a sensor 260, an audio circuit 270, and a power module 280.
[0036] The processor 210 is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device. By running or executing software programs and / or modules stored in the memory 220, and calling data stored in the memory 220, the processor 210 performs various functions of the terminal device and processes data, thereby monitoring the terminal device as a whole. Optionally, the processor 210 may include one or more processing units; optionally, the processor 210 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.
[0037] The memory 220 can be used to store software programs and modules. The processor 210 executes various functional applications and data processing of the terminal device by running the software programs and modules stored in the memory 220. The memory 220 mainly includes a program storage area and a data storage area, wherein the program storage area can store operating devices, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the terminal device (such as audio data, a phone book, etc.), etc. In addition, the memory 220 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0038] The transceiver 230 can provide wireless communication solutions applied to terminal devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The transceiver 230 can be one or more devices integrating at least one communication processing module, for example, integrating an antenna and a baseband processor into the transceiver 230, or integrating an antenna and a modem processor into the transceiver 230, etc., which are not limited here.
[0039] The display unit 240 may be used to display information input by the user or information provided to the user and various menus of the terminal device. The display unit 240 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc., which is not limited here.
[0040] The input unit 250 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the terminal device. Specifically, the input unit 250 can collect the user's operations on or near it, and drive the corresponding connection device according to a pre-set program. In addition, the input unit 250 may include a touch panel, which can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel, the input unit 250 may also include other input devices. Specifically, other input devices may include, but are not limited to, one or more of function keys (such as volume control keys, switch keys, etc.), trackballs, joysticks, etc.
[0041] The terminal device may also include at least one sensor 260, such as a gyroscope sensor, a motion sensor, and other sensors. The motion sensor may include an acceleration sensor for detecting the magnitude of acceleration in all directions, and the magnitude and direction of gravity when stationary, which may be used for applications that identify the posture of the terminal device, such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc. As for other sensors that may be configured in the terminal device, such as a pressure gauge, a barometer, a hygrometer, a thermometer, an infrared sensor, a fingerprint sensor, etc., they will not be described in detail here.
[0042] The audio circuit 270 may include a speaker and a microphone, and may provide an audio interface between the user and the terminal device. The audio circuit 270 may transmit the received audio data to the speaker after converting the received audio data into an electrical signal, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 270 and converted into audio data, and then the audio data is output to the processor 210 for processing, and then sent to another terminal device through the video circuit, or the audio data is output to the memory 220 for further processing.
[0043] The terminal device also includes a power module 280 for supplying power to various components. Optionally, the power module 280 can be logically connected to the processor 210 through a power management device, so that functions such as charging, discharging, and power consumption management can be managed through the power management device.
[0044] Although not shown, the terminal device may further include a camera. Optionally, the camera may be located at the front or rear of the terminal device, which is not limited in the embodiment of the present application.
[0045] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0046] In order to make the purpose and technical solution of this application clearer and more intuitive, the following will be combined with the accompanying drawings and embodiments to describe in detail the method, device and storage medium for processing the game screen provided by the embodiments of this application. It should be understood that the specific embodiments described herein are only used to explain this application and are not used to limit this application.
[0047] Please refer to Figure 3 , is a flowchart of a method for processing a game screen provided by an embodiment of the present application. The method can be applied to Figure 2 The terminal equipment shown is described in detail below Figure 3 The various steps in the method shown in the flowchart include:
[0048] S301, receiving a sliding operation in a target area, where the target area is an area in a game interface for switching viewing fields of view.
[0049] It should be understood that a sliding operation generally refers to an operation in which a user touches the screen of a terminal device and then presses the screen to slide his finger. Generally, the touch points included in the sliding operation will form a sliding track.
[0050] It should also be understood that the target area is an area in the game interface used to switch the viewing field of view, which is generally a part of the area preset in advance and is located at a specified position on the game screen or a position that can be moved. This application does not specifically limit this.
[0051] For example, the target area may be a small map area in the upper left corner of a game interface in a multiplayer online tactical competitive game, which can be used to click to view, or slide to view a screen of a field of view in the game interface.
[0052] For example, Figure 4 As shown in the above Figure 1 Based on the example shown, when the user slides his finger in the small map area, for example Figure 4Sliding from position 1 to position 2 will correspond to a sliding track, which may be a straight line, a curve, or other shapes, and the game interface will display the field of view of the finger touch position accordingly.
[0053] S302: In response to the sliding operation, smoothing is performed on positions of a plurality of touch points included in the sliding operation.
[0054] The smoothness of the sliding track formed by the multiple touch points after the smoothing process is greater than the smoothness of the sliding track formed by the multiple touch points before the smoothing process.
[0055] In some embodiments, the terminal device may smooth the positions of multiple touch points included in the sliding operation by using average filtering, Gaussian filtering, median filtering, bilateral filtering, Laplace operator, etc., which is not specifically limited in this application.
[0056] Understandably, the linearity and uniformity of the sliding track formed by the multiple touch points after the smoothing process are better, so the smoothness is also higher than the smoothness of the sliding track formed by the multiple touch points before the smoothing process.
[0057] S303, outputting a game screen corresponding to the sliding operation, where the game screen includes a plurality of sub-game screens corresponding to the plurality of touch points after smoothing.
[0058] It should be understood that the position of each touch point corresponds to a visual area screen. The terminal device smoothes the positions of multiple touch points included in the sliding operation and outputs the visual area screen corresponding to each of the multiple touch points after smoothing, that is, the sub-game screen.
[0059] Understandably, since the sliding track formed by multiple touch points after smoothing is smoother, the corresponding output game screen corresponding to the sliding operation is relatively stable, that is, the field of view switching is stable, which can solve the problem of game screen jitter in the current related technology.
[0060] In this embodiment, the terminal device smoothes the positions of multiple touch points included in the sliding operation to stabilize the position coordinate output at the multiple touch points, thereby improving the stability of the output game screen corresponding to the sliding operation.
[0061] Based on the above embodiments, Figure 5 A flowchart of a method for processing a game screen provided by another embodiment of the present application is described in detail below. Figure 5 The various steps in the method shown in the flowchart include:
[0062] S501, receiving a sliding operation in a target area, where the target area is an area in a game interface for switching viewing fields.
[0063] It should be understood that a sliding operation generally refers to an operation in which a user touches the screen of a terminal device and then presses the screen to slide his finger. Generally, the touch points included in the sliding operation will form a sliding track.
[0064] It should also be understood that the target area is an area in the game interface for switching the viewing field of view, which is generally a part of the area preset in advance, located at a specified position of the game screen or the position can be moved, and the specific application does not limit this. For example, the target area can be a small map area in the upper left corner of the game interface in a multiplayer online tactical competitive game, which can be used to click to view or slide to view the field of view area screen in the game interface.
[0065] In some embodiments, the sliding operation in the target area includes an operation in which the position coordinates of multiple touch points are all within the coordinate range corresponding to the target area. Each touch point corresponds to a position coordinate, and the target area is usually preset with a fixed coordinate range. Of course, the coordinate range of the target area can be one or more.
[0066] For example, in a multiplayer online tactical competitive game, the small map area in the upper left corner of the game screen has two ranges. One is the default coordinate range. There is also an icon similar to a magnifying glass on the right side of the small map area of the default size, which is exemplified as follows: Figure 6 As shown in (a), when the user clicks the icon, the small map can be enlarged to a larger map area, such as Figure 6 As shown in (b), the screen is larger, which makes it easier for users to operate and select the desired field of view.
[0067] S502, determining the position coordinates of the touch point at the first moment after smoothing according to the position coordinates of the touch point at the first moment, the position coordinates of the touch point at the second moment, and a preset coefficient among the multiple touch points included in the sliding operation.
[0068] The second moment is a moment before the first moment, and the first moment is a moment corresponding to any touch point included in the sliding operation.
[0069] It should be understood that the terminal device smoothes the position of the touch point based on the position coordinates corresponding to the touch point at different times among the multiple touch points included in the sliding operation and the preset coefficients.
[0070] In a possible implementation, the terminal device obtains the position coordinates of the touch point at the first moment after smoothing based on the sum of the position coordinates of the touch point at the second moment and the first value, wherein the first value is the product of a preset coefficient and a position coordinate difference, and the position coordinate difference is the difference between the position coordinates of the touch point at the first moment and the position coordinates of the touch point at the second moment.
[0071] Exemplarily, the position coordinates of the touch point at the first moment after smoothing satisfy the following formula:
[0072] Output coordinate=second coordinate+preset coefficient*(first coordinate-second coordinate).
[0073] The output coordinates are the position coordinates of the touch point at the first moment after smoothing, the first coordinates are the position coordinates of the touch point at the first moment, and the second coordinates are the position coordinates of the touch point at the second moment.
[0074] It should also be understood that the preset coefficient is determined based on the sliding speed of the sliding operation, and the preset coefficient is directly proportional to the sliding speed. That is, the slower the sliding speed, the smaller the value of the preset coefficient, and thus the smaller the value of the preset coefficient * (first coordinate - second coordinate). In this way, the new increment of the coordinate each time will be very small, so that the sliding trajectory formed by the position coordinates corresponding to the touch point will be smoother, and the effect of enhanced filtering will actually be achieved.
[0075] For example, it is assumed that the sliding tracks formed by the multiple touch points before smoothing are as follows: Figure 7 As shown in (a), the sliding track has obvious burrs. After the above-mentioned smoothing process is performed on each of the multiple touch points included in the sliding operation, the sliding track formed by the multiple touch points is as follows: Figure 7 As shown in (b), the linearity of the sliding track is significantly improved, and it is smoother and more stable.
[0076] S503, outputting a game screen corresponding to the sliding operation, where the game screen includes a plurality of sub-game screens corresponding to the plurality of touch points after smoothing.
[0077] It should be understood that the position of each touch point corresponds to a visual area screen. The terminal device smoothes the positions of multiple touch points included in the sliding operation and outputs the visual area screen corresponding to each of the multiple touch points after smoothing, that is, the sub-game screen.
[0078] Understandably, since the sliding track formed by multiple touch points after smoothing is smoother, the corresponding output game screen corresponding to the sliding operation is relatively stable, that is, the field of view switching is stable, which can solve the problem of game screen jitter in the current related technology.
[0079] In this embodiment, the terminal device determines the position coordinates of the touch point at the first moment after smoothing based on the position coordinates of the touch point at the first moment, the position coordinates of the touch point at the second moment and a preset coefficient among the multiple touch points included in the sliding operation, and then smoothes the position coordinates of the multiple touch points included in the sliding operation based on this, and finally outputs a game screen corresponding to the sliding operation. After the terminal device smoothes the position coordinates of the touch point, the sliding trajectory formed by the multiple touch points after smoothing is also relatively smooth and uniform, with better linearity, thereby making the corresponding output game screen more stable.
[0080] Based on the above embodiments, Figure 8 A flowchart of a method for processing a game screen provided by another embodiment of the present application is described in detail below. Figure 8 The various steps in the method shown in the flowchart include:
[0081] S801, receiving a sliding operation in a target area, where the target area is an area in a game interface for switching viewing fields of view.
[0082] It should be understood that a sliding operation generally refers to an operation in which a user touches the screen of a terminal device and then presses the screen to slide his finger. Generally, the touch points included in the sliding operation will form a sliding track.
[0083] It should also be understood that the target area is an area in the game interface for switching the viewing field of view, which is generally a part of the area preset in advance, located at a specified position of the game screen or the position can be moved, and the specific application does not limit this. For example, the target area can be a small map area in the upper left corner of the game interface in a multiplayer online tactical competitive game, which can be used to click to view or slide to view the field of view area screen in the game interface.
[0084] S802: Obtain a sliding speed corresponding to the sliding operation.
[0085] In some embodiments, the sliding speed corresponding to the sliding operation also has a certain influence on the sliding trajectory. For example, for the sliding operation, the sliding operation can be divided into slow sliding and fast sliding according to the sliding speed of the sliding operation, wherein the slow sliding can be a precise gesture with a slower sliding speed, and the corresponding sliding trajectory is more precise and clear; the sliding speed of the fast sliding is faster, and it may also be accompanied by the lifting of the finger. Therefore, the sliding trajectory generated by the fast sliding is generally more jittery, and the corresponding field of view movement will also cause greater jitter in the game screen, which will cause visual interference to the user.
[0086] S803, when the sliding speed is less than a preset speed threshold, in response to the sliding operation, smoothing the positions of the multiple touch points included in the sliding operation.
[0087] Understandably, when the sliding speed of the terminal device is less than a preset speed threshold, that is, the sliding speed is slow and the sliding trajectory itself is relatively precise, the positions of multiple touch points included in the sliding operation are smoothed, and the sliding trajectory of the touch points after smoothing is more stable and uniform, and has better linearity.
[0088] Optionally, when the sliding speed of the sliding operation is greater than a preset speed threshold, the sliding trajectory formed by the multiple touch points of the sliding operation itself may jitter severely, and the trajectory is not so precise. At this time, smoothing the coordinates of the touch points included in the sliding operation can appropriately reduce the jitter of the sliding trajectory formed by the multiple touch points, making the sliding trajectory clearer and smoother. Of course, the stabilization effect is not as good as when the sliding speed is less than the preset speed threshold.
[0089] S804, outputting a game screen corresponding to the sliding operation, where the game screen includes a plurality of sub-game screens corresponding to the plurality of touch points after smoothing.
[0090] It should be understood that the position of each touch point corresponds to a visual area screen. The terminal device smoothes the positions of multiple touch points included in the sliding operation and outputs the visual area screen corresponding to each of the multiple touch points after smoothing, that is, the sub-game screen.
[0091] Understandably, since the sliding track formed by multiple touch points after smoothing is smoother, the corresponding output game screen corresponding to the sliding operation is relatively stable, that is, the field of view switching is stable, which can solve the problem of game screen jitter in the current related technology.
[0092] In this embodiment, the terminal device smoothes the positions of multiple touch points included in the sliding operation in response to the sliding operation when the sliding speed is less than the preset speed threshold. Since the sliding trajectories corresponding to the multiple touch points are more accurate when the sliding speed is less than the preset speed threshold, the position coordinates of the multiple touch points can be output in a stable manner after the touch points are smoothed, thereby improving the stability of the output game screen corresponding to the sliding operation.
[0093] Based on the above embodiments, Fig. 9 A flowchart of a method for processing a game screen provided by another embodiment of the present application is described in detail below. Fig. 9 The various steps in the method shown in the flowchart include:
[0094] S901, receiving a sliding operation in a target area, where the target area is an area in a game interface for switching viewing fields of view.
[0095] It should be understood that a sliding operation generally refers to an operation in which a user touches the screen of a terminal device and then presses the screen to slide his finger. Generally, the touch points included in the sliding operation will form a sliding track.
[0096] It should also be understood that the target area is an area in the game interface for switching the viewing field of view, which is generally a part of the area preset in advance, located at a specified position of the game screen or the position can be moved, and the specific application does not limit this. For example, the target area can be a small map area in the upper left corner of the game interface in a multiplayer online tactical competitive game, which can be used to click to view or slide to view the field of view area screen in the game interface.
[0097] S902, obtaining the number of touch points of the sliding operation at the same time.
[0098] For example, when a user clicks on a small map area in the game to view the field of view, he or she may use multiple fingers to operate, so multiple touch points may appear at the same time. The terminal device can display the corresponding field of view based on preset rules, such as in the order in which the touch points appear.
[0099] It should be understood that the terminal device may obtain the number of touch points of the sliding operation at the same time by detecting the number of fingers pressing the screen through a detection module, or by other methods, which are not limited in this application.
[0100] S903: When the number of touch points in the sliding operation at the same time is one, in response to the sliding operation, smoothing the positions of the multiple touch points included in the sliding operation.
[0101] In some embodiments, when the number of touch points in a sliding operation at the same time is one, the sliding track formed by the multiple touch points included in the sliding operation has no interference, and the track is relatively clear and accurate. At this time, in response to the sliding operation, the positions of the multiple touch points included in the sliding operation are smoothed, and the sliding track formed by the multiple touch points is also relatively smooth and uniform.
[0102] Optionally, in the case that there are multiple touch points in the sliding operation at the same time, sliding tracks corresponding to each touch point can be formed in sequence according to the order in which different touch points are touched at the same time, and each sliding root track can be smoothed in sequence. The screen of the terminal device can give priority to displaying the field of view corresponding to the most recently touched touch point, or can give priority to displaying the field of view corresponding to a preset touch point, etc. This application does not limit this to specifics.
[0103] S904, outputting a game screen corresponding to the sliding operation, where the game screen includes a plurality of sub-game screens corresponding to the plurality of touch points after smoothing.
[0104] It should be understood that the position of each touch point corresponds to a visual area screen. The terminal device smoothes the positions of multiple touch points included in the sliding operation and outputs the visual area screen corresponding to each of the multiple touch points after smoothing, that is, the sub-game screen.
[0105] Understandably, since the sliding track formed by multiple touch points after smoothing is smoother, the corresponding output game screen corresponding to the sliding operation is relatively stable, that is, the field of view switching is stable, which can solve the problem of game screen jitter in the current related technology.
[0106] In this embodiment, when the number of touch points in a sliding operation at the same time is one, the terminal device responds to the sliding operation by smoothing the positions of the multiple touch points included in the sliding operation. Since there is no interference from other touch points when the number of touch points in the sliding operation at the same time is one, the sliding trajectories corresponding to the multiple touch points included in the sliding operation are more accurate. After the touch points are smoothed, the position coordinate outputs at the multiple touch points can be stabilized, thereby improving the stability of the output game screen corresponding to the sliding operation.
[0107] To sum up, the terminal device can smooth the positions of multiple touch points included in the sliding operation based on conditions such as the sliding speed of the sliding operation and the number of touch points at the same time, so as to stabilize the position coordinate output of the multiple touch points, thereby improving the stability of the output game screen corresponding to the sliding operation.
[0108] It should also be understood that the above embodiments may be coupled to each other, and this application does not limit this. Moreover, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0109] Combined with the above Figures 1 to 9 , describes in detail the method for processing the game screen in the embodiment of the present application, and will now be combined with Fig.10 and Fig.11 , describes in detail the game screen processing device of an embodiment of the present application.
[0110] Fig.10 This is a structural schematic diagram of a device 1000 for processing a game screen according to an embodiment of the present application. The device 1000 includes: a receiving module 1001, a processing module 1002 and an output module 1003.
[0111] Among them, the receiving module 1001 is used to receive a sliding operation in a target area, and the target area is an area in the game interface for switching the viewing field; the processing module 1002 is used to smooth the positions of multiple touch points included in the sliding operation in response to the sliding operation, wherein the smoothness of the sliding trajectory formed by the multiple touch points after the smoothing process is greater than the smoothness of the sliding trajectory formed by the multiple touch points before the smoothing process; the output module 1003 is used to output a game screen corresponding to the sliding operation, and the game screen includes multiple sub-game screens corresponding to the multiple touch points after the smoothing process.
[0112] In some embodiments, the processing module 1002 is specifically used to: determine the position coordinates of the touch point at the first moment after the smoothing process is performed on the touch point according to the position coordinates of the touch point at the first moment among the multiple touch points included in the sliding operation, the position coordinates of the touch point at the second moment, and a preset coefficient; wherein the second moment is the moment before the first moment, and the first moment is the moment corresponding to any one of the touch points included in the sliding operation.
[0113] In some embodiments, the processing module 1002 is specifically used to: obtain the position coordinates of the touch point after the smoothing processing at the first moment according to the sum of the position coordinates of the touch point at the second moment and the first numerical value, the first numerical value being the product of the preset coefficient and the position coordinate difference, and the position coordinate difference being the difference between the position coordinates of the touch point at the first moment and the position coordinates of the touch point at the second moment.
[0114] In some embodiments, the preset coefficient is determined according to a sliding speed of the sliding operation, and the preset coefficient is directly proportional to the sliding speed.
[0115] In some embodiments, the device for processing the game screen further includes: an acquisition module. The acquisition module is used to acquire the sliding speed corresponding to the sliding operation; the processing module 1002 is specifically used to: in response to the sliding operation, when the sliding speed is less than a preset speed threshold, smooth the positions of multiple touch points included in the sliding operation.
[0116] In some embodiments, the acquisition module is also used to obtain the number of touch points of the sliding operation at the same time; the processing module 1002 is specifically used to: when the number of touch points of the sliding operation at the same time is one, in response to the sliding operation, smooth the positions of multiple touch points included in the sliding operation.
[0117] In some embodiments, the sliding operation in the target area includes an operation in which the position coordinates of multiple touch points are all within a coordinate range corresponding to the target area.
[0118] It should be understood that the device 1000 here is embodied in the form of a functional module. The term "module" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a proprietary processor or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit and / or other suitable components that support the described functions. In an optional example, those skilled in the art may understand that the device 1000 may be specifically a terminal device in the above-mentioned embodiment, or the functions of the terminal device in the above-mentioned embodiment may be integrated in the device 1000, and the device 1000 may be used to execute the various processes and / or steps corresponding to the terminal device in the above-mentioned method embodiment, and to avoid repetition, it will not be repeated here.
[0119] The above-mentioned apparatus 1000 has the function of implementing the corresponding steps executed by the terminal device in the above-mentioned method; the above-mentioned function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-mentioned function.
[0120] Fig.11 A structural schematic diagram of a device for processing game screens provided in accordance with another embodiment of the present application. Fig.11 The game screen processing device shown can be used to execute the method of any of the aforementioned embodiments.
[0121] like Fig.11 As shown, the device 1100 of this embodiment includes: a memory 1101, a processor 1102, a communication interface 1103 and a bus 1104. The memory 1101, the processor 1102 and the communication interface 1103 are connected to each other through the bus 1104.
[0122] Among them, the processor 1102 is used to: receive a sliding operation in a target area, the target area is an area in the game interface for switching the viewing field of view; in response to the sliding operation, smooth the positions of multiple touch points included in the sliding operation, wherein the smoothness of the sliding trajectory formed by the multiple touch points after the smoothing process is greater than the smoothness of the sliding trajectory formed by the multiple touch points before the smoothing process; output a game screen corresponding to the sliding operation, the game screen including multiple sub-game screens corresponding to the multiple touch points after the smoothing process.
[0123] In some embodiments, the processor 1102 is used to determine the position coordinates of the touch point at the first moment after the smoothing process according to the position coordinates of the touch point at the first moment among the multiple touch points included in the sliding operation, the position coordinates of the touch point at the second moment, and a preset coefficient; wherein the second moment is the moment before the first moment, and the first moment is the moment corresponding to any one of the touch points included in the sliding operation.
[0124] In some embodiments, the processor 1102 is used to: obtain the position coordinates of the touch point after the smoothing processing at the first moment based on the sum of the position coordinates of the touch point at the second moment and the first numerical value, the first numerical value being the product of the preset coefficient and the position coordinate difference, and the position coordinate difference being the difference between the position coordinates of the touch point at the first moment and the position coordinates of the touch point at the second moment.
[0125] In some embodiments, the preset coefficient is determined according to a sliding speed of the sliding operation, and the preset coefficient is directly proportional to the sliding speed.
[0126] In some embodiments, the processor 1102 is used to: obtain a sliding speed corresponding to the sliding operation; and when the sliding speed is less than a preset speed threshold, in response to the sliding operation, smooth the positions of multiple touch points included in the sliding operation.
[0127] In some embodiments, the processor 1102 is used to: obtain the number of touch points of the sliding operation at the same time; when the number of touch points of the sliding operation at the same time is one, in response to the sliding operation, smooth the positions of multiple touch points included in the sliding operation.
[0128] In some embodiments, the sliding operation in the target area includes an operation in which the position coordinates of multiple touch points are all within a coordinate range corresponding to the target area.
[0129] The memory 1101 may be a read only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM). The memory 1101 may store a program. When the program stored in the memory 1101 is executed by the processor 1102, the processor 1102 is used to execute each step of the method shown in the above embodiment.
[0130] The processor 1102 can adopt a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), or one or more integrated circuits to execute relevant programs to implement the various methods shown in the embodiments of the present application.
[0131] The processor 1102 may also be an integrated circuit chip with signal processing capability. In the implementation process, each step of the method of the embodiment of the present application may be completed by an integrated logic circuit of hardware in the processor 1102 or by instructions in the form of software.
[0132] The processor 1102 may also be a general purpose processor, a digital signal processor (DSP), an ASIC, a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0133] The steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 1101, and the processor 1102 reads the information in the memory 1101, and completes the functions required to be performed by the units included in the device of the present application in combination with its hardware.
[0134] The communication interface 1103 may use, but is not limited to, a transceiver or other transceiver device to implement communication between the apparatus 1100 and other devices or a communication network.
[0135] The bus 1104 may include a path for transmitting information between various components of the device 1100 (eg, the memory 1101 , the processor 1102 , and the communication interface 1103 ).
[0136] It should be understood that the device 1100 shown in the embodiment of the present application may be an electronic device, or may also be a chip configured in the electronic device.
[0137] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0138] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0139] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0140] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0141] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0142] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0143] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.
[0144] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for processing a game screen, characterized in that: include: Receiving a sliding operation in a target area, where the target area is an area in the game interface for switching viewing fields; In response to the sliding operation, smoothing the positions of the multiple touch points included in the sliding operation, wherein the smoothness of the sliding track formed by the multiple touch points after the smoothing process is greater than the smoothness of the sliding track formed by the multiple touch points before the smoothing process is performed; A game screen corresponding to the sliding operation is output, wherein the game screen includes a plurality of sub-game screens corresponding to the plurality of touch points after the smoothing process.
2. The method according to claim 1, characterized in that In response to the sliding operation, smoothing the positions of the multiple touch points included in the sliding operation includes: Determining the position coordinates of the touch point at the first moment after the smoothing process is performed on the touch point according to the position coordinates of the touch point at the first moment, the position coordinates of the touch point at the second moment, and a preset coefficient among the multiple touch points included in the sliding operation; The second moment is a moment before the first moment, and the first moment is a moment corresponding to any touch point included in the sliding operation.
3. The method according to claim 2, characterized in that The step of determining the position coordinates of the touch point at the first moment after the smoothing process is performed on the touch point according to the position coordinates of the touch point at the first moment, the position coordinates of the touch point at the second moment, and a preset coefficient among the multiple touch points included in the sliding operation, comprises: According to the sum of the position coordinates of the touch point at the second moment and the first value, the position coordinates of the touch point at the first moment after the smoothing process are obtained, the first value is the product of the preset coefficient and the position coordinate difference, and the position coordinate difference is the difference between the position coordinates of the touch point at the first moment and the position coordinates of the touch point at the second moment.
4. The method according to claim 2 or 3, characterized in that: The preset coefficient is determined according to a sliding speed of the sliding operation, and the preset coefficient is proportional to the sliding speed.
5. The method according to claim 1, characterized in that Before smoothing the positions of the multiple touch points included in the sliding operation in response to the sliding operation, the method further includes: Obtaining a sliding speed corresponding to the sliding operation; In response to the sliding operation, smoothing the positions of the multiple touch points included in the sliding operation includes: When the sliding speed is less than a preset speed threshold, in response to the sliding operation, positions of a plurality of touch points included in the sliding operation are smoothed.
6. The method according to claim 1, characterized in that Before smoothing the positions of the multiple touch points included in the sliding operation in response to the sliding operation, the method further includes: Obtaining the number of touch points of the sliding operation at the same time; In response to the sliding operation, smoothing the positions of the multiple touch points included in the sliding operation includes: In a case where the number of touch points in the sliding operation at the same time is one, in response to the sliding operation, positions of the multiple touch points included in the sliding operation are smoothed.
7. The method according to claim 1, characterized in that The sliding operation in the target area includes an operation in which the position coordinates of multiple touch points are all within the coordinate range corresponding to the target area.
8. A device for processing a game screen, characterized in that: include: A receiving module, used to receive a sliding operation in a target area, where the target area is an area in the game interface for switching viewing fields; a processing module, configured to perform smoothing processing on the positions of a plurality of touch points included in the sliding operation in response to the sliding operation, wherein the smoothness of the sliding track formed by the plurality of touch points after the smoothing processing is greater than the smoothness of the sliding track formed by the plurality of touch points before the smoothing processing is performed; An output module is used to output a game screen corresponding to the sliding operation, wherein the game screen includes a plurality of sub-game screens corresponding to the plurality of touch points after the smoothing process.
9. A terminal device, characterized in that: The system comprises a processor and a memory, wherein the memory is used to store code instructions; the processor is used to run the code instructions to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store a computer program, the computer program comprising instructions for implementing the method according to any one of claims 1 to 7.