Display control method and device in game, electronic equipment and readable storage medium
Patent Information
- Application Number
- CN202311468677.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-06
- Publication Date
- 2026-09-15
- Estimated Expiration
- 2043-11-06
AI Technical Summary
也就是说,在宽高比不同的显示器中显示出具有相同宽高比的游戏画面时,会在宽高比较小的显示器的上下两端出现黑幕(或者在宽高比较大的显示器的左右两端出现黑幕),这会导致出现黑幕的显示器的利用率较低
[0004] In view of this, the purpose of this application is to provide a display control method, device, electronic device and readable storage medium in games, so as to improve the utilization rate of the display screen with black screen when displaying game screens with the same aspect ratio on displays with different aspect ratios.
Smart Images

Figure CN117442962B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of game technology, and in particular to a display control method, device, electronic device, and readable storage medium in a game. Background Technology
[0002] Currently, many games are developed for multiple platforms. For example, some games have both mobile (e.g., smartphone) and PC (i.e., PC) versions. This allows players to play the same game on different devices; for instance, players can play the game on a mobile device as well as on a PC.
[0003] Because different devices have different aspect ratios (the ratio of the longer side to the shorter side), for example, mobile displays have a larger aspect ratio than PC displays. Therefore, when displaying game footage with the same aspect ratio on displays with different aspect ratios (e.g., displaying a mobile game on a PC monitor), two black bars will appear at the top and bottom of the PC monitor (display screen). In other words, when displaying game footage with the same aspect ratio on displays with different aspect ratios, black bars will appear at the top and bottom of the display with the smaller aspect ratio (or at the left and right edges of the larger aspect ratio), resulting in lower utilization of the display with the black bars. Summary of the Invention
[0004] In view of this, the purpose of this application is to provide a display control method, device, electronic device and readable storage medium in games, so as to improve the utilization rate of the display screen with black screen when displaying game screens with the same aspect ratio on displays with different aspect ratios.
[0005] In a first aspect, embodiments of this application provide a display control method in a game, the method comprising:
[0006] Determine the aspect ratio of the game screen to be displayed and the aspect ratio of the target monitor;
[0007] If the aspect ratio of the game screen to be displayed is different from that of the target display, a main display area and a secondary display area are determined in the target display under full-screen display mode; wherein, the aspect ratio of the main display area is the same as that of the game screen to be displayed, and the secondary display area is at least a portion of the display area in the target display other than the main display area;
[0008] The game screen to be displayed is shown in the main display area;
[0009] Other game screens corresponding to the game screen to be displayed are shown in the secondary display area.
[0010] Secondly, embodiments of this application also provide a display control device for a game, the device comprising:
[0011] The first determining module is used to determine the aspect ratio of the game screen to be displayed and the aspect ratio of the target display screen;
[0012] The second determining module is used to determine the main display area and the secondary display area in the target display under full-screen display state if the aspect ratio of the game screen to be displayed is different from that of the target display; wherein the aspect ratio of the main display area is the same as that of the game screen to be displayed, and the secondary display area is at least a portion of the display area in the target display other than the main display area;
[0013] The first display module is used to display the game screen to be displayed in the main display area;
[0014] The second display module is used to display other game screens in the game corresponding to the game screen to be displayed in the sub-display area.
[0015] Thirdly, embodiments of this application also provide an electronic device, including: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory via the bus, and when the machine-readable instructions are executed by the processor, the steps in any of the possible implementations of the first aspect described above are performed.
[0016] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps in any of the possible implementations of the first aspect described above.
[0017] This application provides a display control method, device, electronic device, and readable storage medium for games. When displaying a game screen on a target display, the aspect ratio of the game screen and the target display are first determined. If the aspect ratios of the game screen and the target display are different, a main display area and a secondary display area in full-screen mode are determined on the target display. The aspect ratio of the main display area is the same as that of the game screen, and the secondary display area is at least a portion of the display area on the target display excluding the main display area. The game screen is then displayed in the main display area, and other game screens corresponding to the game screen are displayed in the secondary display area. In this embodiment, when the aspect ratios of the game screen and the target display are different, the game screen is displayed in the main display area of the target display, and other game screens corresponding to the game screen are displayed in the secondary display area. In this case, not only the main display area of the target display is utilized, but the secondary display area is also utilized. This method improves the display utilization rate of the target display.
[0018] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0019] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This diagram illustrates the aspect ratio of the game screen to be displayed according to an embodiment of this application;
[0021] Figure 2 A schematic diagram showing the aspect ratio of the second display provided in an embodiment of this application is shown;
[0022] Figure 3 This illustration shows a schematic diagram of displaying a game screen to be displayed on a second display according to the original aspect ratio, as provided in an embodiment of this application.
[0023] Figure 4 A flowchart of a display control method in a game provided by an embodiment of this application is shown;
[0024] Figure 5 A schematic diagram of the main display area and the secondary display area provided in an embodiment of this application is shown;
[0025] Figure 6 A schematic diagram illustrating the drag distance provided in an embodiment of this application is shown;
[0026] Figure 7 This illustration shows another schematic diagram of the positional relationship between the main display area, the first sub-display area, and the second display area provided in an embodiment of this application;
[0027] Figure 8 A schematic diagram of a first drag operation provided in an embodiment of this application is shown;
[0028] Figure 9 This illustration shows a diagram of the controlled virtual character currently facing directly forward and directly backward, as provided in an embodiment of this application.
[0029] Figure 10 A schematic diagram of a game scene in a 2D game provided in an embodiment of this application is shown;
[0030] Figure 11 This illustration shows a schematic diagram of the game screen currently displayed in the main display area according to an embodiment of this application;
[0031] Figure 12 This illustration shows a schematic diagram of a game screen displayed in a first secondary display area, which is located directly in front of the game screen currently displayed in the main display area.
[0032] Figure 13 This illustration shows a schematic diagram of a game screen displayed in a second secondary display area, which is located directly behind the game screen currently displayed in the main display area, according to an embodiment of this application.
[0033] Figure 14 This illustration shows a schematic diagram of the structure of a display control device in a game provided in an embodiment of this application;
[0034] Figure 15 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown. Detailed Implementation
[0035] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0036] Currently, many games are developed for multiple platforms. For example, some games have both mobile (e.g., smartphone) and PC (i.e., PC) versions. This allows players to play the same game on different devices; for instance, players can play the game on a mobile device as well as on a PC.
[0037] Specifically, if the game screen to be displayed on the first display of the first terminal is displayed in full screen, it indicates that the aspect ratio of the first display is the same as that of the game screen to be displayed. The aspect ratio of the game screen to be displayed refers to the ratio of its width (long side) to its height (short side). The aspect ratio of the first display refers to the ratio of its width (long side) to its height (short side). For example, Figure 1 This illustration shows a schematic diagram of the aspect ratio of the game screen to be displayed provided in an embodiment of this application, such as... Figure 1 As shown, the aspect ratio of the game screen to be displayed is 16:9, so in this example, the aspect ratio of the first monitor is also 16:9. The first terminal can be either a mobile device or a PC. Mobile devices include mobile phones, tablets, etc.; PCs include desktop computers, etc.
[0038] At this point, if you want to display the game screen to be displayed on the first display on the second display of the second terminal, for example, Figure 2 A schematic diagram showing the aspect ratio of the second display provided in an embodiment of this application is shown, as follows. Figure 2 As shown, the aspect ratio of the second display is the ratio of its width (long side) to its height (short side). In this example, the aspect ratio of the second display is 4:3. It is evident that the aspect ratio of the game screen to be displayed is greater than that of the second display; that is, the aspect ratio of the second display is different from that of the game screen to be displayed (i.e., the aspect ratio of the second display is different from that of the first display).
[0039] When displaying the game on a second monitor, one method is to completely fill the second monitor with the game image. However, because the aspect ratio of the second monitor is smaller than that of the game image (i.e., smaller than that of the first monitor), the game image displayed on the second monitor will appear shorter than it appears on the first monitor. In other words, displaying the same game on monitors with different aspect ratios will result in different game images on the two monitors (for example, the game image will appear shorter on the monitor with the smaller aspect ratio). If a player is accustomed to playing the game on one aspect ratio monitor, using a monitor with a different aspect ratio can easily disrupt their control habits and negatively impact their gaming experience.
[0040] Another display method is to display the game screen on a second monitor according to its original aspect ratio. Figure 3 This illustration shows a schematic diagram of displaying the game screen to be displayed on a second display according to the original aspect ratio, as provided in an embodiment of this application. Figure 3 As shown, this will cause black screens to appear at the top and bottom of the second monitor. In other words, when displaying game images with the same aspect ratio on monitors with different aspect ratios, black screens will appear at the top and bottom of the monitor with the smaller aspect ratio (such as the second monitor) (or at the left and right sides of the monitor with the larger aspect ratio). This will result in lower utilization of the monitor with the black screen (such as the second monitor).
[0041] Considering that when displaying game images with the same aspect ratio on monitors with different aspect ratios, black screens appear at the top and bottom of the monitor with a smaller aspect ratio (or at the left and right sides of the monitor with a larger aspect ratio), this results in low utilization of the monitor displaying the black screen. Therefore, this application provides a display control method, apparatus, electronic device, and readable storage medium for games to improve the utilization of monitors displaying black screens when displaying game images with the same aspect ratio on monitors with different aspect ratios.
[0042] It should be noted in advance that the term "comprising" will be used in the embodiments of this application to indicate the presence of the features subsequently declared, but does not exclude the addition of other features. The methods involved in this application can be applied to any game that includes display control, and no specific game or game type is specifically limited here.
[0043] Example 1:
[0044] To facilitate understanding of this embodiment, a display control method in a game disclosed in this application embodiment will be described in detail first. Figure 4 A flowchart of a display control method in a game provided by an embodiment of this application is shown, such as... Figure 4 As shown, the process includes the following steps S101-S104:
[0045] S101: Determine the aspect ratio of the game screen to be displayed and the aspect ratio of the target monitor.
[0046] In this embodiment, the game screen to be displayed can be at least a portion of the game screen and a controlled virtual character located in the at least a portion of the game scene. To display the game screen to be displayed on a target display (e.g., a second display), the aspect ratio of the game screen to be displayed and the aspect ratio of the target display are first determined. Continuing with the previous example, the aspect ratio of the game screen to be displayed is 16:9, and the aspect ratio of the target display is 4:3.
[0047] S102: If the aspect ratio of the game screen to be displayed is different from that of the target display, determine the main display area and the secondary display area in the full-screen display state in the target display; wherein, the aspect ratio of the main display area is the same as that of the game screen to be displayed, and the secondary display area is at least part of the display area in the target display other than the main display area.
[0048] In this embodiment, Figure 5 A schematic diagram of the main display area and the secondary display area provided in the embodiments of this application is shown, as follows: Figure 5 As shown, the aspect ratio of the main display area is the same as that of the game screen to be displayed, for example, both are 16:9.
[0049] In this embodiment, the secondary display area can be the entire display area of the target display other than the main display area, that is, the entire black screen area; or it can be a part of the display area of the target display other than the main display area, that is, a part of the black screen area. In this case, the position and size of the secondary display area in the target display (e.g., in the black screen area) can be set according to the player's needs.
[0050] S103: Display the game screen to be displayed in the main display area.
[0051] In this embodiment, since the aspect ratio of the main display area is the same as that of the game screen to be displayed, the game screen to be displayed can be displayed in full screen in the main display area according to the original aspect ratio of the game screen to be displayed.
[0052] S104: Display other game screens in the game corresponding to the game screen to be displayed in the secondary display area.
[0053] In this embodiment, other game screens can be other game screens in the target game's game screen besides the game screen to be displayed, or they can be a partially enlarged game screen in the game screen to be displayed.
[0054] In this embodiment, compared to the problem of the game screen appearing shorter when it completely fills the target display, the method in this embodiment can fully display the content of the game screen without affecting the player's operating habits and gaming experience. Furthermore, compared to displaying the game screen according to its original aspect ratio, which results in black screens at the top and bottom of the target display, the method in this embodiment improves the display utilization rate of the target display by displaying other game screens from the target game corresponding to the game screen in the black screen areas (e.g., in the secondary display area).
[0055] In one possible implementation, after displaying the game screen to be displayed in full screen in the main display area according to the original aspect ratio, the following steps can also be performed in the main display area: responding to the movement control operation of the controlled virtual character in the game screen to be displayed, and controlling the controlled virtual character to move.
[0056] During gameplay, the game screen displayed in the main display area includes at least a portion of the game scene and a controlled virtual character located within that scene. Players can control the movement of the virtual character using a control medium. This control medium includes external devices and / or the main display area; external devices may include a mouse, keyboard, and gamepad. Movement parameters include movement speed and direction.
[0057] In one possible implementation, after performing step S101, the following steps may also be performed:
[0058] If the aspect ratio of the game screen to be displayed is the same as that of the target monitor, the game screen to be displayed will be displayed in full screen on the target monitor.
[0059] In this embodiment, if the aspect ratio of the game screen to be displayed is the same as that of the target display, the game screen to be displayed will be displayed in full screen on the target display according to the original aspect ratio of the game screen to be displayed.
[0060] In one possible implementation, when performing step S104, specifically: display the game screen of other perspectives in the current game corresponding to the game screen to be displayed in the sub-display area.
[0061] Among them, game screens from other perspectives refer to game screens from perspectives different from the game screen to be displayed.
[0062] In one possible implementation, when there are at least two sub-display areas, step S104 can be performed according to the following steps:
[0063] S1041: In response to a view expansion operation for the view expansion control, display other game screens in the game corresponding to the game screen to be displayed in the secondary display area indicated by the view expansion operation.
[0064] In this embodiment, the field of view expansion control can be located in the main display area, and other game screens can be game screens that are not currently displayed in the main display area of the current game.
[0065] During gameplay, players can use the control panel to expand their field of view, displaying other game scenes in the secondary display area indicated by the expanded field of view. Specifically, the expanded field of view can be dragged; the player drags the expanded field of view control from the main display area to a secondary display area, where other game scenes will be displayed.
[0066] In one possible implementation, step S1041 can be performed according to the following steps:
[0067] Respond to the view expansion operation for the view expansion control, and determine the view expansion distance based on the operation distance for the view expansion control in the view expansion operation;
[0068] The game screen, at a distance from the current game position of the controlled virtual character in the game screen to be displayed, is shown in the secondary display area indicated by the field of view expansion operation.
[0069] In this embodiment, when the field of view expansion operation is a drag operation, the field of view expansion distance is determined based on the drag distance of the field of view expansion control in the drag operation.
[0070] In one possible implementation, when performing the step of responding to a field of view expansion operation for a field of view expansion control and determining the field of view expansion distance based on the operation distance for the field of view expansion control in the field of view expansion operation, the specific steps can be as follows: responding to a field of view expansion operation for a field of view expansion control and determining the field of view expansion distance based on the operation distance for the field of view expansion control in the field of view expansion operation and a preset ratio.
[0071] In this embodiment, when the field of view expansion operation is a drag operation, the field of view expansion distance is determined based on the drag distance of the field of view expansion control and a preset ratio in response to the drag operation of the field of view expansion control.
[0072] Figure 6 A schematic diagram of the drag distance provided in an embodiment of this application is shown, such as... Figure 6 As shown, the drag distance d refers to the distance from the original position of the view expansion control to the current position of the view expansion control when the drag operation is completed.
[0073] For example, when the preset ratio is 1:100, if the drag distance d is 5cm, then the field of view expansion distance is 500cm, or 5m. At this time, the game screen displayed in the secondary display area indicated by the field of view expansion operation is 5m away from the current game scene location of the controlled virtual character.
[0074] In one possible implementation, the other game screens displayed in the sub-display area are game scenes relative to the controlled virtual character in the game screen to be displayed, in a target direction; the target direction is determined based on the sub-display area indicated by the field of view expansion operation and the game type corresponding to the game screen to be displayed.
[0075] In one possible implementation, the secondary display area includes a first secondary display area and a second secondary display area; the primary display area is located between the first secondary display area and the second secondary display area.
[0076] In this embodiment, the first sub-display area is the same size as the second sub-display area, and they are located on either side of the main display area. In a specific embodiment, such as Figure 5 As shown, the secondary display area located above the main display area is designated as the first secondary display area, and the secondary display area located below the main display area is designated as the second secondary display area. In another specific embodiment, Figure 7 This illustration shows another schematic diagram illustrating the positional relationship between the main display area, the first sub-display area, and the second sub-display area provided in an embodiment of this application. Figure 7 As shown, the first secondary display area is located to the left of the main display area, and the second secondary display area is located to the right of the main display area.
[0077] In one possible implementation, when the game type corresponding to the game screen to be displayed is a 3D game, step S1041 can be executed as follows: in response to a first drag operation on the field of view expansion control, when the sub-display area indicated by the first drag operation is a first sub-display area, a first game scene currently facing upwards and directly forward is displayed in the first sub-display area; when the sub-display area indicated by the first drag operation is a second sub-display area, a second game scene currently facing upwards and directly backwards is displayed in the second sub-display area.
[0078] In this embodiment, in a 3D game, when the controlled virtual character moves in the game scene, the game screen to be displayed in the main display area will change as the controlled virtual character moves in the game scene.
[0079] Figure 8 The diagram illustrates a first drag operation provided in an embodiment of this application, as shown below. Figure 8 As shown, when no operation is performed on the field-of-view expansion control, its original position is in the main display area. In this embodiment, when the player drags the field-of-view expansion control to the first secondary display area using the control medium, a first game scene is displayed in the first secondary display area, showing the direction the controlled virtual character is currently facing upwards. When the player drags the field-of-view expansion control to the second secondary display area using the control medium, a second game scene is displayed in the second secondary display area, showing the direction the controlled virtual character is currently facing upwards and backwards.
[0080] Figure 9 This illustration shows a diagram illustrating the current orientation of the controlled virtual character towards the front and rear, as provided in an embodiment of this application. Figure 9 As shown, the controlled virtual character is the virtual character currently controlled by the player. The current orientation of the controlled virtual character refers to the current orientation of the controlled virtual character's face, or the orientation of the controlled virtual character's current field of vision.
[0081] In this embodiment, the first game scene can be a game scene that is not currently displayed in the main display area of the current game, and the second game scene can also be a game scene that is not currently displayed in the main display area of the current game.
[0082] In this embodiment, when the game type is a 3D game, in the execution step responding to the first drag operation of the field of view expansion control, when the sub-display area indicated by the first drag operation is a first sub-display area, the first game scene currently facing upwards and directly forward is displayed in the first sub-display area; when the sub-display area indicated by the first drag operation is a second sub-display area, the second game scene currently facing upwards and directly backwards is displayed in the second sub-display area, specifically it can be:
[0083] In response to the first drag operation on the view expansion control, determine the view expansion distance based on the drag distance on the view expansion control in the first drag operation and a preset ratio;
[0084] When the secondary display area indicated by the first drag operation is the first secondary display area, the first game scene is displayed in the first secondary display area, which is currently facing directly upwards and is a distance from the current game scene location of the controlled virtual character by the field of view expansion distance.
[0085] When the secondary display area indicated by the first drag operation is the second secondary display area, the second secondary display area displays the second game scene that is directly behind the currently facing direction of the controlled virtual character and is a distance from the current game scene location of the controlled virtual character at the field of view expansion distance.
[0086] In one possible implementation, when the game type corresponding to the game screen to be displayed is a 2D game, step S1041 can be executed according to the following steps:
[0087] In response to a second drag operation on the field of view expansion control, a third game scene is displayed in the secondary display area indicated by the second drag operation; when the secondary display area indicated by the second drag operation is the first secondary display area, the third game scene is the game screen directly in front of the game screen to be displayed; when the secondary display area indicated by the second drag operation is the second secondary display area, the third game scene is the game screen directly behind the game screen to be displayed.
[0088] In this embodiment, in a 2D game, when the controlled virtual character moves in the game scene, the game screen to be displayed in the main display area is usually unchanged. That is to say, the game screen to be displayed in the main display area will not change as the controlled virtual character moves in the game scene.
[0089] During gameplay, when a player drags the field-of-view expansion control to the first secondary display area using the control medium, the game screen directly in front of the game screen currently displayed in the main display area is displayed in the first secondary display area. However, the game screen directly in front of the game screen currently displayed in the main display area is not displayed in the game screen currently displayed in the main display area.
[0090] Similarly, when the player drags the field-of-view expansion control to the second sub-display area using the control medium, the game screen directly behind the currently displayed game screen in the main display area is shown in the second sub-display area. The game screen directly behind the currently displayed game screen in the main display area is not displayed within the currently displayed game screen in the main display area.
[0091] For example, Figure 10 This application provides a schematic diagram of a game scene in a 2D game, as illustrated in an embodiment of the present application. Figure 11 The diagram illustrates the game screen currently displayed in the main display area provided in this application embodiment. It can be seen that the main display area displays a portion of the game scene, meaning that the game screen to be displayed is only a portion of the game scene, and a portion of the game scene is not displayed in the main display area.
[0092] In this embodiment, Figure 12 This illustration shows a schematic diagram of a game screen displayed in front of the game screen currently displayed in the main display area, as provided in an embodiment of this application. Figure 13 This illustration shows a schematic diagram of a game screen displayed in a second secondary display area, which is located directly behind the game screen currently displayed in the main display area, according to an embodiment of this application.
[0093] In this embodiment, when the game type is a 2D game, when the execution step responds to the second drag operation for the field of view expansion control and displays the third game scene in the secondary display area indicated by the second drag operation, it can specifically be as follows:
[0094] In response to a second drag operation targeting the field of view expansion control, the field of view expansion distance is determined based on the drag distance of the field of view expansion control in the second drag operation and a preset ratio; a third game scene is displayed in the secondary display area indicated by the second drag operation, which is a distance from the field of view expansion distance of the game screen currently displayed in the main display area.
[0095] Specifically, when the secondary display area indicated by the second drag operation is the first secondary display area, a third game scene is displayed in the first secondary display area at a distance from the field of view's expansion distance from the game screen currently displayed in the main and secondary display areas, and this third game scene is the game scene directly in front of the game screen currently displayed in the main display area. When the secondary display area indicated by the second drag operation is the second secondary display area, a third game scene is displayed in the second secondary display area at a distance from the field of view's expansion distance from the game screen currently displayed in the main and secondary display areas, and this third game scene is the game scene directly behind the game screen currently displayed in the main display area.
[0096] In one possible implementation, when the game type corresponding to the game screen to be displayed is a game that includes multiple sequentially connected virtual battle rooms, and the main display area displays the game screen to be displayed in the virtual battle room where the controlled virtual character is currently located, step S1041 can be executed according to the following steps:
[0097] In response to a third drag operation on the field-of-view expansion control, at least a portion of the game screen of the target virtual battle room is displayed in the secondary display area indicated by the third drag operation; wherein, when the secondary display area indicated by the third drag operation is a first secondary display area, the target virtual battle room is the virtual battle room preceding the virtual battle room where the controlled virtual character is currently located; when the secondary display area indicated by the third drag operation is a second secondary display area, the target virtual battle room is the virtual battle room following the virtual battle room where the controlled virtual character is currently located.
[0098] In this embodiment, the game includes multiple virtual battle rooms. Other virtual characters in the same team as the controlled virtual character can be located in other virtual battle rooms, which are virtual battle rooms other than the one currently occupied by the controlled virtual character. During gameplay, the player can drag the view expansion control to the first secondary display area to display at least a portion of the game screen of the virtual battle room preceding the one currently occupied by the controlled virtual character, allowing the player to see the game screens of other players in the same team.
[0099] Similarly, by dragging the field of view expansion control to the second sub-display area, players can display at least part of the game screen of the next virtual battle room after the virtual battle room where the controlled virtual character is currently located, allowing players to see the game screen of another player on the same team.
[0100] In one possible implementation, the method further includes: when the controlled virtual character is attacked by an enemy virtual character, displaying an injury warning message for the controlled virtual character in the main display area;
[0101] When the game type corresponding to the game screen to be displayed is a fighting game, in step S1041, specifically:
[0102] In response to a fourth drag operation on the field of view expansion control containing injury warning information, when the direction indicated by the fourth drag operation is the same as the direction of the enemy virtual character relative to the controlled virtual character, a portion of the game screen containing the enemy virtual character is displayed in the secondary display area indicated by the fourth drag operation.
[0103] In this embodiment, the injury notification information may include the attack direction, that is, the direction in which the enemy virtual character attacks the controlled virtual character, and also the direction in which the enemy virtual character is relative to the controlled virtual character.
[0104] Specifically, when the enemy virtual character is in front of the controlled virtual character's current facing direction, the secondary display area indicated by the fourth drag operation becomes the first secondary display area, and a portion of the game screen containing the enemy virtual character is displayed in the first secondary display area; when the enemy virtual character is behind the controlled virtual character's current facing direction, the secondary display area indicated by the fourth drag operation becomes the second secondary display area, and a portion of the game screen containing the enemy virtual character is displayed in the second secondary display area.
[0105] Example 2:
[0106] Based on the same technical concept, this application also provides a display control device for games. Figure 14This application provides a schematic diagram of the structure of a display control device in a game, as shown in the embodiment of the present application. Figure 14 As shown, the device includes:
[0107] The first determining module 1401 is used to determine the aspect ratio of the game screen to be displayed and the aspect ratio of the target display screen;
[0108] The second determining module 1402 is used to determine a main display area and a secondary display area in the target display under full-screen display state if the aspect ratio of the game screen to be displayed is different from that of the target display; wherein the aspect ratio of the main display area is the same as that of the game screen to be displayed, and the secondary display area is at least a portion of the display area in the target display other than the main display area.
[0109] The first display module 1403 is used to display the game screen to be displayed in the main display area;
[0110] The second display module 1404 is used to display other game screens in the game corresponding to the game screen to be displayed in the sub-display area.
[0111] Optional, also includes:
[0112] The third display module is used to display the game screen to be displayed in full screen on the target display if the aspect ratio of the game screen to be displayed is the same as that of the target display.
[0113] Optionally, when the second display module 1404 displays other game screens corresponding to the game screen to be displayed in the sub-display area, it is specifically used for:
[0114] The secondary display area displays game footage from other perspectives within the current game, corresponding to the game footage to be displayed.
[0115] Optionally, when there are at least two secondary display areas, the second display module 1404, when displaying other game screens corresponding to the game screen to be displayed in the secondary display areas, is specifically used for:
[0116] In response to a field-of-view expansion operation on the field-of-view expansion control, other game screens corresponding to the game screen to be displayed are displayed in the secondary display area indicated by the field-of-view expansion operation.
[0117] Optionally, the other game screens displayed in the secondary display area are game scenes relative to the controlled virtual character in the game screen to be displayed, in a target direction; the target direction is determined based on the game type of the secondary display area indicated by the field of view expansion operation and the game screen to be displayed.
[0118] Optionally, the secondary display area includes a first secondary display area and a second secondary display area; the main display area is located between the first secondary display area and the second secondary display area.
[0119] Optionally, when the game type corresponding to the game screen to be displayed is a 3D game, the second display module 1404, in response to a field-of-view expansion operation for the field-of-view expansion control, displays other game screens corresponding to the game screen to be displayed in the sub-display area indicated by the field-of-view expansion operation, is specifically used for:
[0120] In response to a first drag operation on the field of view expansion control, when the sub-display area indicated by the first drag operation is the first sub-display area, a first game scene currently facing upwards and directly forward is displayed in the first sub-display area; when the sub-display area indicated by the first drag operation is the second sub-display area, a second game scene currently facing upwards and directly backwards is displayed in the second sub-display area.
[0121] Optionally, when the game type corresponding to the game screen to be displayed is a 2D game, the second display module 1404, in response to a field-of-view expansion operation for the field-of-view expansion control, displays other game screens corresponding to the game screen to be displayed in the sub-display area indicated by the field-of-view expansion operation, specifically for:
[0122] In response to a second drag operation on the field of view expansion control, a third game scene is displayed in the secondary display area indicated by the second drag operation; when the secondary display area indicated by the second drag operation is the first secondary display area, the third game scene is the game screen directly in front of the game screen to be displayed; when the secondary display area indicated by the second drag operation is the second secondary display area, the third game scene is the game screen directly behind the game screen to be displayed.
[0123] Optionally, when the second display module 1404 responds to a field-of-view expansion operation for the field-of-view expansion control and displays other game screens corresponding to the game screen to be displayed in the sub-display area indicated by the field-of-view expansion operation, it is specifically used for:
[0124] In response to a field of view expansion operation for a field of view expansion control, determine the field of view expansion distance based on the operation distance for the field of view expansion control in the field of view expansion operation;
[0125] The game screen, at a distance from the current game position of the controlled virtual character in the game screen to be displayed, is displayed in the secondary display area indicated by the field of view expansion operation.
[0126] Optionally, when the second display module 1404 responds to a field-of-view expansion operation for the field-of-view expansion control and determines the field-of-view expansion distance based on the operation distance for the field-of-view expansion control in the field-of-view expansion operation, it is specifically used for:
[0127] In response to a field-of-view expansion operation targeting a field-of-view expansion control, the field-of-view expansion distance is determined based on the operation distance targeting the field-of-view expansion control and a preset ratio.
[0128] Optionally, when the game type corresponding to the game screen to be displayed is a game containing multiple sequentially connected virtual battle rooms, and the main display area displays the game screen to be displayed in the virtual battle room where the controlled virtual character is currently located, the second display module 1404, in response to a field-of-view expansion operation for the field-of-view expansion control, displays other game screens in the game corresponding to the game screen to be displayed in the sub-display area indicated by the field-of-view expansion operation, is specifically used for:
[0129] In response to a third drag operation on the field-of-view expansion control, at least a portion of the game screen of the target virtual battle room is displayed in the secondary display area indicated by the third drag operation; wherein, when the secondary display area indicated by the third drag operation is the first secondary display area, the target virtual battle room is the virtual battle room preceding the virtual battle room currently occupied by the controlled virtual character; when the secondary display area indicated by the third drag operation is the second secondary display area, the target virtual battle room is the virtual battle room following the virtual battle room currently occupied by the controlled virtual character.
[0130] Optionally, the device further includes:
[0131] The fourth display module is used to display an injury warning message of the controlled virtual character in the main display area when the controlled virtual character is attacked by an enemy virtual character.
[0132] When the game type corresponding to the game screen to be displayed is a battle game, the second display module 1404, in response to a field-of-view expansion operation for the field-of-view expansion control, displays other game screens corresponding to the game screen to be displayed in the sub-display area indicated by the field-of-view expansion operation, specifically for:
[0133] In response to a fourth drag operation on the field of view expansion control containing the injury notification information, when the direction indicated by the fourth drag operation is the same as the direction of the enemy virtual character relative to the controlled virtual character, a portion of the game screen containing the enemy virtual character is displayed in the secondary display area indicated by the fourth drag operation.
[0134] Example 3:
[0135] Figure 15 A schematic diagram of an electronic device provided in this application embodiment includes: a processor 1501, a memory 1502, and a bus 1503. The memory 1502 stores machine-readable instructions executable by the processor 1501. When the electronic device runs the above-described information processing method, the processor 1501 communicates with the memory 1502 via the bus 1503. The processor 1501 executes the machine-readable instructions to perform the steps of the method described in Embodiment 1.
[0136] Example 4:
[0137] Embodiment 4 of this application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps described in Embodiment 1.
[0138] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the devices, electronic devices, and computer-readable storage media described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0139] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the coupling or direct coupling or communication connection shown or discussed may be through some communication interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0140] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0141] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0142] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a processor-executable, non-volatile, computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0143] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The scope of protection of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application. Such modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.
Claims
1. A display control method in a game, characterized in that, The method includes: Determine the aspect ratio of the game screen to be displayed and the aspect ratio of the target monitor; If the aspect ratio of the game screen to be displayed is different from that of the target display, a main display area and a secondary display area are determined in the target display under full-screen display mode; wherein, the aspect ratio of the main display area is the same as that of the game screen to be displayed, and the secondary display area is at least a portion of the display area in the target display other than the main display area; The game screen to be displayed is shown in the main display area; Other game screens in the game corresponding to the game screen to be displayed are shown in the secondary display area; When there are at least two secondary display areas, displaying other game screens in the game corresponding to the game screen to be displayed in the secondary display areas includes: In response to a field of view expansion operation for the field of view expansion control, other game screens in the game corresponding to the game screen to be displayed are displayed in the sub-display area indicated by the field of view expansion operation. The other game scenes displayed in the secondary display area are game scenes relative to the controlled virtual character in the game screen to be displayed, in a target direction; the target direction is determined according to the game type of the secondary display area indicated by the field of view expansion operation and the game screen to be displayed.
2. The method according to claim 1, characterized in that, Also includes: If the aspect ratio of the game screen to be displayed is the same as that of the target display, the game screen to be displayed is displayed in full screen on the target display.
3. The method according to claim 1, characterized in that, Displaying other game screens in the game corresponding to the game screen to be displayed in the secondary display area includes: The secondary display area displays game footage from other perspectives within the current game, corresponding to the game footage to be displayed.
4. The method according to claim 1, characterized in that, The secondary display area includes a first secondary display area and a second secondary display area; the main display area is located between the first secondary display area and the second secondary display area.
5. The method according to claim 4, characterized in that, When the game type corresponding to the game screen to be displayed is a 3D game, the response to the field of view expansion operation of the field of view expansion control displays other game screens corresponding to the game screen to be displayed in the secondary display area indicated by the field of view expansion operation, including: In response to a first drag operation on the field of view expansion control, when the sub-display area indicated by the first drag operation is the first sub-display area, a first game scene currently facing upwards and directly forward is displayed in the first sub-display area; when the sub-display area indicated by the first drag operation is the second sub-display area, a second game scene currently facing upwards and directly backwards is displayed in the second sub-display area.
6. The method according to claim 4, characterized in that, When the game type corresponding to the game screen to be displayed is a 2D game, the response to the view expansion operation of the view expansion control displays other game screens corresponding to the game screen to be displayed in the secondary display area indicated by the view expansion operation, including: In response to a second drag operation on the field of view expansion control, a third game scene is displayed in the secondary display area indicated by the second drag operation; when the secondary display area indicated by the second drag operation is the first secondary display area, the third game scene is the game screen directly in front of the game screen to be displayed; when the secondary display area indicated by the second drag operation is the second secondary display area, the third game scene is the game screen directly behind the game screen to be displayed.
7. The method according to claim 1, characterized in that, In response to a view expansion operation on the view expansion control, other game screens corresponding to the game screen to be displayed are shown in the secondary display area indicated by the view expansion operation, including: In response to a field of view expansion operation for a field of view expansion control, determine the field of view expansion distance based on the operation distance for the field of view expansion control in the field of view expansion operation; The game screen, at a distance from the current game position of the controlled virtual character in the game screen to be displayed, is displayed in the secondary display area indicated by the field of view expansion operation.
8. The method according to claim 7, characterized in that, In response to a view expansion operation targeting a view expansion control, the view expansion distance is determined based on the operation distance targeting the view expansion control in the view expansion operation, including: In response to a field-of-view expansion operation targeting the field-of-view expansion control, the field-of-view expansion distance is determined based on the operation distance targeting the field-of-view expansion control and a preset ratio.
9. The method according to claim 4, characterized in that, When the game type corresponding to the game screen to be displayed is a game containing multiple sequentially connected virtual battle rooms, and the main display area displays the game screen to be displayed in the virtual battle room where the controlled virtual character is currently located, the response to the view expansion operation of the view expansion control displays other game screens corresponding to the game screen to be displayed in the secondary display area indicated by the view expansion operation, including: In response to a third drag operation on the field-of-view expansion control, at least a portion of the game screen of the target virtual battle room is displayed in the secondary display area indicated by the third drag operation; wherein, when the secondary display area indicated by the third drag operation is the first secondary display area, the target virtual battle room is the virtual battle room preceding the virtual battle room currently occupied by the controlled virtual character; when the secondary display area indicated by the third drag operation is the second secondary display area, the target virtual battle room is the virtual battle room following the virtual battle room currently occupied by the controlled virtual character.
10. The method according to claim 1, characterized in that, The method further includes: When the controlled virtual character is attacked by an enemy virtual character, an injury warning message for the controlled virtual character is displayed in the main display area; When the game type corresponding to the game screen to be displayed is a fighting game, the response to the field of view expansion operation of the field of view expansion control displays other game screens corresponding to the game screen to be displayed in the secondary display area indicated by the field of view expansion operation, including: In response to a fourth drag operation on the field of view expansion control containing the injury notification information, when the direction indicated by the fourth drag operation is the same as the direction of the enemy virtual character relative to the controlled virtual character, a portion of the game screen containing the enemy virtual character is displayed in the secondary display area indicated by the fourth drag operation.
11. A display control device for a game, characterized in that, The device includes: The first determining module is used to determine the aspect ratio of the game screen to be displayed and the aspect ratio of the target display screen; The second determining module is used to determine the main display area and the secondary display area in the target display under full-screen display state if the aspect ratio of the game screen to be displayed is different from that of the target display; wherein, the aspect ratio of the main display area is the same as that of the game screen to be displayed, and the secondary display area is at least a portion of the display area in the target display other than the main display area; The first display module is used to display the game screen to be displayed in the main display area; The second display module is used to display other game screens in the game corresponding to the game screen to be displayed in the sub-display area; When there are at least two secondary display areas, the second display module, when used to display other game screens in the game corresponding to the game screen to be displayed in the secondary display areas, is specifically used for: In response to a field of view expansion operation for the field of view expansion control, other game screens in the game corresponding to the game screen to be displayed are displayed in the sub-display area indicated by the field of view expansion operation. The other game scenes displayed in the secondary display area are game scenes relative to the controlled virtual character in the game screen to be displayed, in a target direction; the target direction is determined according to the game type of the secondary display area indicated by the field of view expansion operation and the game screen to be displayed.
12. An electronic device, characterized in that, include: The device includes a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is in operation, the processor communicates with the memory via the bus, and the machine-readable instructions, when executed by the processor, perform the steps of the method as described in any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the method as described in any one of claims 1 to 10.
Citation Information
Patent Citations
Game screen display method, storage medium and terminal
CN109126131A
Game picture switching method and device, electronic equipment and storage medium
CN112619137A