Screen display method, device, electronic device and storage medium
By providing graphical user interface and screen adjustment controls in the game, adjusting the shooting field of the virtual camera in response to player touch operations, it solves the problem of difficult operation of players zooming the virtual camera field of view, and achieves a simpler operating experience.
Patent Information
- Application Number
- CN202411865125.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-04
AI Technical Summary
When players zoom in on the shooting field of the virtual camera in the game, it is difficult to operate, and they need to take into account the game operations and perform specific gesture operations.
It provides a screen display method, displaying game screens and screen adjustment controls through a graphical user interface, responding to the player's touch operation of the screen adjustment controls, obtaining touch parameters, determining the screen zoom multiple, adjusting the shooting field of the virtual camera, and updating the game screen.
It reduces the difficulty of the player when zooming the shooting field of the virtual camera, so that the player only needs to apply touch parameters on the screen adjustment control to adjust the field of view of the virtual camera.
Smart Images

Figure CN119746395A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of game technology, and in particular to a screen display method, device, electronic device and storage medium. Background Art
[0002] Under the wave of the Internet, the continuous development and evolution of hardware and software technologies have promoted the emergence of smart devices and software. At the same time, a large number of games of different themes have emerged to meet the needs of users.
[0003] Currently, if players want to zoom in and out the shooting field of view of the virtual camera to see a wider game screen, they need to perform specific gesture operations while playing the game, which makes the operation difficult for players. Summary of the invention
[0004] The embodiments of the present application provide a screen display method, device, electronic device and storage medium, which can reduce the difficulty of operation when a player zooms in or out of the shooting field of view of a virtual camera.
[0005] In a first aspect, an embodiment of the present application provides a screen display method, providing a graphical user interface, wherein the graphical user interface displays a game screen and a screen adjustment control, and the method includes:
[0006] In response to a touch operation on the screen adjustment control, acquiring a touch parameter of the touch operation;
[0007] Based on the above touch parameters, determine the image zoom factor;
[0008] Based on the above picture zoom factor, adjust the shooting field of view of the virtual camera shooting the above game picture;
[0009] Based on the adjusted shooting field of view of the virtual camera, the game screen on the graphical user interface is updated.
[0010] In a second aspect, an embodiment of the present application provides a screen display device, providing a graphical user interface, wherein the graphical user interface displays a game screen and a screen adjustment control, and the device includes:
[0011] A parameter acquisition module, configured to acquire touch parameters of the touch operation in response to a touch operation on the screen adjustment control;
[0012] A multiple determination module, used to determine the image zoom multiple based on the above touch parameters;
[0013] A field of view adjustment module, used to adjust the shooting field of view of the virtual camera shooting the game screen based on the screen zoom factor;
[0014] The screen update module is used to update the game screen on the graphical user interface based on the adjusted shooting field of view of the virtual camera.
[0015] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory storing a plurality of instructions; a processor loads instructions from the memory to execute the steps of any one of the screen display methods provided in the embodiments of the present application.
[0016] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a plurality of instructions suitable for loading by a processor to execute the steps of any screen display method provided in an embodiment of the present application.
[0017] In a fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the steps of any screen display method provided in the embodiment of the present application.
[0018] By adopting the scheme of the embodiments of the present application, a graphical user interface can be provided, which displays a game screen and a screen adjustment control, and by responding to a touch operation on the screen adjustment control, a touch parameter of the touch operation is obtained, so as to determine the screen zoom factor based on the touch parameter, and then adjust the shooting field of view of the virtual camera that shoots the game screen based on the screen zoom factor. Finally, based on the adjusted shooting field of view of the virtual camera, the game screen on the graphical user interface is updated, so that the shooting field of view of the virtual camera can be adjusted by the player only by applying the touch parameter on the screen adjustment control, thereby reducing the difficulty of operation for the player when zooming the shooting field of the virtual camera. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 This is a schematic diagram of an embodiment of the screen display method provided in the embodiments of the present application;
[0021] Figure 2 is a schematic diagram of the pressing area provided in the embodiment of the present application;
[0022] Figure 3 It is a schematic diagram of a game screen provided in an embodiment of the present application;
[0023] Figure 4is another schematic diagram of a game screen provided in an embodiment of the present application;
[0024] Figure 5 It is a schematic diagram of the operation process of a picture adjustment control provided in an embodiment of the present application;
[0025] Figure 6 is a schematic diagram of the operation process of another screen adjustment control provided in an embodiment of the present application;
[0026] Figure 7 is a structural schematic diagram of a screen display device provided in an embodiment of the present application;
[0027] Figure 8 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application. At the same time, in the description of the embodiments of the present application, the terms "first", "second", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0029] Before explaining the embodiments of the present application in detail, some terms involved in the embodiments of the present application are first explained.
[0030] Among them, the graphical user interface is obtained by executing a software application on a processor of a mobile terminal or other terminal and rendering it on a display, which can be a display screen interface of a terminal device. The graphical user interface may include a UI interface and a game screen for players to interact with. The UI interface may include game controls (such as skill controls, mobile controls, function controls, etc.), indicator signs (such as direction indicator signs, role indicator signs, etc.), information display areas (such as the number of kills, game time, etc.), or game setting controls (such as system settings, stores, gold coins, etc.). In an optional embodiment, the game screen is a display screen corresponding to the virtual scene displayed by the terminal device. The game screen presents the entire virtual scene, or only presents a part of the virtual scene when the virtual scene is relatively large. The virtual scene includes multiple static virtual objects, specifically including ground, mountain, stone, vegetation, buildings, etc., and also includes multiple dynamic virtual objects, such as game characters, NPC characters, AI characters and other virtual objects that execute game logic in the virtual scene.
[0031] Among them, the virtual scene is a virtual scene displayed (or provided) when the application is running on a terminal or server. Optionally, the virtual scene can be a simulation environment of the real world, a semi-simulated and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual scene can be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene. The embodiment of the present application does not limit the dimension of the virtual scene. For example, the virtual scene may include the sky, land, ocean, etc., and the land may include environmental elements such as deserts and cities, and the user can control the game character to move in the virtual scene.
[0032] In an optional implementation, the game screen is a display screen corresponding to a virtual scene displayed by a terminal device, and the game screen may include virtual objects such as game characters, NPC characters, AI characters, etc. that execute game logic in the virtual scene.
[0033] Among them, the game character refers to a dynamic object that can be controlled in a virtual scene. Optionally, the game character can be a virtual person, a virtual animal, a cartoon character, etc. The game character can be a virtual image in the virtual scene that is used to represent the user. The virtual scene may include at least one game character, each of which has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene. In one possible implementation, the user can control the game character to move in the virtual scene, for example, control the game character to run, jump, crawl, etc., and can also control the game character to fight with other game characters using skills, virtual props, etc. provided by the application.
[0034] In this embodiment, the game character may be a virtual character controlled by a user through operations on a client. In some embodiments, the game character may be a virtual person competing in a virtual scene. In some embodiments, the number of game characters participating in the interaction in the virtual scene may be preset or dynamically determined according to the number of clients participating in the interaction.
[0035] Embodiments of the present application provide a screen display method, device, electronic device, and computer-readable storage medium.
[0036] Specifically, this embodiment will be described from the perspective of a screen display device, which can be integrated in an electronic device, that is, the screen display method of the embodiment of the present application can be executed by an electronic device, and optionally, the electronic device can include: a terminal device. The terminal device can be a mobile phone, a tablet computer, a smart Bluetooth device, a laptop computer, a game console, or a personal computer (PC) and other devices.
[0037] The screen display method provided in the embodiment of the present application can be applied to a screen display system. The screen display system may include a player terminal device and a server, and the terminal may be a device including both receiving and transmitting hardware, that is, a device having receiving and transmitting hardware capable of performing two-way communication on a two-way communication link. The player terminal device and the server may perform two-way communication via a network.
[0038] Optionally, the server may be an independent server, or a server network or server cluster composed of servers, including but not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud server composed of multiple servers. The cloud server is composed of a large number of computers or network servers based on cloud computing.
[0039] The screen display method in one embodiment of the present disclosure can be run on a local terminal device or a server. When the game interaction method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0040] In an optional implementation, various cloud applications can be 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 operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the interactive methods in the game are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; but the cloud game server in the cloud is used for information processing. When playing the 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 the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0041] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the player in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the player through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0042] The following is a detailed description in conjunction with the accompanying drawings. In this embodiment, the execution subject is a terminal device as an example. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments. Although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown in the accompanying drawings.
[0043] The screen display method of the present embodiment obtains touch parameters of the touch operation in response to the touch operation on the above-mentioned screen adjustment control; determines the screen zoom factor based on the above-mentioned touch parameters; adjusts the shooting field of view of the virtual camera that shoots the above-mentioned game screen based on the above-mentioned screen zoom factor; and updates the above-mentioned game screen on the above-mentioned graphical user interface based on the adjusted shooting field of view of the above-mentioned virtual camera, which can reduce the difficulty of operation for players when zooming the shooting field of view of the virtual camera.
[0044] Please refer to Figure 1Taking a terminal as an example, this embodiment provides a screen display method, which provides a graphical user interface, wherein the graphical user interface displays a game screen and a screen adjustment control. The specific process of the screen display method may be as follows: Steps 101 to 104, wherein:
[0045] Step 101: In response to a touch operation on the screen adjustment control, a touch parameter of the touch operation is obtained.
[0046] Among them, the above-mentioned screen adjustment control is a control that can be used to adjust the display information on the game screen. The screen adjustment control can be a new control of the terminal on the graphical user interface, and the screen adjustment control can also be a terminal that further adds a new screen adjustment function to the existing controls on the graphical user interface. The specific setting can be made according to needs and is not limited here.
[0047] Exemplarily, the screen adjustment control may be an existing look-around control on a graphical user interface, which, in addition to being used by the player to control the look around, also has the function of adjusting display information on the game screen.
[0048] It is understandable that in order to avoid the situation where players have difficulty in operating by performing specific gestures to zoom the shooting field of view while playing games, in this embodiment, the terminal provides a screen adjustment control so that players can directly perform touch operations on the screen adjustment control. The terminal obtains touch parameters associated with the touch operation by responding to the touch operation, so that the terminal can clearly determine the zoom factor of the shooting field of view to be zoomed based on the touch parameters.
[0049] Among them, the above-mentioned touch operations include but are not limited to pressing operations, clicking operations, sliding operations, quick gesture operations, etc., which can be set specifically according to needs and are not limited here.
[0050] Correspondingly, different touch operations correspond to different touch parameters. For example, if the above touch operation is a pressing operation, the touch parameters corresponding to the pressing operation include but are not limited to pressing area, pressing pressure, etc., which can be set according to needs and are not limited here.
[0051] Among them, the above-mentioned pressing area is used to indicate the area of the screen adjustment control touched by the player. For example, when the terminal displays the screen adjustment control on the graphical user interface and the player presses the screen adjustment control, the terminal can detect the coordinates of the player's touch point on the screen to clarify the above-mentioned pressing area based on the distance between the coordinates of the touch point and the boundary of the screen adjustment control.
[0052] For example, Figure 2 As shown, from Figure 2The schematic diagram corresponding to the three touch operations in the figure shows that the area touched by the player to adjust the screen controls is getting larger and larger. Figure 2 The bold area below the finger in the figure is the player's pressing area on the screen adjustment control, and the area of the pressing area is used as the above-mentioned pressing area.
[0053] Among them, the above-mentioned pressing pressure is used to indicate the pressure applied by the player when pressing the screen adjustment control. For example, the terminal can pre-set a pressure sensor on the screen so that when the player applies pressure to the screen adjustment control again, the pressure applied by the player can be obtained through the pressure sensor.
[0054] Step 102: Determine the image zoom factor based on the touch parameters.
[0055] The above-mentioned screen zoom factor is used to indicate the zoom ratio of the content displayed on the game screen. For example, if the screen zoom factor is 0.5, the content in the game screen is zoomed, and the field of view of the virtual camera is zoomed by 0.5 to present more content in the game screen.
[0056] In this embodiment, the terminal can determine the screen zoom factor for the content displayed on the game screen according to the touch parameters obtained by the player's operation on the screen adjustment control, so that the terminal can zoom the screen based on the determined screen zoom factor.
[0057] In some embodiments, in order to avoid misoperation, the terminal can set a trigger condition for screen zooming, so that when it is determined that the touch parameters corresponding to the touch operation meet the condition, the terminal can perform relevant processing of the screen zooming, that is, the above-mentioned determination of the screen zoom multiple based on the above-mentioned touch parameters can include: the terminal can determine whether the above-mentioned touch parameters meet the preset screen zoom trigger conditions. If the above-mentioned touch parameters meet the preset screen zoom trigger conditions, it means that the screen zoom processing is currently required, and the screen zoom multiple is determined; if the above-mentioned touch parameters do not meet the preset screen zoom trigger conditions, it means that the screen zoom processing is currently not required, and the screen zoom multiple does not need to be determined.
[0058] It should be noted that, due to the existence of different touch parameters, such as pressing area, pressing pressure, etc., different touch parameters correspond to different screen zoom triggering conditions.
[0059] In some embodiments, the above touch parameters may include a pressing area. If the above touch parameters meet the preset screen zoom trigger conditions, it is necessary to determine whether the pressing area meets the screen zoom trigger conditions before determining the screen zoom multiple, so as to execute subsequent steps based on the determination result.
[0060] Specifically, if the pressed area is greater than a preset area threshold, it is determined that the pressed area meets a preset screen zoom trigger condition.
[0061] Among them, the above preset area threshold can be set according to needs and is not limited here.
[0062] In some embodiments, the above touch parameters may include pressing pressure. If the above touch parameters meet the preset screen zoom trigger conditions, it is necessary to determine whether the pressing pressure meets the screen zoom trigger conditions before determining the screen zoom multiple, so as to execute subsequent steps based on the judgment result.
[0063] Specifically, if the pressing pressure is greater than a preset pressure threshold, it is determined that the pressing pressure meets a preset screen zoom trigger condition.
[0064] Among them, the above-mentioned preset pressure threshold can be set according to needs and is not limited here.
[0065] In some embodiments, the above method of determining the screen zoom factor may be predetermined, or may be determined based on touch parameters, and may be specifically set according to requirements, which is not limited here.
[0066] Specifically, the above-mentioned determination of the picture zoom factor may include: the terminal may obtain a preset zoom value corresponding to the above-mentioned virtual camera, and use the preset zoom value as the above-mentioned picture zoom factor.
[0067] It should be noted that, in this example, the terminal can only set two zoom values, one is a 1x zoom value when the screen zoom trigger condition is not met, that is, the game screen can be displayed normally and the content in the game screen is not zoomed; the other is a preset zoom value when the screen zoom trigger condition is met, for example, a 0.5x zoom value, so that when the player does not trigger the screen zoom trigger condition, the game screen is displayed normally with a 1x zoom value, and when the player triggers the screen zoom trigger condition, the screen content of the game screen is controlled to be zoomed with a 0.5x zoom value.
[0068] Specifically, the above-mentioned touch parameters may include a pressing area, and the above-mentioned method of determining the screen zoom factor may include: the terminal may obtain a preset area mapping relationship, which is used to indicate the mapping relationship between the pressing area and the screen zoom factor, so as to determine the screen zoom factor corresponding to the above-mentioned pressing area based on the above-mentioned area mapping relationship.
[0069] Among them, the above-mentioned area mapping relationship can be presented in the form of an area mapping curve, for example, the horizontal axis is the pressing area, and the vertical axis is the area mapping curve of the screen zoom multiple; the above-mentioned area mapping relationship can be presented in the form of an area mapping algorithm, for example, the pressing area is calculated by the area mapping algorithm to obtain the screen zoom multiple; the above-mentioned area mapping relationship can also be set by respectively setting corresponding mapping intervals for the pressing area and the screen zoom multiple, so as to determine the screen zoom multiple corresponding to the pressing area in the interval proportionally based on the mapping intervals of the two.
[0070] For example, the maximum area value in the mapping interval of the pressed area is x1, and the minimum area value is y1, and the maximum area x1 corresponds to the minimum value A1 in the mapping interval of the screen zoom multiple, and the minimum area y1 corresponds to the maximum value B1 in the mapping interval of the screen zoom multiple, and the screen zoom multiple corresponding to the pressed area α1 (X1>α1>Y1) in the currently detected interval is the value of the corresponding ratio in the mapping interval of the screen zoom multiple. Among them, B1 can be set to 1 to indicate that the game screen can be displayed normally and the content in the game screen is not scaled. Among them, if α1>X1 or α1<Y1, the minimum value A1 or the maximum value B1 is taken.
[0071] Specifically, the above-mentioned touch parameters may include pressing pressure, and the above-mentioned method of determining the screen zoom factor may include: the terminal may obtain a preset pressure mapping relationship, which is used to indicate the mapping relationship between pressing pressure and screen zoom factor, so as to determine the screen zoom factor corresponding to the above-mentioned pressing pressure based on the above-mentioned pressure mapping relationship.
[0072] Among them, the above-mentioned pressure mapping relationship can be presented in the form of a pressure mapping curve, for example, a pressure mapping curve with the horizontal axis being the pressing pressure and the vertical axis being the screen zoom factor; the above-mentioned pressure mapping relationship can be presented in the form of a pressure mapping algorithm, for example, the pressing pressure is calculated by the pressure mapping algorithm to obtain the screen zoom factor; the above-mentioned pressure mapping relationship can also be achieved by setting corresponding mapping intervals for the pressing pressure and the screen zoom factor respectively, so as to determine the screen zoom factor corresponding to the pressing pressure in the interval proportionally based on the mapping intervals of the two.
[0073] For example, the maximum pressure value in the mapping interval of the pressing pressure is x2, and the minimum pressure value is y2, and the maximum pressure value x2 corresponds to the minimum value A2 in the mapping interval of the screen zoom multiple, and the minimum pressure value y2 corresponds to the maximum value B2 in the mapping interval of the screen zoom multiple, and the screen zoom multiple corresponding to the pressing pressure α2 (X2>α2>Y2) in the currently detected interval is the numerical value of the corresponding ratio in the mapping interval of the screen zoom multiple. Among them, B2 can be set to 1 to indicate that the game screen can be displayed normally and the content in the game screen is not scaled. Among them, if α2>X2 or α2<Y2, the minimum value A2 or the maximum value B2 is taken.
[0074] Step 103: Based on the screen zoom factor, adjust the shooting field of view of the virtual camera that shoots the game screen.
[0075] In this embodiment, after obtaining the above-mentioned picture zoom factor, the terminal can adjust the shooting field of view of the virtual camera shooting the game screen based on the above-mentioned picture zoom factor to simulate the effect of zooming out of the virtual camera in the real environment, thereby changing the picture content presented in the game screen.
[0076] The field of view (FOV) of the virtual camera refers to the angle range that the virtual camera can cover when shooting.
[0077] Step 104: based on the adjusted shooting field of view of the virtual camera, update the game screen on the graphical user interface.
[0078] In this embodiment, after adjusting the shooting field of view of the virtual camera, the terminal can shoot the virtual scene based on the adjusted shooting field of view of the virtual camera to update the game screen on the graphical user interface, resulting in an increase or decrease in the scene content presented in the game screen.
[0079] For example, Figure 3 and Figure 4 As shown, in Figure 3 In the game screen shown, a game character moves in a virtual scene, and currently the shooting field of the virtual camera is adjusted by the screen zoom multiple to increase the shooting field of the virtual camera, so as to increase the angle range that the virtual camera can cover when shooting, and obtain Figure 4 The game screen shown in Figure 4 The sizes of the game characters and scene contents in the game screen shown are reduced, resulting in an increase in the scene contents in the virtual scene.
[0080] From the above content, it can be seen that by providing a graphical user interface, the above graphical user interface displays a game screen and a screen adjustment control, and by responding to a touch operation on the above screen adjustment control, the touch parameters of the above touch operation are obtained, so as to determine the screen zoom factor based on the above touch parameters, and then based on the above screen zoom factor, adjust the shooting field of view of the virtual camera that shoots the above game screen, and finally, based on the adjusted shooting field of view of the above virtual camera, update the above game screen on the above graphical user interface, so that the player only needs to apply the touch parameters on the screen adjustment control to adjust the shooting field of view of the virtual camera, thereby reducing the difficulty of operation for the player when zooming the shooting field of view of the virtual camera.
[0081] In an optional implementation, in order to improve the utilization rate of controls and reduce the number of controls displayed on the screen, the above-mentioned picture adjustment control may be an existing look-around control on the graphical user interface, such as a look-around control.
[0082] In addition, the look-around control is used to be controlled by the player to look around the virtual scene. For example, the player can adjust the corresponding viewing angle of the virtual camera by triggering different areas of the look-around control to present scene content matching the triggered area on the game screen.
[0083] Currently, when players control the look-around controls to look around the virtual scene, they can only look around with a fixed shooting field of view, that is, during the look-around process, the scene content presented on the game screen is presented in a specific proportion. As a result, the player cannot adaptively adjust the shooting field of view of the virtual camera according to the player's needs during the look-around process to present game screens of different zoom ratios, resulting in a poor player experience.
[0084] In this regard, the terminal can respond to the touch operation of the above-mentioned screen adjustment control and obtain the touch parameters of the above-mentioned touch operation before responding to the surround control operation of the above-mentioned screen adjustment control, and determine the surround viewing angle indicated by the above-mentioned surround control operation, thereby presenting the game screen under the corresponding surround viewing angle in the game screen.
[0085] Among them, the above-mentioned look-around control operation includes but is not limited to sliding operations, specific gesture operations, click operations, etc. on the screen adjustment control, wherein the sliding direction of the sliding operation indicates the above-mentioned look-around viewing angle; the specific gesture corresponding to the specific gesture operation indicates the above-mentioned look-around viewing angle, that is, different gesture operations correspond to different viewing angles; the area clicked by the click operation indicates the above-mentioned look-around viewing angle, that is, different areas on the screen adjustment control correspond to different viewing angles.
[0086] Correspondingly, the updating of the game screen on the graphical user interface based on the adjusted shooting field of view of the virtual camera may include: the terminal may update the game screen on the graphical user interface based on the adjusted shooting field of view of the virtual camera and the surround viewing angle, thereby controlling the virtual camera from both the surround viewing angle and the shooting field of view, so that the game screen captured by the virtual camera better meets the needs of players.
[0087] In some embodiments, in order to be able to better control the virtual camera from both the surround viewing angle and the shooting field of view, the above-mentioned response to the touch operation of the above-mentioned screen adjustment control to obtain the touch parameters of the above-mentioned touch operation can be that the terminal can respond to the touch operation continuous with the above-mentioned surround control operation to obtain the touch parameters of the above-mentioned touch operation, that is, through the touch operation continuous with the surround control operation, the player is prompted to control the surround viewing angle of the virtual camera through the surround control operation while also controlling the shooting field of view of the virtual camera, so as to enrich the player's experience of the surround function, that is, the shooting field of view of the virtual camera can be adjusted at any time during the surround process, and the corresponding interaction details are enriched.
[0088] In some embodiments, the look around control operation may include a sliding operation, and in response to a touch operation continuous with the look around control operation, acquiring a touch parameter of the touch operation may include:
[0089] The terminal may respond to the touch operation when the sliding speed corresponding to the above sliding operation is less than a preset threshold, indicating that the current player's sliding speed on the screen adjustment control is low, and the player wants to view the game screen of the corresponding perspective, so it is necessary to respond to the touch operation on the screen adjustment control at this time to obtain the touch parameters of the above touch operation; or
[0090] The terminal can respond to the touch operation when the above-mentioned sliding operation stops, indicating that the player stops sliding on the screen adjustment control, and the player wants to view the game screen of the perspective corresponding to the sliding stop position, so it is necessary to respond to the touch operation on the screen adjustment control at this time to obtain the touch parameters of the above-mentioned touch operation.
[0091] For example, Figure 5 and Figure 6 As shown, the terminal can respond to Figure 5 The finger in the right area slides the screen adjustment control to adjust the viewing angle of the virtual camera. The terminal can respond to the touch operation when the sliding speed corresponding to the above sliding operation is less than the preset threshold or the sliding operation stops. Figure 6 The finger pressing position in the right area can adjust the virtual camera's viewing angle and shooting field of view to obtain Figure 6 The game screen shown is from Figure 6As can be seen in the figure, due to the adjustment of the viewing angle, the game character is Figure 5 The position in is changed to Figure 6 The game characters and the virtual scenes in which they are located are reduced, causing Figure 6 The scene content in the game screen displayed in the game is increased.
[0092] As can be seen from the above, by integrating the look-around function and the field of view adjustment function into the screen adjustment control, the look-around angle and shooting field of view of the virtual camera can be controlled simultaneously by applying corresponding operations on the screen adjustment control, so that when the player looks around the virtual scene, the shooting field of view of the virtual camera can be adjusted according to the player's needs at any time to enlarge or reduce the scene content in the game screen, thereby increasing or decreasing the scene content in the game screen.
[0093] This embodiment also provides a screen display device, which can be integrated into a terminal device and can provide a graphical user interface, which displays a game screen and screen adjustment controls. Figure 7 As shown, the screen display device may include:
[0094] A parameter acquisition module 701 is used to acquire touch parameters of the touch operation in response to the touch operation on the screen adjustment control;
[0095] A multiple determination module 702, used to determine the image zoom multiple based on the above touch parameters;
[0096] The field of view adjustment module 703 is used to adjust the field of view of the virtual camera that captures the game screen based on the screen zoom factor;
[0097] The screen update module 704 is used to update the game screen on the graphical user interface based on the adjusted shooting field of view of the virtual camera.
[0098] In some embodiments, the image display device further includes a surround view control module, and the surround view control module is specifically used to:
[0099] In response to a look-around control operation on the image adjustment control, determining a look-around viewing angle indicated by the look-around control operation;
[0100] The above-mentioned screen updating module 704 is specifically used for:
[0101] Based on the adjusted shooting field of view of the virtual camera and the surround viewing angle, the game screen on the graphical user interface is updated.
[0102] In some embodiments, the parameter acquisition module 701 is specifically used for:
[0103] In response to a touch operation that is continuous with the look-around control operation, a touch parameter of the touch operation is acquired.
[0104] In some embodiments, the above-mentioned look-around control operation includes a sliding operation, and the above-mentioned parameter acquisition module 701 is specifically used for:
[0105] In response to a touch operation in which a sliding speed corresponding to the sliding operation is less than a preset threshold, acquiring a touch parameter of the touch operation; or
[0106] In response to the touch operation when the sliding operation stops, a touch parameter of the touch operation is acquired.
[0107] In some embodiments, the multiple determination module 702 is specifically used to:
[0108] If the above touch parameters meet the preset screen zoom triggering conditions, the screen zoom multiple is determined.
[0109] In some embodiments, the touch parameter includes a pressing area, and the screen display device further includes a first condition judgment module, and the first condition judgment module is specifically used to:
[0110] If the pressed area is greater than a preset area threshold, it is determined that the pressed area meets a preset screen zoom trigger condition.
[0111] In some embodiments, the multiple determination module 702 is specifically used to:
[0112] Get the preset area mapping relationship;
[0113] Based on the area mapping relationship, the screen zoom factor corresponding to the pressed area is determined.
[0114] In some embodiments, the multiple determination module 702 is specifically used to:
[0115] The preset zoom value corresponding to the virtual camera is obtained, and the preset zoom value is used as the image zoom multiple.
[0116] In some embodiments, the touch parameter includes pressing pressure, and the screen display device further includes a second condition judgment module, and the second condition judgment module is specifically used to:
[0117] If the pressing pressure is greater than the preset pressure threshold, it is determined that the pressing pressure meets the preset screen zoom trigger condition.
[0118] From the above content, it can be seen that by providing a graphical user interface, the above graphical user interface displays a game screen and a screen adjustment control, and by responding to a touch operation on the above screen adjustment control, the touch parameters of the above touch operation are obtained, so as to determine the screen zoom factor based on the above touch parameters, and then based on the above screen zoom factor, adjust the shooting field of view of the virtual camera that shoots the above game screen, and finally, based on the adjusted shooting field of view of the above virtual camera, update the above game screen on the above graphical user interface, so that the player only needs to apply the touch parameters on the screen adjustment control to adjust the shooting field of view of the virtual camera, thereby reducing the difficulty of operation for the player when zooming the shooting field of view of the virtual camera.
[0119] Accordingly, an embodiment of the present application further provides an electronic device, which may be a terminal, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA) and other terminal devices. Alternatively, the electronic device may be a server.
[0120] like Figure 8 As shown, Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 800 includes a processor 801 having one or more processing cores, a memory 802 having one or more computer-readable storage media, and a computer program stored in the memory 802 and executable on the processor. The processor 801 is electrically connected to the memory 802. Those skilled in the art will appreciate that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.
[0121] The processor 801 is the control center of the electronic device 800, and uses various interfaces and lines to connect various parts of the entire electronic device 800. By running or loading software programs and / or units stored in the memory 802, and calling data stored in the memory 802, the processor 801 executes various functions of the electronic device 800 and processes data, thereby monitoring the electronic device 800 as a whole. The processor 801 can be a central processing unit CPU, a graphics processing unit GPU, a network processor (Network Processor, NP), etc., and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application.
[0122] In the embodiment of the present application, the processor 801 in the electronic device 800 will load instructions corresponding to the processes of one or more application programs into the memory 802 according to the following steps, and the processor 801 will run the application programs stored in the memory 802 to implement various functions, such as:
[0123] In response to a touch operation on the screen adjustment control, acquiring a touch parameter of the touch operation;
[0124] Based on the above touch parameters, determine the image zoom factor;
[0125] Based on the above picture zoom factor, adjust the shooting field of view of the virtual camera shooting the above game picture;
[0126] Based on the adjusted shooting field of view of the virtual camera, the game screen on the graphical user interface is updated.
[0127] In some embodiments, before obtaining the touch parameters of the touch operation in response to the touch operation on the screen adjustment control, the method further includes:
[0128] In response to a look-around control operation on the image adjustment control, determining a look-around viewing angle indicated by the look-around control operation;
[0129] The updating of the game screen on the graphical user interface based on the adjusted shooting field of view of the virtual camera includes:
[0130] Based on the adjusted shooting field of view of the virtual camera and the surround viewing angle, the game screen on the graphical user interface is updated.
[0131] In some embodiments, in response to the touch operation on the screen adjustment control, acquiring the touch parameter of the touch operation includes:
[0132] In response to a touch operation that is continuous with the look-around control operation, a touch parameter of the touch operation is acquired.
[0133] In some embodiments, the look around control operation includes a sliding operation, and the step of obtaining a touch parameter of the touch operation in response to a touch operation that is continuous with the look around control operation includes:
[0134] In response to a touch operation in which a sliding speed corresponding to the sliding operation is less than a preset threshold, acquiring a touch parameter of the touch operation; or
[0135] In response to the touch operation when the sliding operation stops, a touch parameter of the touch operation is acquired.
[0136] In some embodiments, determining the image zoom factor based on the touch parameter includes:
[0137] If the above touch parameters meet the preset screen zoom triggering conditions, the screen zoom multiple is determined.
[0138] In some embodiments, the touch parameter includes a pressing area, and if the touch parameter meets a preset screen zoom trigger condition, before determining the screen zoom multiple, the method further includes:
[0139] If the pressed area is greater than a preset area threshold, it is determined that the pressed area meets a preset screen zoom trigger condition.
[0140] In some embodiments, the above-mentioned determining the picture zoom factor includes:
[0141] Get the preset area mapping relationship;
[0142] Based on the area mapping relationship, the screen zoom factor corresponding to the pressed area is determined.
[0143] In some embodiments, the above-mentioned determining the picture zoom factor includes:
[0144] The preset zoom value corresponding to the virtual camera is obtained, and the preset zoom value is used as the image zoom multiple.
[0145] In some embodiments, the touch parameter includes a pressing pressure, and if the touch parameter meets a preset screen zoom trigger condition, before determining the screen zoom multiple, the method further includes:
[0146] If the pressing pressure is greater than the preset pressure threshold, it is determined that the pressing pressure meets the preset screen zoom trigger condition.
[0147] Therefore, the electronic device 800 provided in this embodiment can bring the following technical effects: reducing the difficulty of operation when the player zooms in and out of the shooting field of view of the virtual camera.
[0148] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0149] Optional, such as Figure 8 As shown, the electronic device 800 further includes: a touch screen 803, a radio frequency circuit 804, an audio circuit 805, an input unit 806, and a power supply 807. The processor 801 is electrically connected to the touch screen 803, the radio frequency circuit 804, the audio circuit 805, the input unit 806, and the power supply 807, respectively. Those skilled in the art can understand that Figure 8 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0150] The touch display screen 803 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 803 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light-emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 801, and can receive the command sent by the processor 801 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 801 to determine the type of touch event, and then the processor 801 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 803 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 803 can also be used as a part of the input unit 806 to realize the input function.
[0151] The radio frequency circuit 804 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and to send and receive signals with the network device or other electronic devices.
[0152] The audio circuit 805 can be used to provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 805 can transmit the electrical signal converted from the received audio data to the speaker, 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 805 and converted into audio data, and then the audio data is output to the processor 801 for processing, and then sent to another electronic device through the radio frequency circuit 804, or the audio data is output to the memory 802 for further processing. The audio circuit 805 may also include an earplug jack to provide communication between an external headset and an electronic device.
[0153] The input unit 806 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
[0154] The power supply 807 is used to supply power to various components of the electronic device 800. Optionally, the power supply 807 can be logically connected to the processor 801 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 807 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0155] although Figure 8 Not shown, the electronic device 800 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.
[0156] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0157] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0158] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute any screen display method provided in the embodiment of the present application. The computer program can execute the steps of the following screen display method:
[0159] In response to a touch operation on the screen adjustment control, acquiring a touch parameter of the touch operation;
[0160] Based on the above touch parameters, determine the image zoom factor;
[0161] Based on the above picture zoom factor, adjust the shooting field of view of the virtual camera shooting the above game picture;
[0162] Based on the adjusted shooting field of view of the virtual camera, the game screen on the graphical user interface is updated.
[0163] It can be seen that the computer program can be loaded by the processor to execute any screen display method provided in the embodiments of the present application, thereby bringing the following technical effects: reducing the difficulty of operation when the player zooms in and out of the shooting field of view of the virtual camera.
[0164] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.
[0165] The computer-readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0166] Since the computer program stored in the computer-readable storage medium can execute any one of the screen display methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the screen display methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0167] According to one aspect of the present application, a computer program product or a computer program is also provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the methods provided in various optional implementations of the above embodiments.
[0168] In the above-mentioned screen display device, computer-readable storage medium, electronic device, and computer program product embodiments, the description of each embodiment has its own emphasis. For parts not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process and beneficial effects of the screen display device, computer-readable storage medium, computer program product, electronic device and its corresponding units described above can refer to the description of the screen display method in the above embodiment, and will not be repeated here.
[0169] The above is a detailed introduction to a screen display method, device, electronic device, computer-readable storage medium and computer program product provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A screen display method, characterized in that: A graphical user interface is provided, wherein the graphical user interface displays a game screen and screen adjustment controls, and the method comprises: In response to a touch operation on the image adjustment control, acquiring a touch parameter of the touch operation; Determining a zoom factor of the image based on the touch parameters; Based on the picture zoom factor, adjusting the shooting field of view of the virtual camera shooting the game picture; Based on the adjusted shooting field of view of the virtual camera, the game screen on the graphical user interface is updated.
2. The screen display method according to claim 1, characterized in that: Before acquiring the touch parameters of the touch operation in response to the touch operation on the screen adjustment control, the method further includes: In response to a look-around control operation on the picture adjustment control, determining a look-around viewing angle indicated by the look-around control operation; The updating of the game screen on the graphical user interface based on the adjusted shooting field of view of the virtual camera includes: Based on the adjusted shooting field of view of the virtual camera and the surround viewing angle, the game screen on the graphical user interface is updated.
3. The screen display method according to claim 2, characterized in that: The step of acquiring a touch parameter of the touch operation in response to the touch operation on the picture adjustment control includes: In response to a touch operation that is continuous with the look-around control operation, a touch parameter of the touch operation is acquired.
4. The screen display method according to claim 3, characterized in that: The look-around control operation includes a sliding operation, and the acquiring, in response to a touch operation continuous with the look-around control operation, a touch parameter of the touch operation includes: In response to a touch operation when a sliding speed corresponding to the sliding operation is less than a preset threshold, acquiring a touch parameter of the touch operation; or In response to the touch operation when the sliding operation stops, a touch parameter of the touch operation is acquired.
5. The screen display method according to any one of claims 1 to 4, characterized in that: The determining the image zoom factor based on the touch parameter includes: If the touch parameter meets the preset screen zoom trigger condition, the screen zoom factor is determined.
6. The screen display method according to claim 5, characterized in that: The touch parameter includes a pressing area. If the touch parameter meets a preset screen zoom trigger condition, before determining the screen zoom multiple, the method further includes: If the pressed area is greater than a preset area threshold, it is determined that the pressed area meets a preset screen zoom trigger condition.
7. The screen display method according to claim 6, characterized in that: The step of determining the picture zoom factor includes: Get the preset area mapping relationship; Based on the area mapping relationship, a screen zoom factor corresponding to the pressed area is determined.
8. The screen display method according to claim 5, characterized in that: The step of determining the picture zoom factor includes: A preset zoom value corresponding to the virtual camera is obtained, and the preset zoom value is used as the picture zoom factor.
9. The screen display method according to claim 5, characterized in that: The touch parameter includes a pressing pressure. If the touch parameter meets a preset screen zoom trigger condition, before determining the screen zoom multiple, the method further includes: If the pressing pressure is greater than a preset pressure threshold, it is determined that the pressing pressure meets a preset screen zoom trigger condition.
10. A screen display device, characterized in that: A graphical user interface is provided, wherein the graphical user interface displays a game screen and screen adjustment controls, and the device comprises: A parameter acquisition module, configured to acquire a touch parameter of a touch operation in response to a touch operation on the image adjustment control; A multiple determination module, used to determine the image zoom multiple based on the touch parameters; A field of view adjustment module, used to adjust the shooting field of view of the virtual camera shooting the game screen based on the screen zoom factor; The screen update module is used to update the game screen on the graphical user interface based on the adjusted shooting field of view of the virtual camera.
11. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the steps of the screen display method according to any one of claims 1 to 9.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps of the screen display method according to any one of claims 1 to 9.