Information processing method and device in game, readable storage medium and electronic equipment
By responding to camera module lens occlusion operations in the graphical user interface of the terminal device, the display area is determined and switched, solving the problem of single game screen display, realizing the simultaneous display of virtual reality scenes, and improving the user interaction experience.
Patent Information
- Application Number
- CN202210389237.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-13
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2042-04-13
AI Technical Summary
Existing technologies often result in monotonous game screen displays, abrupt transitions between virtual and real-world scenes, insufficient interactivity, and negatively impact user experience.
By responding to the occlusion operation of the terminal device's camera module lens, the target display area is determined in the graphical user interface, and the content of that area is switched from the first screen to the target screen, so as to realize the simultaneous display of virtual game scenes and real scenes.
It enhances the richness of game visuals and the user's interactive gaming experience, and strengthens the interactivity between virtual reality scenes.
Smart Images

Figure CN114733197B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of human-computer interaction, and in particular, to a game information processing method, a game information processing apparatus, a computer readable storage medium and an electronic device. BACKGROUND
[0002] At present, most games display game pictures corresponding to fictitious game scenes in the game process. Although some games are provided with AR (Augmented Reality) function, they can only switch from a virtual game scene to a real scene and the corresponding game pictures are switched from the virtual game scene pictures to the real scene pictures after a user clicks an entry button, that is, the graphical user interface displays either the virtual game scene pictures or the real scene pictures, and cannot display both the virtual game scene pictures and the real scene pictures.
[0003] Obviously, the game pictures displayed in the prior art are relatively single, and the switching display between different types of game pictures is too large in jumps and has poor interactivity, which affects the user's game experience.
[0004] It should be noted that the information disclosed in the above background section is only used to strengthen the understanding of the background of the present disclosure, and therefore can include information that does not constitute prior art known to those of ordinary skill in the art. SUMMARY
[0005] The purpose of the present disclosure is to provide a game picture display method and device, a computer readable storage medium and an electronic device, thereby at least partially improving the problem of poor interactivity and poor user experience when displaying game pictures.
[0006] Other characteristics and advantages of the present disclosure will become apparent from the following detailed description, or will be learned by practice of the present disclosure.
[0007] According to a first aspect of the present disclosure, a game information processing method is provided, applied to a terminal device including a camera module, the method comprising: displaying a first picture in a graphical user interface of the terminal device; in response to a blocking operation on a lens of the camera module, determining a target display area in the graphical user interface according to the blocking situation of the lens; and switching the content displayed in the target display area from a partial picture in the first picture to a target picture.
[0008] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the response to the blocking operation of the lens of the camera module, and determining the target display area in the graphical user interface according to the blocking condition of the lens, includes: responding to the partial blocking operation of the lens of the camera module, and determining the target display area in the graphical user interface according to the blocking condition of the lens.
[0009] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, determining the target display area in the graphical user interface according to the occlusion of the lens includes: determining the target display area according to the display area corresponding to the occluded portion of the lens in the graphical user interface; or determining the target display area according to the display area corresponding to the unoccluded portion of the lens in the user interface.
[0010] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the first picture is a real scene picture generated by the lens of the camera module, and the target picture is a virtual scene picture corresponding to the game; or the first picture is a virtual scene picture corresponding to the game, and the target picture is a real scene picture generated by the lens of the camera module; or the first picture is a virtual scene picture corresponding to the game, and the target picture is a scene thumbnail corresponding to the virtual scene of the game.
[0011] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, the response to the blocking operation of the lens of the camera module determines the target display area in the graphical user interface according to the blocking condition of the lens, including: responding to the blocking operation of the lens of the camera module, determining the color block area formed by the blocked part of the lens in the first picture; and determining the target display area in the graphical user interface according to the color block area.
[0012] In an exemplary embodiment of the present disclosure, based on the aforementioned scheme, before determining the target display area in the graphical user interface based on the color block area, the method also includes: adjusting the color of the color block area so that the color block area is visually distinguishable on the graphical user interface.
[0013] In an exemplary embodiment of the present disclosure, based on the aforementioned solution, the method further includes: adjusting the display size of the target display area in the graphical user interface in response to an adjustment operation on the occlusion area of the lens of the camera module.
[0014] In an example embodiment of the present disclosure, based on the foregoing scheme, the method further includes: in response to the display size of the target display area in the graphical user interface satisfying a first preset condition, controlling a target game character in the game to perform a target game action.
[0015] In an example embodiment of the present disclosure, based on the foregoing scheme, the game includes a decryption game; the method further includes: in response to the display size of the target display area in the graphical user interface satisfying a second preset condition, displaying a decryption clue and / or a decryption element corresponding to the second preset condition in the graphical user interface.
[0016] According to a second aspect of the present disclosure, there is provided an information processing device in a game, applied to a terminal device, the terminal device including a camera module, the device including: a game picture display module configured to display a first picture in a graphical user interface of the terminal device; a target display area determination module configured to determine a target display area in the graphical user interface according to an occlusion operation of a lens of the camera module in response to the occlusion operation of the lens; and a local game picture switching module configured to switch content displayed in the target display area from a local picture in the first picture to a target picture.
[0017] According to a third aspect of the present disclosure, there is provided a computer readable storage medium having a computer program stored thereon, the program being executed by a processor to implement the information processing method in a game according to the first aspect of the above-described embodiments.
[0018] According to a fourth aspect of the present disclosure, there is provided an electronic device including: a processor; and a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, causing the one or more processors to implement the information processing method in a game according to the first aspect of the above-described embodiments.
[0019] From the above technical solutions, it can be seen that the information processing method in a game, the information processing device in a game, and the computer readable storage medium and the electronic device for implementing the information processing method in a game according to the example embodiments of the present disclosure have at least the following advantages and positive effects:
[0020] In the technical solutions provided in some embodiments of the present disclosure, it is possible to respond to an occlusion operation on the lens of a camera module of a terminal device, determine a target display area in the graphical user interface of the terminal device according to the occlusion of the lens, and then switch the content displayed in the target display area from a partial screen in the first screen displayed in the graphical user interface of the terminal device to the target screen. Compared with related technologies, the present disclosure can switch a partial screen in the first screen displayed in the graphical user interface to the target screen in response to an occlusion operation on the camera module of the terminal device, thereby improving the richness of the game screen display and enhancing the user's game interaction experience.
[0021] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and those skilled in the art can derive other drawings based on these drawings without inventive effort.
[0023] Figure 1 A schematic flow chart showing an information processing method in a game according to an exemplary embodiment of the present disclosure;
[0024] Figure 2 A schematic flow chart illustrating a method for determining a target display area in an exemplary embodiment of the present disclosure;
[0025] Figure 3 The following illustrates a screen displayed after a partial screen in a game screen is switched to a target screen in an exemplary embodiment of the present disclosure;
[0026] Figure 4 The following illustrates content displayed in a graphical user interface when a camera module of a terminal device is not enabled in an exemplary embodiment of the present disclosure;
[0027] Figure 5 A schematic flow chart showing a decryption method for a decryption game in an exemplary embodiment of the present disclosure;
[0028] Figure 6 A game screen displayed in a graphical user interface in an exemplary embodiment of the present disclosure is shown;
[0029] Figure 7 A schematic diagram showing the structure of an information processing device in a game according to an exemplary embodiment of the present disclosure;
[0030] Figure 8 FIG. 1 shows a structural schematic diagram of a computer storage medium in an example embodiment of the present disclosure;
[0031] Figure 9 FIG. 1 shows a structural schematic diagram of an electronic device in an example embodiment of the present disclosure. DETAILED DESCRIPTION
[0032] Example implementations are now described with reference to the drawings. Example implementations can, however, be implemented in many different forms and should not be construed as limited to the examples set forth herein; rather, these implementations are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the example implementations to those skilled in the art. The features, structures, or characteristics described in connection with the examples can be combined in any suitable manner in one or more implementations. In the following description, numerous specific details are provided to give a thorough understanding of the example implementations. One skilled in the relevant art, however, will recognize that the implementations can be practiced without one or more of the specific details, or with other methods, components, materials, and so forth. In other instances, well-known structures have not been described in detail to avoid obscuring the understanding of this description.
[0033] The terms "one", "a", "an", and "the" as used herein mean "at least one" or "one or more" unless expressly specified otherwise. The term "includes" means "includes but is not limited to" and the term "including" means "including, but not limited to". The term "based on" means "based, at least in part, on" unless expressly specified otherwise.
[0034] In addition, the accompanying drawings are merely schematic and are not necessarily drawn to scale. Like reference numerals designate like elements throughout the drawings and the description, whereupon repeated descriptions can be omitted. Some of the block diagrams in the drawings are functional entities, which do not necessarily have to correspond to physically or logically independent entities.
[0035] At present, most games display game pictures corresponding to fictitious game scenes during the game process, and players directly perform game operations in the virtual game scenes displayed in the graphical user interface of the terminal device. Some games are provided with AR functions, and players can click an entry button to switch from a virtual game scene to a real scene, so as to perform game operations in the real scene.
[0036] In the related art, although the AR function is set in the game, it is directly switched from the game scene to the real scene, and the game screen displayed in the graphical user interface is also directly and completely switched from the virtual game scene screen to the real scene screen, and the virtual game scene screen and the real scene screen cannot be displayed at the same time, so that the interaction between the virtual game scene and the real scene is less, and the interaction between the user's operation and the display of the game screen is insufficient, which affects the user's game experience.
[0037] In the embodiments of the present disclosure, a game information processing method is first provided, which at least partially overcomes the defects in the related art.
[0038] Figure 1 A flowchart of a game information processing method in an exemplary embodiment of the present disclosure is shown, which can be applied to a terminal device including a camera module. Referring to Figure 1 , the method comprises:
[0039] Step S110, displaying a first screen in a graphical user interface of the terminal device;
[0040] Step S120, in response to a blocking operation on a lens of the camera module, determining a target display area in the graphical user interface according to the blocking condition of the lens;
[0041] Step S130, switching the content displayed in the target display area from a partial screen in the first screen to a target screen.
[0042] In the technical solution provided in the embodiment shown, Figure 1 , in response to a blocking operation on a lens of the camera module, a target display area in the graphical user interface of the terminal device can be determined according to the blocking condition of the lens, and then the content displayed in the target display area can be switched from a partial screen in the first screen displayed in the graphical user interface of the terminal device to a target screen. Compared with the related art, the present disclosure can switch the partial screen in the first screen displayed in the graphical user interface to the target screen through the blocking operation on the camera module of the terminal device, which can improve the richness of the game screen display and enhance the user's game interaction experience.
[0043] The specific implementation of each step in the embodiment shown Figure 1 will be described in detail:
[0044] In step S110, a first screen is displayed in the graphical user interface of the terminal device.
[0045] In the present disclosure, the terminal device can include a movable terminal, such as a smartphone, a tablet computer, a wearable electronic device, or any terminal device with a display function and a camera module. The camera module can be understood as a device in the terminal device for image acquisition. The camera module of the terminal device can have one or more lenses for image acquisition.
[0046] For example, the first picture can be a virtual scene picture corresponding to the virtual scene of the game. Based on this, one specific implementation of step S110 can include: displaying, in the graphical user interface of the terminal device, a virtual scene picture corresponding to the virtual game scene of the game.
[0047] For example, the first picture can be a real scene picture generated by the lens of the camera module. Based on this, another specific implementation of step S110 can include: displaying, in the graphical user interface of the terminal device, a real scene picture acquired by the camera module.
[0048] In other words, before the lens of the camera module of the terminal device is blocked, the first picture displayed in the graphical user interface of the terminal device can be a virtual scene picture corresponding to the virtual game scene of the game, or a real scene picture of the real environment in which the terminal device is currently located, which is acquired by the camera module of the terminal device. The present exemplary implementation does not make special limitations on this.
[0049] In an optional implementation, in response to a first trigger operation of logging into the game through the terminal device, a virtual scene picture corresponding to the virtual game scene of the game is displayed in the graphical user interface of the terminal device by the first canvas.
[0050] In an optional implementation, in response to a second trigger operation of enabling the camera module of the terminal device, the first canvas is covered by a second canvas to display a real scene picture taken by the lens of the camera module in the second canvas.
[0051] For example, when a user logs into a game through a terminal device, the game server or the terminal device can first display a virtual scene picture corresponding to a virtual game scene rendered by a game engine using a first canvas, such as a first canvas (a canvas used to display a game picture in a game development engine). Then, the user can enable the camera module of the terminal device according to a prompt or his own needs. When the user enables the camera of the terminal device, a second canvas, such as another second canvas, can be used to display a real scene picture captured by the camera module of the terminal device in a UI layer (User Interface). The second canvas is overlaid on the first canvas to completely cover the virtual game scene displayed by the first canvas, so that the real scene picture can be displayed through the second canvas.
[0052] That is, when a user logs into a game through a game account, a virtual scene picture is displayed in the graphical user interface of the terminal device before the user enables the camera module of the terminal device. After the user enables the camera module, a real scene picture captured by the camera module can be displayed in the graphical user interface of the terminal device.
[0053] In another exemplary embodiment, the enabling of the camera module can also be determined without the selection of the player. For example, when the player opens the game or logs into the game, the camera module can be automatically enabled by default, that is, the camera module is directly in the enabled state by default. When the player does not want to use the function of the camera module, the camera module can be turned off correspondingly, so that the camera module changes from the default enabled state to the disabled state. This exemplary embodiment does not make special limitations.
[0054] For example, in the present disclosure, when a user logs into a game through a terminal device, a real scene picture captured by the camera module of the terminal device can be displayed in the graphical user interface of the terminal device. For example, when the user logs into the game, a canvas 1 is used to display the real scene picture captured by the camera module of the terminal device in the graphical user interface. Then, the user can select to turn off the camera module according to his own needs. When the user turns off the camera module, a canvas 2 can be used to cover the canvas 1, and then a virtual game scene picture rendered by a game engine is displayed in the canvas 2.
[0055] For example, after the user turns off the camera module, the user can enable the camera module again according to needs or prompts. This exemplary embodiment does not make special limitations.
[0056] In another example embodiment, even if the camera module of the terminal device is in an enabled state, the virtual game scene picture can be displayed in the graphical user interface of the terminal device only when the lens of the camera module of the terminal device is not blocked, and the example embodiment is not specially limited in this regard.
[0057] Next, in step S120, in response to the blocking operation on the lens of the camera module, a target display region is determined in the graphical user interface according to the blocking condition of the lens.
[0058] In an alternative embodiment, a specific implementation of step S120 can be that, when the camera module is in an enabled state, in response to the blocking operation on the lens of the camera module, a target display region is determined in the graphical user interface according to the blocking condition of the lens.
[0059] In another alternative embodiment, a specific implementation of step S120 can be that, in response to the partial blocking operation on the lens of the camera module of the terminal device, a target display region is determined in the graphical user interface according to the blocking condition of the lens.
[0060] In other words, the blocking operation on the lens of the camera module can include the partial blocking operation on the lens of the camera module. Of course, the blocking operation on the lens of the camera module can also be the full blocking operation.
[0061] In an alternative embodiment, determining the target display region in the graphical user interface according to the blocking condition of the lens includes determining the target display region according to the display region in the graphical user interface corresponding to the part of the lens that is blocked.
[0062] For example, the display region in the graphical user interface corresponding to the part of the lens that is blocked can be identified, and then the display region is determined as the target display region.
[0063] In another alternative embodiment, determining the target display region in the graphical user interface according to the blocking condition of the lens includes determining the target display region according to the display region in the graphical user interface corresponding to the part of the lens that is not blocked.
[0064] For example, after identifying the display region in the graphical user interface corresponding to the part of the lens that is blocked, the other regions in the graphical user interface except the display region can be determined as the target display region.
[0065] An example embodiment of the method for determining the target display region is shown in the flowchart. Referring to FIG. 1, the method for determining the target display region includes the following steps. Figure 2 An example embodiment of the method for determining the target display region is shown in the flowchart. Referring to FIG. 1, the method for determining the target display region includes the following steps. Figure 2The method can include steps S210 to S220. Among them:
[0066] In step S210, in response to the blocking operation on the lens of the camera module, the color block area formed by the blocked part of the lens in the first picture is determined.
[0067] For example, when a user, i.e. a game player, partially blocks the lens of the camera module of the terminal device, such as covering a part of the lens with a finger, because the finger is very close to the lens of the camera module, the part covered by the finger appears as a large dark color block in the first picture.
[0068] Next, in step S220, according to the color block area, the target display area in the graphical user interface is determined.
[0069] For example, before the target display area in the graphical user interface is determined according to the color block area, the color of the color block area can also be adjusted to visually distinguish the color block area on the graphical user interface.
[0070] For example, the color of the color block area can be adjusted to a preset color. The preset color can be white, of course, it can also be other colors that can be distinguished from the unblocked part, and the present exemplary embodiment does not specially limit this.
[0071] For example, the color of the target color block can be converted to white #000000 by code. In this way, the display area in the graphical user interface corresponding to the blocked part of the lens and the display area in the graphical user interface corresponding to the unblocked part can be distinguished.
[0072] For example, determining the target display area according to the color block area can include determining the color block area as the target display area. That is, the display area in the graphical user interface corresponding to the blocked part of the lens is determined as the target display area.
[0073] For example, determining the target display area according to the color block area can also include determining the display area outside the color block area as the target display area, i.e. determining the display area in the graphical user interface corresponding to the unblocked part of the lens as the target display area.
[0074] Through the above steps S210 to S220, the target display area can be determined according to the color block area in the graphical user interface corresponding to the blocked part of the lens.
[0075] In another exemplary embodiment, the game server or the game client can detect in real time whether the lens of the camera module of the terminal device where the logged-in game account is located is blocked when the camera module of the terminal device is in an enabled state, and when the lens of the camera module is blocked, a first ratio between the area of the blocked part of the lens and the total area of the lens can be determined, and the graphical user interface can be divided according to the first ratio, so as to divide the graphical user interface into a first display area and a second display area, and the display proportion of the first display area in the graphical user interface after the division is equal to the first ratio, so as to determine the first display area or the second display area as the target display area.
[0076] In another exemplary embodiment, the graphical user interface can also be divided into a first display area and a second display area according to a second ratio between the area of the unblocked part of the lens and the total area of the lens, so that the display proportion of the first display area in the graphical user interface is equal to the second ratio, so as to determine the first display area or the second display area as the target display area.
[0077] Of course, the target display area can also be determined in other ways, which are not specially limited in the present exemplary embodiment.
[0078] Next, in step S130, the content displayed in the target display area is switched from the partial picture in the first picture to a target picture.
[0079] In an exemplary embodiment, when the first picture is a virtual scene picture of the game, the target picture is a real scene picture generated through the lens of the camera module. That is, in step S110, if the virtual scene picture corresponding to the game is currently displayed in the graphical user interface of the terminal device, the specific implementation of step S130 can be that the content displayed in the target display area is switched from the partial picture in the virtual scene picture to a real scene picture acquired through the unblocked part of the lens.
[0080] For example, if the virtual scene picture is currently displayed in the graphical user interface of the terminal device, in response to the partial blocking operation of the lens of the camera module of the terminal device, the target display area can be determined according to the unblocked part of the lens, and then the real scene picture acquired through the unblocked part of the lens is displayed in the target display area. In this way, the virtual game scene picture and the real scene picture can be displayed simultaneously in the graphical user interface of the terminal device.
[0081] For example, switching the content displayed in the target display region from the partial picture in the virtual scene picture to the real scene picture obtained by the unblocked part of the lens can include: taking the display region outside the color block region corresponding to the blocked part of the lens as the target display region, i.e., taking the unblocked part of the lens as the target display region. Then, taking the target display region as the mask (i.e., the mask) of the display real scene canvas. In this way, the display region in the graphical user interface where the blocked part of the lens is mapped displays the virtual game scene picture, and the display region in the graphical user interface where the unblocked part of the lens is mapped displays the real scene picture. That is, the target display region displays the real scene picture, and the region outside the target display region displays the virtual game scene picture.
[0082] In another example embodiment, when the first picture is a real scene picture formed by the lens of the camera module, the target picture is a virtual scene picture corresponding to the game. That is, in step S110, if the first picture displayed in the graphical user interface of the terminal device is a real scene picture formed by the lens of the camera module, the specific implementation of step S130 can be to switch the content displayed in the target display region from the partial picture in the real scene picture to the virtual scene picture in the game.
[0083] For example, if the real scene picture is currently displayed in the graphical user interface of the terminal device, in response to the partial blocking operation of the lens of the camera module of the terminal device, the target display region can be determined according to the blocked part of the lens, and then the virtual scene picture captured by the game engine is displayed in the target display region. In this way, the virtual game scene picture and the real scene picture can also be displayed simultaneously in the graphical user interface of the terminal device.
[0084] For example, switching the content displayed in the target display region from the partial picture in the virtual scene picture to the real scene picture obtained by the unblocked part of the lens can include: taking the display region outside the color block region corresponding to the blocked part of the lens as the target display region, i.e., taking the unblocked part of the lens as the target display region. Then, taking the target display region as the mask (i.e., the mask) of the display real scene canvas. In this way, the display region in the graphical user interface where the blocked part of the lens is mapped displays the virtual game scene picture, and the display region in the graphical user interface where the unblocked part of the lens is mapped displays the real scene picture. That is, the target display region displays the real scene picture, and the region outside the target display region displays the virtual game scene picture.
[0085] In another example embodiment, when the first picture is a virtual scene picture corresponding to the virtual game scene of the game, the target picture is a scene thumbnail corresponding to the virtual game scene of the game. That is, in step S110, if the game picture displayed in the graphical user interface of the terminal device is a virtual scene picture corresponding to the virtual game scene of the game, the specific implementation of step S130 can further include: switching the content displayed in the target display area from a partial picture in the virtual scene picture to a scene thumbnail corresponding to the virtual game scene.
[0086] The scene thumbnail corresponding to the virtual game scene can be understood as a game map.
[0087] For example, if the virtual scene picture is currently displayed in the graphical user interface of the terminal device, in response to the partial blocking operation on the lens of the camera module of the terminal device, the target display area can be determined according to the blocked part of the lens, or the target display area can be determined according to the unblocked part of the lens, and then the game map is displayed in the target display area. In this way, the virtual game scene picture and the game map corresponding to the virtual game scene can also be simultaneously displayed in the graphical user interface of the terminal device.
[0088] The target display area can be determined according to the blocked part of the lens, or the target display area can be determined according to the unblocked part of the lens, and then the game map is displayed in the target display area. In this way, the virtual game scene picture and the game map corresponding to the virtual game scene can also be simultaneously displayed in the graphical user interface of the terminal device.
[0089] In an example embodiment, when the virtual game scene picture and the real scene picture are simultaneously displayed in the graphical user interface in response to the partial blocking operation on the lens of the camera module, the camera module in the open state can be understood as the camera function of the camera module being in the open state in the game, and the camera module in the unopened state can be understood as the camera function of the camera module being in the unopened state in the game.
[0090] In response to the partial blocking operation on the lens of the camera module, when the virtual game scene picture and the game map corresponding to the virtual game scene in the game are displayed simultaneously in the graphical user interface, the camera module in the enabled state can be understood as the map opening function of the camera module being in the enabled state, and the camera module in the disabled state can be understood as the map opening function of the camera module being in the disabled state.
[0091] In other words, the lens of the camera module can be used as a switch to open the game map in the game. When the map opening function of the camera module is in the enabled state, the game map corresponding to the virtual game scene in the game can be displayed in the graphical user interface according to the blocking operation of the user on the lens of the camera module, so that the user's game operation is facilitated and the user's game experience is improved without adding any control.
[0092] For example, when the virtual game scene picture and the real scene picture are displayed simultaneously in the graphical user interface according to the partial blocking operation on the lens of the camera module, the lens in step S120 can be understood as an imaging camera in the camera module, i.e., a main camera lens. Generally, when the main camera lens is completely blocked, the graphical user interface is displayed as a dark color block as a whole, i.e., imaging cannot be performed; when the main camera lens is partially blocked, the blocked part displays a dark color block in the corresponding first imaging area in the graphical user interface, and the unblocked part can normally display the real scene picture captured in the corresponding second imaging area in the graphical user interface. That is, at this time, part of the graphical user interface displays a dark color block, and another part displays the real scene picture captured by the camera; but when the non-main camera lens is completely or partially blocked, the real scene picture captured by the camera module can be completely displayed in the graphical user interface.
[0093] In an exemplary embodiment, when the virtual game scene picture and the game map corresponding to the virtual game scene in the game are displayed simultaneously in the graphical user interface according to the partial blocking operation on the lens of the camera module, the lens in step S120 can be a main imaging lens in the camera module or a secondary imaging camera in the camera module.
[0094] In an exemplary embodiment, Figure 1 The information processing method in the game shown can further include: in response to an adjustment operation on the blocking area of the lens of the camera module, adjusting the display size of the target display area in the graphical user interface.
[0095] For example, during the process of blocking the camera, the game player can adjust the area of the camera to be blocked according to the needs. When the blocking area of the camera changes, the size of the corresponding target color block in the graphical user interface will also change. Therefore, the display size of the determined target display area in the graphical user interface can be adjusted in real time according to the change of the blocking area of the camera.
[0096] In an exemplary embodiment, Figure 1 The information processing method in the game can further include: in response to the display size of the target display area in the graphical user interface satisfying a first preset condition, controlling the target game character in the game to perform a target game action.
[0097] In an optional embodiment, the first preset condition can include any one of the following: the display size of the target display area is greater than, less than, or equal to a first preset value; or the display ratio of the target display area and the non-target display area in the graphical user interface is greater than, less than, or equal to a first preset value.
[0098] The first preset condition can be associated with the target game character performing the target game action in advance. During the game process, the user can adjust the display size of the target display area in the graphical user interface by adjusting the blocking size of the camera. When the display size of the target display area satisfies the first preset condition, the target game character can be automatically controlled to perform the target game action. Thus, the control of the target game character and the blocking operation of the user can be linked, an operation mode of controlling the game character to perform the game action is provided, and the game interaction experience of the user is improved.
[0099] For example, the game in the present disclosure can include a decryption game, based on which, Figure 1 The information processing method in the game can further include: in response to the display size of the target display area in the graphical user interface satisfying a second preset condition, displaying a decryption clue and / or a decryption element corresponding to the second preset condition in the graphical user interface.
[0100] In an optional embodiment, the second preset condition can include any one of the following: the display size of the target display area is greater than, less than, or equal to a second preset value; or the display ratio of the target display area and the non-target display area other than the target display area in the graphical user interface is greater than, less than, or equal to a second preset value.
[0101] The second preset condition can be pre-associated with a decryption element and / or decryption clue. During the game, the user can adjust the display size of the target display area in the graphical user interface by adjusting the size of the camera obstruction. When the display size of the target display area is adjusted to meet the second preset condition, the decryption element and / or decryption clue associated with the second preset condition can be displayed in the graphical user interface.
[0102] Next, combine Figures 3 to 7 The information processing method in the game of the present disclosure will be further described.
[0103] In an exemplary embodiment, as described above, when a user logs into a game, a first canvas (the canvas used in the game development engine to display the game screen) can be used to display the virtual game scene image corresponding to the virtual game scene of the game rendered by the game engine. When the user chooses to activate the camera module of the terminal device, such as activating the main imaging lens, another second canvas can be used in the UI layer to display the image captured by the main imaging lens. The second canvas is superimposed on the first canvas so that the second canvas can completely cover the virtual game scene image. In this way, when the main imaging lens is activated, if there is no obstructed part of the main imaging lens, the real scene image captured by the main imaging lens can be displayed in the entire graphical user interface.
[0104] During the game, when the player covers a part of the main imaging lens, the part of the main imaging lens covered by the player is displayed as a large dark block in the graphical user interface. The block can be converted into a preset block, such as the white block mentioned above, and then used as a mask for displaying the virtual game scene canvas. In this way, the real scene image displayed in the corresponding display area of the graphical user interface by the part of the main imaging lens covered by the player can be switched to the virtual game scene image, while the part of the lens that is not covered in the display area of the graphical user interface still displays the real scene image captured by the camera.
[0105] like Figure 3 As shown, in Figure 3 The virtual game scene screen 31 and the real scene screen 32 are displayed simultaneously with a dotted line as the dividing line. Furthermore, based on the user's blocking operation on the camera module lens, the virtual game scene screen and the real scene screen captured by the camera module lens can be displayed simultaneously in the graphical user interface, thereby realizing the interaction between the virtual game scene and the real scene.
[0106] The mask refers to a mask, also called a mask. The part of the lens that is covered is displayed in the display area of the graphical user interface. The part of the canvas that overlaps the color block generates an irregular pattern, which is the mask. Then, the mask is used as a new canvas to display the virtual game scene.
[0107] It should be noted that the purpose of converting the dark color block corresponding to the covered part of the main imaging lens into a white color block is to clearly distinguish the area corresponding to the covered part of the lens in the first picture from the real scene picture taken by the main imaging lens. The color block can also not be converted, and the present exemplary embodiment does not specially limit this.
[0108] In the exemplary embodiment, since the canvas displaying the real scene is superimposed on the canvas displaying the virtual game scene, and completely covers the canvas displaying the virtual game scene, when the camera module is in the enabled state, if the lens is completely covered, the entire graphical user interface displays the virtual game scene picture. If there is no covered part in the lens, the entire graphical user interface displays the real scene picture taken by the lens.
[0109] When the camera module is in the disabled state, the virtual game scene picture of the game is displayed in the graphical user interface. Figure 4 As shown in FIG. 6, when the camera module is in the disabled state, the graphical user interface displays the virtual game scene picture of the game.
[0110] For example, after the user logs in to the game, when the user does not start the camera module, the camera module is in the disabled state, that is, the camera function of the camera module is not started in the game at this time, so the real scene picture taken by the camera module cannot be displayed in the graphical user interface. At this time, whether the lens of the camera module is completely covered, partially covered, or has no covered part, the entire graphical user interface only displays the virtual game scene picture.
[0111] When the user starts the camera module, the camera module is in the enabled state, at this time, the real scene picture taken by the camera module can be displayed in the graphical user interface, and the virtual game scene picture and the real scene picture taken by the camera module can be displayed in the graphical user interface according to the user's covering operation on the lens of the camera module.
[0112] When there is an occluded part of the lens of the camera module of the terminal device, the terminal device can capture a scene picture in the real world within the field of view of the camera module through the unoccluded part of the lens of the camera module, and display the real scene picture captured by the unoccluded part of the lens in the imaging area of the graphical user interface corresponding to the unoccluded part. This is similar to the principle of taking a picture. When taking a picture using a camera, if a part of the lens is occluded, the occluded part is displayed as a dark color block on the screen of the terminal device, and the other areas of the screen can continue to display the image captured by the unoccluded part of the lens.
[0113] That is, when the unoccluded part of the lens is mapped to the first display area of the graphical user interface and the real scene picture captured by the camera module is displayed, the position of the first display area in the graphical user interface can be consistent with the position of the unoccluded part of the lens in the entire lens. For example, if the left half of the lens is unoccluded, the first display area is on the left side of the graphical user interface, so that the real scene picture captured by the lens is displayed on the left side of the graphical user interface.
[0114] The part of the lens occluded by the user is mapped to the second display area of the graphical user interface, so that the virtual game scene picture can be displayed, and the virtual game scene picture and the real scene picture can be displayed simultaneously in the graphical user interface.
[0115] As described above, in the present disclosure, by adjusting the occluded area of the lens of the camera module, the display size of the target display area in the graphical user interface can be adjusted.
[0116] When the virtual game scene picture and the real scene picture are displayed simultaneously in the graphical user interface through the occlusion operation of the lens, the display size of the game map displayed in the graphical user interface can be changed through the adjustment operation of the occluded area of the lens of the camera module, which further facilitates the game operation of the user and improves the game experience of the user.
[0117] When the virtual game scene picture and the real scene picture are displayed simultaneously in the graphical user interface through the occlusion operation of the lens, when the display size of the target display area in the graphical user interface changes, the display ratio between the display area for displaying the virtual game scene picture and the second display area for displaying the real scene picture in the graphical user interface also changes. For some decryption games, some decryption clues and / or decryption elements can be set, and the virtual game scene picture and the real scene picture need to be displayed simultaneously, and the display ratio between the two needs to be adjusted constantly to be solved, so as to guide the player to constantly occlude the camera and move the finger to change the proportion of the occluded camera to play.
[0118] Exemplarily, Figure 5 A flowchart of a decryption method of a decryption-type game in an exemplary embodiment of the present disclosure is shown. Exemplarily, referring to Figure 5 The method can include steps S510 to S520. Wherein:
[0119] In step S510, in response to an adjustment operation of the occlusion area of the lens of the camera module, the size of the target display area in the graphical user interface is adjusted to change the display ratio between the virtual game scene picture and the real scene picture in the graphical user interface;
[0120] In step S520, in response to the display ratio between the virtual game scene picture and the real scene picture satisfying a second preset condition, a decryption clue and / or a decryption element corresponding to the second preset condition is displayed in the graphical user interface.
[0121] In an exemplary embodiment, some decryption elements and / or decryption clues that need the display ratio between the virtual game scene picture and the real scene picture to reach a preset value before being displayed can be preconfigured. For example, Figure 6 As shown, when the display ratio between the virtual game scene picture and the real scene picture meets the preset condition, the decryption element 61 can be displayed in the real scene picture corresponding to the real scene. The player can perform decryption operations according to the currently displayed decryption clues, or perform corresponding game operations according to the currently displayed decryption elements to obtain the decryption clue corresponding to the currently displayed decryption element, and then perform the game operation corresponding to the decryption clue to perform decryption.
[0122] In another exemplary embodiment, in response to the display ratio between the virtual game scene picture and the real scene picture satisfying the second preset condition, a decryption operation corresponding to the decryption element and / or the decryption clue displayed in the graphical user interface can also be performed.
[0123] For example, the decryption operations of some decryption elements and / or decryption clues can be pre-associated with the display ratio between the virtual game scene picture and the real scene picture. In this way, when the display ratio between the virtual game scene picture and the real scene picture reaches the preset value, the decryption operation corresponding to the decryption element and / or the decryption clue can be automatically performed, and then the picture after the decryption operation of the decryption element and / or the decryption clue can be directly displayed in the graphical user interface.
[0124] Through the steps S610 to S620, a new interaction mode can be provided for the decryption type game, and the player can control the display ratio of the virtual game scene picture and the real scene picture in the graphical user interface by changing the ratio of the camera covered, and then based on the change of the display ratio, some game clues in the game are decrypted to promote the progress of the decryption game.
[0125] In the present disclosure, based on the blocking operation of the user on the lens in the camera module of the terminal device, the virtual game scene picture and the real scene picture can be displayed in the graphical user interface at the same time, the interaction between the virtual game scene and the real scene is enhanced, and the game experience of the player is improved.
[0126] Those skilled in the art can understand that all or part of the steps of the above-mentioned embodiments are implemented as a computer program executed by a CPU. When the computer program is executed by the CPU, the above-mentioned functions defined by the above-mentioned method provided by the present application are executed. The program can be stored in a computer readable storage medium, which can be a read-only memory, a magnetic disk or an optical disk, etc.
[0127] In addition, it should be noted that the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present application, and are not for limiting purposes. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be executed synchronously or asynchronously, for example, in multiple modules.
[0128] Figure 7 A structure schematic diagram of an information processing device in a game in an exemplary embodiment of the present disclosure is shown. Referring to Figure 7 The device 700 can be applied to a terminal device including a camera module, and the device can include a game picture display module 710, a target display area determination module 720, and a local game picture switching module 730. Wherein:
[0129] The game picture display module 710 is configured to display a first picture in a graphical user interface of the terminal device;
[0130] The target display area determination module 720 is configured to determine a target display area in the graphical user interface according to the blocking situation of the lens in response to the blocking operation on the lens of the camera module;
[0131] The local game picture switching module 730 is configured to switch the content displayed in the target display area from a local picture in the first picture to a target picture.
[0132] In an example embodiment of the present disclosure, based on the foregoing embodiment, the target display area determination module 720 can be further specifically configured to: in response to a partial blocking operation on the lens of the camera module, determine the target display area in the graphical user interface according to the blocking situation of the lens.
[0133] In an example embodiment of the present disclosure, based on the foregoing embodiment, the target display area determination module 720 can be further specifically configured to: determine the target display area according to the corresponding display area of the blocked part of the lens in the graphical user interface; or determine the target display area according to the corresponding display area of the unblocked part of the lens in the graphical user interface.
[0134] In an example embodiment of the present disclosure, based on the foregoing embodiment, the first picture is a real scene picture generated by the lens of the camera module, and the target picture is a virtual scene picture corresponding to the game; or the first picture is a virtual scene picture corresponding to the game, and the target picture is a real scene picture generated by the lens of the camera module; or the first picture is a virtual scene picture corresponding to the game, and the target picture is a scene thumbnail corresponding to the virtual scene of the game.
[0135] In an example embodiment of the present disclosure, based on the foregoing embodiment, the target display area determination module 720 can be further specifically configured to: in response to a blocking operation on the lens of the camera module, determine a color block area formed by the blocked part of the lens in the first picture; and determine the target display area in the graphical user interface according to the color block area.
[0136] In an example embodiment of the present disclosure, based on the foregoing embodiment, the device 700 can further include a color block color conversion module specifically configured to: before determining the target display area in the graphical user interface according to the color block area, adjust the color of the color block area so that the color block area has visual distinction on the graphical user interface.
[0137] In an example embodiment of the present disclosure, based on the foregoing embodiment, the device can further include a target display area size adjustment module configured to: in response to an adjustment operation on the blocking area of the lens of the camera module, adjust the display size of the target display area in the graphical user interface.
[0138] In an example embodiment of the present disclosure, based on the foregoing embodiment, the device further comprises a target game action execution module, which can be configured to: in response to the display size of the target display area in the graphical user interface satisfying a first preset condition, control a target game character in the game to perform a target game action.
[0139] In an example embodiment of the present disclosure, based on the foregoing embodiment, the game comprises a decryption game; and the device further comprises a decryption condition response module, which can be configured to: in response to the display size of the target display area in the graphical user interface satisfying a second preset condition, display a decryption clue and / or a decryption element corresponding to the second preset condition in the graphical user interface.
[0140] The specific details of the modules in the information processing device in the game described above have been described in detail in the information processing method in the corresponding game, and thus will not be described here.
[0141] The information processing device in the game provided by the present disclosure can switch the partial picture in the first picture displayed in the graphical user interface to the target picture in response to the blocking operation of the camera module of the terminal device, thereby improving the richness of the game picture display and enhancing the game interaction experience of the user.
[0142] It should be noted that, although several modules or units of the device for action execution are mentioned in the foregoing detailed description, such division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into several modules or units.
[0143] In addition, although the steps of the method in the present disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired result. Additionally or alternatively, some steps can be omitted, a plurality of steps can be combined into one step, one step can be divided into a plurality of steps, etc.
[0144] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
[0145] In exemplary embodiments of the present disclosure, a computer storage medium capable of implementing the above-described method is also provided. A program product capable of implementing the above-described method of this specification is stored on the computer storage medium. In some possible embodiments, various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code. When the program product is executed on a terminal device, the program code is used to cause the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the "Exemplary Methods" section of this specification, for example:
[0146] A first screen is displayed in a graphical user interface of a terminal device, wherein the terminal device includes a camera module; in response to an occlusion operation on a lens of the camera module, a target display area is determined in the graphical user interface according to the occlusion condition of the lens; and the content displayed in the target display area is switched from a partial screen in the first screen to a target screen.
[0147] Optionally, the response to the blocking operation of the lens of the camera module and determining the target display area in the graphical user interface according to the blocking condition of the lens include: responding to the partial blocking operation of the lens of the camera module and determining the target display area in the graphical user interface according to the blocking condition of the lens.
[0148] Optionally, determining the target display area in the graphical user interface based on the occlusion of the lens includes: determining the target display area based on a display area in the graphical user interface corresponding to a blocked portion of the lens; or determining the target display area based on a display area in the user interface corresponding to an unblocked portion of the lens.
[0149] Optionally, the first picture is a real scene picture generated by a lens of the camera module, and the target picture is a virtual scene picture corresponding to the game; or the first picture is a virtual scene picture corresponding to the game, and the target picture is a real scene picture generated by the lens of the camera module; or the first picture is a virtual scene picture corresponding to the game, and the target picture is a scene thumbnail corresponding to the virtual scene of the game.
[0150] Optionally, in response to the blocking operation on the lens of the camera module of the terminal device, the target display area is determined in the graphical user interface according to the blocking situation of the lens, including: in response to the blocking operation on the lens of the camera module, determining a color block area formed by the blocked part of the lens in the first picture; and determining the target display area in the graphical user interface according to the color block area.
[0151] Optionally, before the target display area is determined in the graphical user interface according to the color block area, the method further includes: adjusting the color of the color block area to make the color block area visually distinguishable on the graphical user interface.
[0152] Optionally, the method further includes: in response to an adjustment operation on the blocking area of the lens of the camera module, adjusting the display size of the target display area in the graphical user interface.
[0153] Optionally, the method further includes: in response to the display size of the target display area in the graphical user interface satisfying a first preset condition, controlling a target game character in the game to perform a target game action.
[0154] Optionally, the game includes a decryption game; and the method further includes: in response to the display size of the target display area in the graphical user interface satisfying a second preset condition, displaying a decryption clue and / or a decryption element corresponding to the second preset condition in the graphical user interface.
[0155] Through the above embodiments, on the one hand, based on the response to the blocking operation on the camera module of the terminal device, the local picture in the first picture displayed in the graphical user interface can be switched to the target picture, thereby improving the richness of the game picture display, such as simultaneously displaying a virtual game scene picture and a display scene picture; on the other hand, the game picture displayed in the graphical user interface can be changed through the operation mode of blocking the lens of the camera module, thereby enhancing the game interaction experience of the user.
[0156] Reference Figure 8As shown, a program product 800 for implementing the above-described method according to the embodiments of the present disclosure is described, which can employ a portable compact disc read-only memory (CD-ROM) and include program codes, and can be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in the present document, the readable storage medium can be any tangible medium containing or storing a program, which can be used by or in conjunction with an instruction execution system, apparatus or device.
[0157] The program product can employ any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium, for example, can be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. More specific examples (a non-exhaustive list) of the readable storage medium include an electrical connection having one or more wires, a portable disc, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0158] The computer readable signal medium can include a data signal propagated in baseband or propagated as a carrier wave in a propagated data signal, in which the readable program codes are carried. Such a propagated data signal can take on many forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination thereof. The readable signal medium can also be any readable medium that is not a readable storage medium and that can transmit, propagate or transport for use by or in connection with an instruction execution system, apparatus or device program.
[0159] The program codes contained on the readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.
[0160] Program code to implement an operation of the present disclosure can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++, etc., and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's device and partly on a remote computing device or entirely on the remote computing device or server. In the latter scenario, the remote computing device can be connected to the user's device through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computing device, such as through the Internet using an Internet Service Provider.
[0161] Furthermore, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above-described method is provided.
[0162] Those skilled in the art can understand that various aspects of the present disclosure can be implemented as a system, a method or a program product. Therefore, various aspects of the present disclosure can be embodied as a whole hardware embodiment, a whole software embodiment (including firmware, microcode, etc.), or an embodiment combining hardware and software aspects, which can be collectively referred to as "circuitry", "module" or "system" herein.
[0163] The electronic device 900 according to this embodiment of the present disclosure will be described below with reference to Figure 9 Figure 9 The electronic device 900 shown is merely an example and should not limit the functions and use range of the embodiments of the present disclosure.
[0164] As Figure 9 shown, the electronic device 900 is in the form of a general computing device. The components of the electronic device 900 can include, but are not limited to, the at least one processing unit 910 described above, the at least one storage unit 920 described above, a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910), and a display unit 940.
[0165] The storage unit stores program code which can be executed by the processing unit 910, so that the processing unit 910 performs the steps described in the "Exemplary Method" section of the present specification according to various exemplary embodiments of the present disclosure.
[0166] For example, the processing unit 910 can further execute Figure 5 the various steps of the method shown.
[0167] The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 9201 and / or a cache memory unit 9202 , and may further include a read-only memory unit (ROM) 9203 .
[0168] The storage unit 920 may also include a program / utility 9204 having a set (at least one) of program modules 9205, such program modules 9205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0169] Bus 930 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0170] The electronic device 900 can also communicate with one or more external devices 1000 (e.g., a keyboard, a pointing device, a Bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 900, and / or any device that enables the electronic device 900 to communicate with one or more other computing devices (e.g., a router, a modem, etc.). Such communication can occur via an input / output (I / O) interface 950. Furthermore, the electronic device 900 can also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network such as the Internet) via a network adapter 960. As shown, the network adapter 960 communicates with other modules of the electronic device 900 via a bus 930. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 900, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0171] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure, for example:
[0172] Displaying a first picture in a graphical user interface of a terminal device, the terminal device comprising a camera module; in response to a blocking operation on a lens of the camera module, determining a target display area in the graphical user interface according to a blocking condition of the lens; switching content displayed in the target display area from a partial picture in the first picture to a target picture.
[0173] Optionally, the determining the target display area in the graphical user interface according to the blocking condition of the lens in response to the blocking operation on the lens of the camera module comprises: in response to a partial blocking operation on the lens of the camera module, determining the target display area in the graphical user interface according to the blocking condition of the lens.
[0174] Optionally, the determining the target display area in the graphical user interface according to the blocking condition of the lens comprises: determining the target display area according to a display area in the graphical user interface corresponding to a blocked part of the lens; or determining the target display area according to a display area in the graphical user interface corresponding to an unblocked part of the lens.
[0175] Optionally, the first picture is a real scene picture generated by the lens of the camera module, and the target picture is a virtual scene picture corresponding to the game; or the first picture is a virtual scene picture corresponding to the game, and the target picture is a real scene picture generated by the lens of the camera module; or the first picture is a virtual scene picture corresponding to the game, and the target picture is a scene thumbnail corresponding to the virtual scene of the game.
[0176] Optionally, the determining the target display area in the graphical user interface according to the blocking condition of the lens in response to the blocking operation on the lens of the camera module comprises: in response to the blocking operation on the lens of the camera module, determining a color block area formed in the first picture by a blocked part of the lens; and determining the target display area in the graphical user interface according to the color block area.
[0177] Optionally, before the determining the target display area in the graphical user interface according to the color block area, the method further comprises: adjusting a color of the color block area to make the color block area visually distinguishable on the graphical user interface.
[0178] Optionally, the method further comprises: in response to an adjustment operation on a blocking area of the lens of the camera module, adjusting a display size of the target display area in the graphical user interface.
[0179] Optionally, the method further comprises: in response to the display size of the target display area in the graphical user interface satisfying a first preset condition, controlling the target game character in the game to perform a target game action.
[0180] Optionally, the game comprises a decryption game; and the method further comprises: in response to the display size of the target display area in the graphical user interface satisfying a second preset condition, displaying a decryption clue and / or a decryption element corresponding to the second preset condition in the graphical user interface.
[0181] Through the above embodiments, on one hand, based on the response to the shielding operation of the camera module of the terminal device, the local picture in the first picture displayed in the graphical user interface can be switched to the target picture, thereby improving the richness of the game picture display, such as the virtual game scene picture and the display scene picture can be displayed at the same time; on the other hand, the game picture displayed in the graphical user interface can be changed through the operation mode of shielding the lens of the camera module, thereby enhancing the game interaction experience of the user.
[0182] In addition, the above-described drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not for limiting purposes. It is easy to understand that the processes shown in the above-described drawings do not indicate or limit the time sequence of the processes. In addition, it is also easy to understand that the processes can be executed synchronously or asynchronously, for example, in multiple modules.
[0183] Other embodiments of the present disclosure will be apparent to those skilled in the art with the consideration of the specification and practice of the disclosed application. The present application is intended to cover any variations, uses, or adaptations of the present disclosure following the general principles thereof and including such departures from the present disclosure that come within known, accepted, and customary practice in the art to which the present disclosure pertains. The specification and examples are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
Claims
1. A method for processing information in a game, applied to a terminal device, characterized in that: The terminal device includes a camera module, which is a device in the terminal device for capturing images. The method includes: Displaying a first picture in a graphical user interface of the terminal device; In response to a blocking operation on a lens of the camera module, determining a target display area in the graphical user interface according to the blocking condition of the lens; Switching the content displayed in the target display area from a partial screen in the first screen to a target screen; The response to the blocking operation of the lens of the camera module and the determination of the target display area in the graphical user interface according to the blocking condition of the lens include: responding to the blocking operation of the lens of the camera module and determining the color block area formed by the blocked portion of the lens in the first picture; and determining the target display area in the graphical user interface according to the color block area.
2. The information processing method in a game according to claim 1, characterized in that The responding to the blocking operation of the lens of the camera module and determining a target display area in the graphical user interface according to the blocking condition of the lens includes: In response to a partial blocking operation on the lens of the camera module, the target display area is determined in the graphical user interface according to the blocking condition of the lens.
3. The information processing method in a game according to claim 2, characterized in that: Determining the target display area in the graphical user interface according to the occlusion condition of the lens includes: determining the target display area according to a display area corresponding to the blocked portion of the lens in the graphical user interface; or The target display area is determined according to a display area corresponding to the unblocked portion of the lens in the user interface.
4. The method for processing information in a game according to any one of claims 1 to 3, characterized in that: The first picture is a real scene picture generated by the lens of the camera module, and the target picture is a virtual scene picture corresponding to the game; or The first picture is a virtual scene picture corresponding to the game, and the target picture is a real scene picture generated by the lens of the camera module; or The first screen is a virtual scene screen corresponding to the game, and the target screen is a scene thumbnail corresponding to the virtual scene of the game.
5. The method for processing information in a game according to claim 1, wherein: Before determining the target display area in the graphical user interface based on the color block area, the method further includes: The color of the color block area is adjusted so that the color block area is visually distinguishable on the graphical user interface.
6. The method for processing information in a game according to claim 1, wherein: The method further comprises: In response to an adjustment operation on the occlusion area of the lens of the camera module, a display size of the target display area in the graphical user interface is adjusted.
7. The method for processing information in a game according to claim 6, wherein: The method further comprises: In response to a display size of the target display area in the graphical user interface meeting a first preset condition, a target game character in the game is controlled to perform a target game action.
8. The method for processing information in a game according to claim 6, wherein: The game includes a decryption game; the method further includes: In response to the display size of the target display area in the graphical user interface satisfying a second preset condition, decryption clues and / or decryption elements corresponding to the second preset condition are displayed in the graphical user interface.
9. An information processing device for a game, applied to a terminal device, characterized in that: The terminal device includes a camera module, which is a device in the terminal device for capturing images. The apparatus includes: a game screen display module, configured to display a first screen in a graphical user interface of the terminal device; a target display area determination module configured to respond to a blocking operation on the lens of the camera module and determine a target display area in the graphical user interface according to the blocking condition of the lens; a partial game screen switching module, configured to switch the content displayed in the target display area from the partial screen in the first screen to the target screen; Among them, the response to the blocking operation of the lens of the camera module and the determination of the target display area in the graphical user interface according to the blocking condition of the lens include: responding to the blocking operation of the lens of the camera module and determining the color block area formed by the blocked part of the lens in the first picture; and determining the target display area in the graphical user interface according to the color block area.
10. A computer-readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the information processing method in the game according to any one of claims 1 to 8 is implemented.
11. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the information processing method in the game according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method for execution control using cover and electronic device supporting the same
US20150031347A1
Augmented reality gaming system
US20190081848A1