CN114733197A - Information processing method and device in game, readable storage medium and electronic device - Google Patents
Information processing method and device in game, readable storage medium and electronic device Download PDFInfo
- Publication number
- CN114733197A CN114733197A CN202210389237.8A CN202210389237A CN114733197A CN 114733197 A CN114733197 A CN 114733197A CN 202210389237 A CN202210389237 A CN 202210389237A CN 114733197 A CN114733197 A CN 114733197A
- Authority
- CN
- China
- Prior art keywords
- game
- lens
- picture
- display area
- user interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000010365 information processing Effects 0.000 title claims abstract description 28
- 238000003672 processing method Methods 0.000 title claims abstract description 19
- 238000000034 method Methods 0.000 claims abstract description 63
- 230000004044 response Effects 0.000 claims description 52
- 238000012545 processing Methods 0.000 claims description 14
- 230000009471 action Effects 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 4
- 230000003993 interaction Effects 0.000 abstract description 13
- 230000000903 blocking effect Effects 0.000 description 21
- 238000003384 imaging method Methods 0.000 description 17
- 230000006870 function Effects 0.000 description 15
- 230000008569 process Effects 0.000 description 9
- 230000008859 change Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000008092 positive effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/52—Controlling the output signals based on the game progress involving aspects of the displayed game scene
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
技术领域technical field
本公开涉及人机交互技术领域,具体而言,涉及一种游戏中的信息处理方法、游戏中的信息处理装置、计算机可读存储介质及电子设备。The present disclosure relates to the technical field of human-computer interaction, and in particular, to an information processing method in a game, an information processing apparatus in a game, a computer-readable storage medium, and an electronic device.
背景技术Background technique
目前,大部分游戏在游戏过程中都是显示虚构的游戏场景对应的游戏画面。部分游戏虽然设置了AR(Augmented Reality,增强现实)功能,但是其也只是可以在用户点击某个入口按钮后,直接从虚拟游戏场景完全切换到现实场景,对应的游戏画面也直接从虚拟游戏场景画面切换到现实场景画面,也就是说,图形用户界面中要么显示虚拟游戏场景画面,要么显示现实场景画面,而不能同时显示虚拟游戏场景画面和现实场景画面。At present, most games display a game screen corresponding to a fictitious game scene during the game. Although some games are equipped with AR (Augmented Reality) function, they can only switch from the virtual game scene to the real scene directly after the user clicks an entry button, and the corresponding game screen is also directly from the virtual game scene. The picture is switched to the real scene picture, that is to say, either the virtual game scene picture or the real scene picture is displayed in the GUI, but the virtual game scene picture and the real scene picture cannot be displayed at the same time.
显然,现有技术中显示的游戏画面比较单一,且不同类型的游戏画面之间的切换显示跳跃性太大,交互性不强,影响用户的游戏体验。Obviously, the game screen displayed in the prior art is relatively simple, and the switching display between different types of game screens is too jumpy, and the interactivity is not strong, which affects the user's game experience.
需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the above Background section is only for enhancement of understanding of the background of the present disclosure, and therefore may contain information that does not form the prior art that is already known to a person of ordinary skill in the art.
发明内容SUMMARY OF THE INVENTION
本公开的目的在于提供一种游戏画面的显示方法及装置、计算机可读存储介质及电子设备,进而至少在一定程度上改善游戏画面显示时交互性不强,用户体验差的问题。The purpose of the present disclosure is to provide a method and device for displaying a game screen, a computer-readable storage medium and an electronic device, thereby at least to a certain extent improving the problems of poor interactivity and poor user experience when displaying the game screen.
本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other features and advantages of the present disclosure will become apparent from the following detailed description, or be learned in part by practice of the present disclosure.
根据本公开的第一方面,提供了一种游戏中的信息处理方法,应用于终端设备,所述终端设备包括摄像模组,所述方法包括:在终端设备的图形用户界面中显示第一画面;响应针对所述摄像模组的镜头的遮挡操作,根据所述镜头的遮挡情况在所述图形用户界面中确定出目标显示区域;将所述目标显示区域中显示的内容由所述第一画面中的局部画面切换为目标画面。According to a first aspect of the present disclosure, there is provided an information processing method in a game, which is applied to a terminal device, the terminal device includes a camera module, and the method includes: displaying a first picture in a graphical user interface of the terminal device In response to the occlusion operation for the lens of the camera module, determine the target display area in the graphical user interface according to the occlusion situation of the lens; the content displayed in the target display area is displayed in the first screen The partial screen in is switched to the target screen.
在本公开的一种示例性实施例中,基于前述方案,所述响应针对所述摄像模组的镜头的遮挡操作,根据所述镜头的遮挡情况在所述图形用户界面中确定出目标显示区域,包括:响应针对所述摄像模组的镜头的部分遮挡操作,根据所述镜头的遮挡情况在所述图形用户界面中确定出所述目标显示区域。In an exemplary embodiment of the present disclosure, based on the foregoing solution, the target display area is determined in the graphical user interface according to the occlusion of the lens in response to the occlusion operation of the lens of the camera module , comprising: in response to a partial occlusion operation for the lens of the camera module, determining the target display area in the graphical user interface according to the occlusion of the lens.
在本公开的一种示例性实施例中,基于前述方案,所述根据所述镜头的遮挡情况在所述图形用户界面中确定出所述目标显示区域,包括:根据所述镜头被遮挡的部分在所述图形用户界面中对应的显示区域,确定出所述目标显示区域;或根据所述镜头未被遮挡的部分在所述用户界面中对应的显示区域,确定出所述目标显示区域。In an exemplary embodiment of the present disclosure, based on the foregoing solution, the determining the target display area in the graphical user interface according to the occlusion of the lens includes: according to the occluded part of the lens The target display area is determined in the corresponding display area in the graphical user interface; or the target display area is determined according to the corresponding display area in the user interface of the unobstructed part of the lens.
在本公开的一种示例性实施例中,基于前述方案,所述第一画面为通过所述摄像模组的镜头所生成的现实场景画面,所述目标画面为所述游戏对应的虚拟场景画面;或者所述第一画面为所述游戏对应的虚拟场景画面,所述目标画面为通过所述摄像模组的镜头所生成的现实场景画面;或者所述第一画面为所述游戏对应的虚拟场景画面,所述目标画面为所述游戏的虚拟场景对应的场景缩略图。In an exemplary embodiment of the present disclosure, based on the foregoing solution, the first picture is a real scene picture generated through the lens of the camera module, and the target picture is a virtual scene picture corresponding to the game ; Or the first picture is the virtual scene picture corresponding to the game, and the target picture is the real scene picture generated by the lens of the camera module; or the first picture is the virtual scene picture corresponding to the game A scene picture, the target picture is a scene thumbnail corresponding to the virtual scene of the game.
在本公开的一种示例性实施例中,基于前述方案,所述响应针对所述摄像模组的镜头的遮挡操作,根据所述镜头的遮挡情况,在所述图形用户界面中确定出目标显示区域,包括:响应针对所述摄像模组的镜头的遮挡操作,确定所述镜头被遮挡的部分在所述第一画面中形成的色块区域;根据所述色块区域,在所述图形用户界面中确定出所述目标显示区域。In an exemplary embodiment of the present disclosure, based on the foregoing solution, in response to the occlusion operation of the lens of the camera module, the target display is determined in the graphical user interface according to the occlusion of the lens. area, including: in response to the blocking operation for the lens of the camera module, determining the color block area formed by the blocked part of the lens in the first picture; according to the color block area, in the graphic user The target display area is determined in the interface.
在本公开的一种示例性实施例中,基于前述方案,在根据所述色块区域,在所述图形用户界面中确定出所述目标显示区域之前,所述方法还包括:调整所述色块区域的颜色,以使所述色块区域在所述图形用户界面上存在视觉区分。In an exemplary embodiment of the present disclosure, based on the foregoing solution, before the target display area is determined in the graphical user interface according to the color patch area, the method further includes: adjusting the color The color of the block area so that the color block area is visually distinguishable on the GUI.
在本公开的一种示例性实施例中,基于前述方案,所述方法还包括:响应针对所述摄像模组的镜头的遮挡面积的调整操作,调整所述目标显示区域在所述图形用户界面中的显示尺寸。In an exemplary embodiment of the present disclosure, based on the foregoing solution, the method further includes: in response to an adjustment operation for the occlusion area of the lens of the camera module, adjusting the target display area on the graphical user interface Display size in .
在本公开的一种示例性实施例中,基于前述方案,所述方法还包括:响应所述目标显示区域在所述图形用户界面中的显示尺寸满足第一预设条件,控制所述游戏中的目标游戏角色执行目标游戏动作。In an exemplary embodiment of the present disclosure, based on the foregoing solution, the method further includes: in response to the display size of the target display area in the graphical user interface meeting a first preset condition, controlling the game The target game character performs the target game action.
在本公开的一种示例性实施例中,基于前述方案,所述游戏包括解密类游戏;所述方法还包括:响应所述目标显示区域在所述图形用户界面中的显示尺寸满足第二预设条件,在所述图形用户界面中显示与所述第二预设条件对应的解密线索和/或解密元素。In an exemplary embodiment of the present disclosure, based on the foregoing solution, 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 predetermined level A condition is set, and decryption clues and/or decryption elements corresponding to the second preset condition are displayed in the graphical user interface.
根据本公开的第二方面,提供了一种游戏中的信息处理装置,应用于终端设备,所述终端设备包括摄像模组,所在装置包括:游戏画面显示模块,被配置为在所述终端设备的图形用户界面中显示第一画面;目标显示区域确定模块,被配置为响应针对所述摄像模组的镜头的遮挡操作,根据所述镜头的遮挡情况在所述图形用户界面中确定出目标显示区域;局部游戏画面切换模块,被配置为将所述目标显示区域中显示的内容由所述第一画面中的局部画面切换为目标画面。According to a second aspect of the present disclosure, there is provided an information processing apparatus in a game, which is applied to a terminal device, where the terminal device includes a camera module, and the device includes: a game screen display module configured to be displayed in the terminal device The first picture is displayed in the graphical user interface of the camera module; the target display area determination module is configured to respond to the occlusion operation for the lens of the camera module, and determine the target display in the graphical user interface according to the occlusion of the lens. an area; a local game picture switching module, configured to switch the content displayed in the target display area from the partial picture in the first picture to the target picture.
根据本公开的第三方面,提供了一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现如上述实施例中第一方面所述的游戏中的信息处理方法。According to a third aspect of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements information processing in a game as described in the first aspect of the above embodiments method.
根据本公开实施例的第四方面,提供了一种电子设备,包括:处理器;以及,存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如上述实施例中第一方面所述的游戏中的信息处理方法。According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; and a storage device for storing one or more programs, when the one or more programs are stored by the one or more programs When executed by each processor, the one or more processors are caused to implement the method for processing information in a game as described in the first aspect of the above embodiment.
由上述技术方案可知,本公开示例性实施例中的游戏中的信息处理方法、游戏中的信息处理装置,以及实现所述游戏中的信息处理方法的计算机可读存储介质及电子设备,至少具备以下优点和积极效果:It can be known from the above technical solutions that the in-game information processing method, the in-game information processing apparatus, the computer-readable storage medium and the electronic device for implementing the in-game information processing method in the exemplary embodiments of the present disclosure at least have The following advantages and positive effects:
在本公开的一些实施例所提供的技术方案中,可以响应针对终端设备的摄像模组的镜头的遮挡操作,根据所述镜头的遮挡情况在终端设备的图形用户界面中确定出目标显示区域,然后,将目标显示区域中显示的内容,由终端设备的图形用户界面中显示的第一画面中的局部画面切换为目标画面。与相关技术相比,本公开通过响应对终端设备的摄像模组的遮挡操作,可以将图形用户界面中显示的第一画面中的局部画面切换为目标画面,从而提高游戏画面显示的丰富性,且增强了用户的游戏交互体验。In the technical solutions provided by some embodiments of the present disclosure, the target display area can be determined in the graphical user interface of the terminal device according to the occlusion of the lens in response to the occlusion operation of the lens of the camera module of the terminal device, Then, the content displayed in the target display area is switched from the partial screen in the first screen displayed in the graphical user interface of the terminal device to the target screen. Compared with the related art, the present disclosure can switch the partial picture in the first picture displayed in the graphical user interface to the target picture by responding to the blocking operation on the camera module of the terminal device, thereby improving the richness of the display of the game picture. And enhance the user's game interaction experience.
本公开应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood in the present disclosure that the foregoing general description and the following detailed description are exemplary and explanatory only and are not limiting of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1示出本公开一示例性实施例中的一种游戏中的信息处理方法的流程示意图;FIG. 1 shows a schematic flowchart of an information processing method in a game in an exemplary embodiment of the present disclosure;
图2示出本公开一示例性实施例中的确定目标显示区域的方法的流程示意图;FIG. 2 shows a schematic flowchart of a method for determining a target display area in an exemplary embodiment of the present disclosure;
图3示出本公开一示例性实施例中的一种将游戏画面中的局部画面切换为目标画面后所显示的画面;FIG. 3 shows a screen displayed after switching a partial screen in a game screen to a target screen according to an exemplary embodiment of the present disclosure;
图4示出本公开一示例性实施例中的一种在终端设备的摄像模组未被启用时图形用户界面中显示的内容;FIG. 4 shows content displayed in a graphical user interface when the camera module of the terminal device is not enabled in an exemplary embodiment of the present disclosure;
图5示出本公开一示例性实施例中的解密类游戏的解密方法的流程示意图;5 shows a schematic flowchart of a decryption method for a decryption game in an exemplary embodiment of the present disclosure;
图6示出本公开一示例性实施例中的一种图形用户界面中所显示的游戏画面;FIG. 6 shows a game screen displayed in a graphical user interface in an exemplary embodiment of the present disclosure;
图7示出本公开一示例性实施例中的游戏中的信息处理装置的结构示意图;FIG. 7 shows a schematic structural diagram of an information processing apparatus in a game in an exemplary embodiment of the present disclosure;
图8示出本公开示例性实施例中计算机存储介质的结构示意图;FIG. 8 shows a schematic structural diagram of a computer storage medium in an exemplary embodiment of the present disclosure;
图9示出本公开示例性实施例中电子设备的结构示意图。FIG. 9 shows a schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure.
具体实施方式Detailed ways
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
本说明书中使用用语“一个”、“一”、“该”和“所述”用以表示存在一个或多个要素/组成部分/等;用语“包括”和“具有”用以表示开放式的包括在内的意思并且是指除了列出的要素/组成部分/等之外还可存在另外的要素/组成部分/等;用语“第一”和“第二”等仅作为标记使用,不是对其对象的数量限制。The terms "a", "an", "the" and "said" are used in this specification to indicate the presence of one or more elements/components/etc; the terms "include" and "have" are used to indicate open-ended Inclusive means and means that additional elements/components/etc may be present in addition to the listed elements/components/etc; the terms "first" and "second" etc. are used only as labels, not for The number of its objects is limited.
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the figures are functional entities that do not necessarily necessarily correspond to physically or logically separate entities.
目前,大部分游戏在游戏过程中都是显示虚构的游戏场景对应的游戏画面,玩家直接在终端设备的图形用户界面中显示的虚拟游戏场景中进行游戏操作。部分游戏设置了AR功能,玩家可以点击某个入口按钮实现由虚拟游戏场景到现实场景的切换,从而可以在现实场景中进行游戏操作。At present, most games display a game screen corresponding to a fictitious game scene during the game, and players directly perform game operations in the virtual game scene displayed on the graphical user interface of the terminal device. Some games are equipped with AR function. Players can click a certain entry button to switch from virtual game scene to real scene, so that game operations can be performed in the real scene.
相关技术中,虽然在游戏中设置了AR功能,但其是直接从游戏场景跳转到现实场景,图形用户界面中显示的游戏画面也是直接完全的从虚拟游戏场景画面切换为现实场景画面,而无法同时显示虚拟游戏场景画面和现实场景画面,从而使得虚拟游戏场景和现实场景之间的交互较少,进而使得用户的操作和游戏画面的显示之间的交互性不足,影响用户的游戏体验。In the related art, although the AR function is set in the game, it directly jumps 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. The virtual game scene picture and the real scene picture 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 picture is insufficient, which affects the user's game experience.
在本公开的实施例中,首先提供了一种游戏中的信息处理方法,至少在一定程度上克服上述相关技术中存在的缺陷。In the embodiments of the present disclosure, an information processing method in a game is first provided, which overcomes the above-mentioned defects in the related art to a certain extent at least.
图1示出本公开一示例性实施例中的游戏中的信息处理方法的流程示意图,该方法可以应用于终端设备,所述终端设备包括摄像模组。参考图1,该方法包括:FIG. 1 shows a schematic flowchart of an in-game information processing method in an exemplary embodiment of the present disclosure. The method can be applied to a terminal device, and the terminal device includes a camera module. Referring to Figure 1, the method includes:
步骤S110,在终端设备的图形用户界面中显示第一画面;Step S110, displaying the first picture in the graphical user interface of the terminal device;
步骤S120,响应针对所述摄像模组的镜头的遮挡操作,根据所述镜头的遮挡情况在所述图形用户界面中确定出目标显示区域;Step S120, in response to the occlusion operation for the lens of the camera module, determine the target display area in the graphical user interface according to the occlusion of the lens;
步骤S130,将所述目标显示区域中显示的内容由所述第一画面中的局部画面切换为目标画面。Step S130, switching the content displayed in the target display area from the partial screen in the first screen to the target screen.
在图1所示实施例所提供的技术方案中,可以响应针对终端设备的摄像模组的镜头的遮挡操作,根据所述镜头的遮挡情况在终端设备的图形用户界面中确定出目标显示区域,然后,将目标显示区域中显示的内容,由终端设备的图形用户界面中显示的第一画面中的局部画面切换为目标画面。与相关技术相比,本公开通过对终端设备的摄像模组的遮挡操作,可以将图形用户界面中显示的第一画面中的局部画面切换为目标画面,可以提高游戏画面显示的丰富性,增强用户的游戏交互体验。In the technical solution provided by the embodiment shown in FIG. 1, the target display area can be determined in the graphical user interface of the terminal device according to the occlusion of the lens in response to the blocking operation of the lens of the camera module of the terminal device, Then, the content displayed in the target display area is switched from the partial screen in the first screen displayed in the graphical user interface of the terminal device to the target screen. Compared with the related art, the present disclosure can switch the partial picture in the first picture displayed in the graphical user interface to the target picture through the blocking operation of the camera module of the terminal device, which can improve the richness of the game picture display and enhance the User's game interaction experience.
以下对图1所示实施例中各个步骤的具体实施方式进行详细阐述:The specific implementation of each step in the embodiment shown in FIG. 1 is described in detail below:
在步骤S110中,在所述终端设备的图形用户界面中显示第一画面。In step S110, a first picture is displayed in the graphical user interface of the terminal device.
在本公开中,终端设备可以包括可移动终端,如智能手机、平板电脑、可穿戴式电子设备等任意具有显示功能和摄像模组的终端设备。摄像模组可以理解为终端设备中用于采集图像的设备。其中,对于终端设备的摄像模组而言,其可以具有一个或多个用于图像采集的镜头。In the present disclosure, the terminal device may include a mobile terminal, such as any terminal device with a display function and a camera module, such as a smart phone, a tablet computer, and a wearable electronic device. The camera module can be understood as a device used to capture images in a terminal device. Wherein, for the camera module of the terminal device, it may have one or more lenses for image acquisition.
示例性的,第一画面可以为所述游戏对应的虚拟场景画面。基于此,步骤S110的一种具体实施方式可以包括:在终端设备的图形用户界面中,显示游戏的虚拟游戏场景对应的虚拟场景画面。Exemplarily, the first picture may be a virtual scene picture corresponding to the game. Based on this, a specific implementation manner of step S110 may include: displaying a virtual scene picture corresponding to the virtual game scene of the game in the graphical user interface of the terminal device.
示例性的,第一画面可以为通过摄像模组的镜头所生成的现实场景画面。基于此,步骤S110的另一种具体实施方式可以包括:在终端设备的图形用户界面中,显示通过所述摄像模组获取到的现实场景画面。Exemplarily, the first picture may be a real scene picture generated through the lens of the camera module. Based on this, another specific implementation of step S110 may include: displaying, in a graphical user interface of the terminal device, the real scene picture acquired by the camera module.
换言之,在终端设备的摄像模组的镜头未被遮挡前,终端设备的图形用户界面中显示的第一画面可以是游戏的虚拟游戏场景对应的虚拟场景画面,也可以是通过终端设备的摄像模组采集到的终端设备当前所处的现实环境中的现实场景画面。本示例性实施方式对此不做特殊限定。In other words, before the lens of the camera module of the terminal device is not blocked, the first picture displayed in the graphical user interface of the terminal device may be a virtual scene picture corresponding to the virtual game scene of the game, or it may be a picture of a virtual scene corresponding to the virtual game scene of the terminal device, or the camera module of the terminal device. The real scene images in the real environment where the terminal device is currently located are collected by the group. This exemplary embodiment does not specifically limit this.
在一种可选的实施方式中,响应通过所述终端设备登录所述游戏的第一触发操作,通过第一画布在所述终端设备的图形用户界面中,显示所述游戏的虚拟游戏场景对应的虚拟场景画面。In an optional implementation manner, in response to a first trigger operation of logging in to the game through the terminal device, a graphical user interface of the terminal device through a first canvas displays the corresponding virtual game scene of the game. of the virtual scene.
在一种可选的实施方式中,响应启用所述终端设备的摄像模组的第二触发操作,利用第二画布遮住所述第一画布,以在所述第二画布中显示所述摄像模组的镜头拍摄到的现实场景画面。In an optional implementation manner, in response to a second trigger operation of enabling a camera module of the terminal device, the first canvas is covered with a second canvas, so as to display the camera in the second canvas The real scene picture captured by the lens of the module.
举例而言,当用户在通过终端设备登入游戏时,游戏服务器或者终端设备可以先用第一画布,如使用一个第一canvas(游戏开发引擎中用来显示游戏画面的画布)来显示游戏引擎渲染的虚拟游戏场景对应的虚拟场景画面。然后,用户可以根据提示或者自己的需求,启用终端设备的摄像模组,当用户启用终端设备的摄像头时,可以在UI层(UserInterface,用户界面)使用第二画布,如另一个第二canvas,显示终端设备的摄像模组拍摄到的现实场景画面。其中,第二canvas覆盖在第一canvas的上方,以完全遮住第一canvas显示的虚拟游戏场景,从而使得可以通过第二canvas显示现实场景画面。For example, when the user logs into the game through the terminal device, the game server or the terminal device can first use the first canvas, such as a first canvas (the canvas used to display the game screen in the game development engine), to display the rendering of the game engine The virtual scene picture corresponding to the virtual game scene. Then, the user can enable the camera module of the terminal device according to the prompt or his own needs. When the user enables the camera of the terminal device, he can use a second canvas at the UI layer (UserInterface, user interface), such as another second canvas, Displays the real scene image captured by the camera module of the terminal device. Wherein, the second canvas is covered above 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.
也就是说,当用户通过游戏账号登入游戏后,在用户未启用终端设备的摄像模组之前,终端设备的图形用户界面中显示的是虚拟场景画面,当用户启用摄像模组之后,终端设备的图形用户界面中显示的就可以是摄像模组拍摄到的现实场景画面。That is to say, after the user logs in to the game through the game account, before the user does not enable the camera module of the terminal device, the GUI of the terminal device displays a virtual scene screen. After the user enables the camera module, the What is displayed in the graphical user interface may be the real scene picture captured by the camera module.
在另一种示例性的实施方式中,摄像模组的启用状态的开启操作也可以不用根据玩家的选择确定,例如,当玩家打开游戏或者登入游戏后,可以默认同时自动启用摄像模组,也就是说,默认情况下摄像模组直接处于启用状态,而当玩家不想使用摄像模组的功能时,则可以对应的关闭摄像模组,使得摄像模组从默认的启用状态转变为未启用状态。本示例性实施方式对此不做特殊限定。In another exemplary embodiment, the enabling operation of the enabled state of the camera module may not be determined according to the player's selection. For example, when the player opens the game or logs in to the game, the camera module may be automatically enabled at the same time by default, or That is to say, the camera module is directly enabled by default, and 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 specifically limit this.
举例而言,在本公开中,也可以是当用户通过终端设备登入游戏后,终端设备的图形用户界面中显示的就是摄像模组采集到的现实场景画面,如当用户登入游戏时,使用一个画布1在图形用户界面中显示终端设备的摄像模组采集到的现实场景画面。然后用户可以根据自己的需求选择关闭摄像模组,当用户关闭摄像模组后,可以使用一个画布2覆盖住画布1,然后在画布2中显示游戏引擎渲染的虚拟游戏场景画面。For example, in the present disclosure, after the user logs in to the game through the terminal device, the graphical user interface of the terminal device displays the real scene image captured by the camera module. For example, when the user logs in to the game, a The canvas 1 displays the real scene picture collected by the camera module of the terminal device in the graphical user interface. Then the user can choose to close the camera module according to his own needs. When the user closes the camera module, he can use a canvas 2 to cover the canvas 1, and then display the virtual game scene image rendered by the game engine in the canvas 2.
示例性的,用户在关闭摄像模组后,可以根据需求或者提示再次启用摄像模组,本示例性实施方式对此不做特殊限定。Exemplarily, after closing the camera module, the user can enable the camera module again according to requirements or prompts, which is not specifically limited in this exemplary embodiment.
在再一种示例性的实施方式中,即使终端设备的摄像模组处于启用状态,在终端设备的摄像模组的镜头未被遮挡的情况下,终端设备的图形用户界面中也可以仅显示虚拟游戏场景画面,本示例性实施方式对此不做特殊限定。In yet another exemplary embodiment, even if the camera module of the terminal device is in an enabled state, under the condition that the lens of the camera module of the terminal device is not blocked, the GUI of the terminal device may only display virtual The game scene picture, which is not particularly limited in this exemplary embodiment.
接下来,在步骤S120中,响应针对所述摄像模组的镜头的遮挡操作,根据所述镜头的遮挡情况在所述图形用户界面中确定出目标显示区域。Next, in step S120, in response to the occlusion operation for the lens of the camera module, a target display area is determined in the graphical user interface according to the occlusion of the lens.
在一种可选的实施方式中,步骤S120的一种具体实施方式可以是,在所述摄像模组处于启用状态时,响应针对所述摄像模组的镜头的遮挡操作,根据所述镜头的遮挡情况在所述图形用户界面中确定出目标显示区域。In an optional implementation, a specific implementation of step S120 may be, when the camera module is in an enabled state, in response to a blocking operation for the lens of the camera module, according to the The occlusion conditions determine the target display area in the graphical user interface.
在另一种可选的实施方式中,步骤S120的一种具体实施方式可以是,响应针对所述终端设备的摄像模组的镜头的部分遮挡操作,根据所述镜头的遮挡情况在所述图形用户界面中确定出目标显示区域。In another optional implementation, a specific implementation of step S120 may be, in response to a partial occlusion operation for the lens of the camera module of the terminal device, according to the occlusion of the lens, in the graph The target display area is determined in the user interface.
换言之,针对摄像模组的镜头的遮挡操作可以包括针对摄像模组的镜头的部分遮挡操作。当然,针对摄像模组的镜头的遮挡操作也可以是全部遮挡操作。In other words, the blocking operation for the lens of the camera module may include a partial blocking operation for the lens of the camera module. Of course, the blocking operation for the lens of the camera module may also be a full blocking operation.
在一种可选的实施方式中,根据所述镜头的遮挡情况在所述图形用户界面中确定出目标显示区域,包括:根据所述镜头被遮挡的部分在所述图形用户界面中对应的显示区域,确定出目标显示区域。In an optional implementation manner, determining the target display area in the graphical user interface according to the occlusion situation of the lens includes: corresponding display in the graphical user interface according to the occluded part of the lens area to determine the target display area.
举例而言,可以识别出镜头被遮挡的部分在图形用户界面中对应的显示区域,然后将该显示区域确定为目标显示区域。For example, the display area corresponding to the blocked part of the lens in the graphical user interface may be identified, and then the display area may be determined as the target display area.
在另一种可选的实施方式中,根据所述镜头的遮挡情况在所述图形用户界面中确定出目标显示区域,包括:根据所述镜头未被遮挡的部分在所述用户界面中对应的显示区域,确定出目标显示区域。In another optional implementation manner, determining the target display area in the graphical user interface according to the occlusion of the lens includes: according to the unobstructed part of the lens corresponding to the user interface Display area, determine the target display area.
举例而言,也可以在识别出镜头被遮挡的部分在图形用户界面中对应的显示区域后,将图形用户界面中除去该显示区域外的其它区域确定为目标显示区域。For example, after recognizing the display area corresponding to the part of the lens blocked in the GUI, other areas in the GUI excluding the display area may be determined as the target display area.
示例性的,图2示出本公开一示例性实施例中确定目标显示区域的方法的流程示意图。参考图2,该方法可以包括步骤S210至步骤S220。其中:Exemplarily, FIG. 2 shows a schematic flowchart of a method for determining a target display area in an exemplary embodiment of the present disclosure. Referring to FIG. 2, the method may include steps S210 to S220. in:
在步骤S210中,响应针对所述摄像模组的镜头的遮挡操作,确定所述镜头被遮挡的部分在所述第一画面中形成的色块区域。In step S210, in response to the blocking operation for the lens of the camera module, a color patch area formed in the first picture by the blocked part of the lens is determined.
举例而言,当用户,即游戏玩家对终端设备的摄像模组的镜头进行部分遮挡时,如用手指遮住镜头的一部分时,因为手指十分靠近摄像模组的镜头,所以被手指遮住的部分在第一画面中表现为一大块深色的色块。For example, when a user, that is, a game player, partially covers 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 lens is covered by the finger. Parts appear as a large dark patch in the first frame.
接下来,在步骤S220中,根据所述色块区域,在所述图形用户界面中确定出所述目标显示区域。Next, in step S220, the target display area is determined in the graphical user interface according to the color patch area.
示例性的,在根据所述色块区域,在所述图形用户界面中确定出所述目标显示区域之前,还可以调整所述色块区域的颜色,以使所述色块区域在所述图形用户界面上存在视觉区分。Exemplarily, before the target display area is determined in the graphical user interface according to the color patch area, the color of the color patch area may also be adjusted, so that the color patch area is in the graphic user interface. There is a visual distinction on the user interface.
例如,可以将所述色块区域的颜色调整为预设颜色。其中,预设颜色可以为白色,当然也可以是其他的能够和未被遮住的部分进行区分的颜色,本示例性实施方式对此不做特殊限定。For example, the color of the color block area can be adjusted to a preset color. Wherein, the preset color may be white, and certainly may be other colors that can be distinguished from the uncovered part, which is not specifically limited in this exemplary embodiment.
举例而言,可以用代码把目标色块的颜色转化为白色#000000。这样,就可以将镜头被遮住的部分在图形用户界面中对应的显示区域和未被遮住的部分在图形用户界面中的显示区域进行区分。For example, you can use code to convert the color of the target patch to white #000000. In this way, the corresponding display area of the covered part of the lens in the GUI and the display area of the uncovered part in the GUI can be distinguished.
示例性的,根据所述色块区域确定出目标显示区域可以包括:将所述色块区域确定为目标显示区域。即将镜头被遮挡的部分映射在图形用户界面中的显示区域确定为目标显示区域。Exemplarily, determining the target display area according to the color patch area may include: determining the color patch area as the target display area. That is, the display area where the occluded part of the lens is mapped in the graphical user interface is determined as the target display area.
示例性的,根据所述色块区域确定出目标显示也可以包括:将所述色块区域之外的显示区域确定为目标显示区域,即将镜头未被遮挡的部分映射在图形用户界面中的显示区域确定为目标显示区域。Exemplarily, determining the target display according to the color patch area may also include: determining the display area outside the color patch area as the target display area, that is, mapping the unobstructed part of the lens to display in the graphical user interface. The area is determined as the target display area.
通过上述的步骤S210至步骤S220,可以根据镜头被遮挡的部分在图形用户界面中对应的色块区域,确定出目标显示区域。Through the above steps S210 to S220, the target display area can be determined according to the color block area corresponding to the part of the lens that is blocked in the graphical user interface.
在另一种示例性的实施方式中,游戏服务器或者游戏客户端可以在终端设备的摄像模组处于启用状态时,实时检测登录的游戏账号所在的终端设备的摄像模组的镜头是否被遮挡,当摄像模组的镜头被遮挡时,也可以确定镜头被遮挡的部分的面积与镜头总面积之间的第一比值,并根据第一比值对图形用户界面进行划分,从而将图形用户界面划分为第一显示区域和第二显示区域,并使得划分后得到的第一显示区域的面积在图形用户界面中所占的显示比例与上述的第一比值相等,从而将第一显示区域或第二显示区域确定为目标显示区域。In another exemplary implementation, the game server or the game client may, when the camera module of the terminal device is in an enabled state, 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, and When the lens of the camera module is blocked, the first ratio between the area of the blocked part of the lens and the total area of the lens can also be determined, and the GUI is divided according to the first ratio, so that the GUI is divided into The first display area and the second display area, and the display ratio of the area of the first display area obtained after division in the graphical user interface is equal to the above-mentioned first ratio, so that the first display area or the second display area is displayed. The area is determined as the target display area.
在另一种示例性的实施方式中,也可以根据镜头中未被遮挡的部分的面积与镜头总面积之间的第二比值,将图形用户界面划分为第一显示区域和第二显示区域,以使得第一显示区域在图形用户界面中所占的显示比例与上述的第二比值相等,从而将第一显示区域或第二显示区域确定为目标显示区域。In another exemplary embodiment, the graphical user interface may also be divided into a first display area and a second display area according to a second ratio between the area of the unobstructed part of the lens and the total area of the lens, The first display area or the second display area is determined as the target display area so that the display ratio occupied by the first display area in the graphical user interface is equal to the above-mentioned second ratio.
当然,也可以通过其它的方式确定出目标显示区域,本示例性实施方式对此不做特殊限定。Of course, the target display area may also be determined in other manners, which is not specifically limited in this exemplary embodiment.
接下来,在步骤S130中,将所述目标显示区域中显示的内容由所述第一画面中的局部画面切换为目标画面。Next, in step S130, the content displayed in the target display area is switched from the partial screen in the first screen to the target screen.
在一种示例性的实施方式中,在第一画面为所述游戏的虚拟场景画面时,目标画面为通过摄像模组的镜头所生成的现实场景画面。即,在步骤S110中,如果在终端设备的图形用户界面中当前显示的是游戏对应的虚拟场景画面,则步骤S130的具体实施方式可以是,将所述目标显示区域中显示的内容,由所述虚拟场景画面中的局部画面切换为通过所述镜头未被遮挡的部分获取到的现实场景画面。In an exemplary implementation, 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, then the specific implementation of step S130 may be: The partial picture in the virtual scene picture is switched to the real scene picture obtained through the unobstructed part of the lens.
举例而言,如果终端设备的图形用户界面中当前显示的是虚拟场景画面,则响应于针对终端设备的摄像模组的镜头的部分遮挡操作,可以根据镜头中未被遮挡的部分确定出目标显示区域,然后在目标显示区域中显示通过镜头未被遮挡的部分采集到的现实场景画面。这样,就可以实现在终端设备的图形用户界面中同时显示虚拟游戏场景画面和现实场景画面。For example, if what is currently displayed in the graphical user interface of the terminal device is a virtual scene image, in response to a partial occlusion operation for the lens of the camera module of the terminal device, the target display can be determined according to the unobstructed part of the lens. area, and then display the real scene image captured by the unobstructed part of the lens in the target display area. In this way, the virtual game scene picture and the real scene picture can be simultaneously displayed in the graphical user interface of the terminal device.
示例性的,将所述目标显示区域中显示的内容,由所述虚拟场景画面中的局部画面切换为通过所述镜头未被遮挡的部分获取到的现实场景画面,可以包括:将镜头被遮挡的部分对应的色块区域之外的显示区域作为目标显示区域,即将镜头未被遮挡的部分作为目标显示区域。然后,将目标显示区域作为显示现实场景canvas的蒙版mask(即遮罩)。这样,就可以实现镜头被遮住的部分映射在图形用户界面中的显示区域显示的是虚拟游戏场景画面,镜头中未被遮住的部分映射在图形用户界面中的显示区域显示的是现实场景画面。即目标显示区域显示的是现实场景画面,目标显示区域之外的区域显示的是仍然是虚拟游戏场景画面。Exemplarily, switching the content displayed in the target display area from the partial picture in the virtual scene picture to the real scene picture obtained through the unobstructed part of the lens may include: switching the lens to be blocked. The display area outside the color block area corresponding to the part of , is used as the target display area, that is, the part that is not blocked by the lens is used as the target display area. Then, the target display area is used as a mask (ie, a mask) to display the canvas of the real scene. In this way, it is possible to realize that the covered part of the lens is mapped in the display area of the GUI to display the virtual game scene, and the unobstructed part of the lens is mapped to the display area of the GUI to display the real scene. screen. That is, the target display area displays the real scene image, and the area outside the target display area displays the virtual game scene image.
在另一种示例性的实施方式中,在所述第一画面为通过所述摄像模组的镜头所生成的现实场景画面时,所述目标画面为所述游戏对应的虚拟场景画面。即在步骤S110中,如果在终端设备的图形用户界面中显示的第一画面是通过所述摄像模组的镜头所述形成的现实场景画面,则步骤S130的具体实施方式可以是,将所述目标显示区域中显示的内容,由所述现实场景画面中的局部画面切换为所述游戏中的虚拟场景画面。In another exemplary embodiment, when the first picture is a real scene picture generated through 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 may be: The content displayed in the target display area is switched from the partial picture in the real scene picture to the virtual scene picture in the game.
举例而言,如果终端设备的图形用户界面中当前显示的是现实场景画面,则响应于针对终端设备的摄像模组的镜头的部分遮挡操作,可以根据镜头中被遮挡的部分确定出目标显示区域,然后在目标显示区域中显示游戏引擎拍摄到的虚拟场景画面。这样,也可以实现在终端设备的图形用户界面中同时显示虚拟游戏场景画面和现实场景画面。For example, if what is currently displayed in the graphical user interface of the terminal device is a real scene picture, in response to a partial occlusion operation for the lens of the camera module of the terminal device, the target display area can be determined according to the occluded part of the lens. , and then display the virtual scene image captured by the game engine in the target display area. In this way, it is also possible to display the virtual game scene picture and the real scene picture simultaneously in the graphical user interface of the terminal device.
示例性的,将所述目标显示区域中显示的内容,由所述现实场景画面中的局部画面切换为所述游戏中的虚拟场景画面,可以包括:将镜头被遮挡的部分对应的色块区域确定为目标显示区域。然后,将目标显示区域作为显示虚拟游戏场景canvas的蒙版mask(即遮罩),这样,就可以实现镜头被遮住的部分映射在图形用户界面中的显示区域显示的是虚拟游戏场景画面,镜头中未被遮住的部分映射在图形用户界面中的显示区域显示的是现实场景画面。即目标显示区域显示的是虚拟场景画面,目标显示区域之外的区域显示的是仍然是现实场景画面。Exemplarily, switching the content displayed in the target display area from the partial image in the real scene image to the virtual scene image in the game may include: changing the color block area corresponding to the part of the lens that is occluded. Determined as the target display area. Then, the target display area is used as a mask (that is, a mask) for displaying the virtual game scene canvas, so that the masked part of the lens can be mapped to the display area in the graphical user interface to display the virtual game scene screen, The unobstructed part of the shot is mapped to the display area in the GUI to show the real scene picture. That is, the target display area displays the virtual scene image, and the area outside the target display area displays the real scene image.
在再一种示例性的实施方式中,在第一画面为所述游戏对应的虚拟场景画面时,目标画面为所述游戏的虚拟游戏场景对应的场景缩略图。即在步骤S110中,如果在终端设备的图形用户界面中显示的游戏画面是游戏的虚拟游戏场景对应的虚拟场景画面,步骤S130的具体实施方式还可以是,所述将所述目标显示区域中显示的内容由所述游戏画面中的局部画面切换为目标画面,包括:将所述目标显示区域中显示的内容,由所述虚拟场景画面中的局部画面切换为所述虚拟游戏场景对应的场景缩略图。In yet another exemplary embodiment, when the first picture is a virtual scene picture corresponding to 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 screen displayed in the graphical user interface of the terminal device is a virtual scene screen corresponding to the virtual game scene of the game, the specific implementation of step S130 may also be: The displayed content is switched from the partial screen in the game screen to the target screen, including: switching the content displayed in the target display area from the partial screen in the virtual scene screen to the scene corresponding to the virtual game scene Thumbnail.
其中,虚拟游戏场景对应的场景缩略图可以理解为游戏地图。The scene thumbnail corresponding to the virtual game scene can be understood as a game map.
举例而言,如果终端设备的图形用户界面中当前显示的是虚拟场景画面,则响应于针对终端设备的摄像模组的镜头的部分遮挡操作,可以根据镜头中被遮挡的部分确定出目标显示区域,也可以根据镜头中未被遮挡的部分确定出目标显示区域,然后在目标显示区域中显示游戏地图。这样,也可以实现在终端设备的图形用户界面中,同时显示虚拟游戏场景画面和虚拟游戏场景对应的游戏地图。For example, if what is currently displayed in the graphical user interface of the terminal device is a virtual scene picture, in response to a partial occlusion operation for the lens of the camera module of the terminal device, the target display area can be determined according to the occluded part of the lens. , you can also determine the target display area according to the unobstructed part of the lens, and then display the game map in the target display area. In this way, it can also be implemented in the graphical user interface of the terminal device to simultaneously display the virtual game scene picture and the game map corresponding to the virtual game scene.
示例性的,将所述目标显示区域中显示的内容,由所述虚拟场景画面中的局部画面切换为所述虚拟游戏场景对应的场景缩略图,可以包括:将镜头被遮挡的部分在第一画面中对应的色块区域作为显示游戏地图canvas的蒙版mask(即遮罩),或者将镜头被遮挡的部分在第一画面中对应的色块区域之外的显示区域作为显示游戏地图canvas的蒙版mask。这样,就可以实现镜头被遮挡的部分或未被遮挡的部分显示的仍然是虚拟游戏场景画面,而另一部分则显示的是游戏地图,从而可以在图形用户界面中同时显示虚拟游戏场景和游戏地图。进而可以根据用户的需求,通过用户对镜头的遮挡操作来显示游戏地图,提高用户的游戏交互体验。Exemplarily, switching the content displayed in the target display area from a partial image in the virtual scene image to a scene thumbnail corresponding to the virtual game scene may include: placing the blocked part of the lens in the first image. The corresponding color block area in the picture is used as the mask (ie, the mask) for displaying the game map canvas, or the display area where the part of the lens is blocked outside the corresponding color block area in the first picture is used as the display area for displaying the game map canvas. mask mask. In this way, it is possible to realize that the occluded part or the unoccluded part of the camera is still the virtual game scene picture, while the other part shows the game map, so that the virtual game scene and the game map can be displayed in the GUI at the same time. . Furthermore, according to the user's needs, the game map can be displayed through the user's occlusion operation on the lens, so as to improve the user's game interaction experience.
在一种示例性的实施方式中,在响应针对摄像模组的镜头的部分遮挡操作,在图形用户界面中同时显示虚拟游戏场景画面和现实场景画面时,摄像模组处于开启状态可以理解为摄像模组的拍摄功能在游戏中处于开启状态,摄像模组处于未开启状态可以理解为摄像模组的拍摄功能在游戏中处于未开启状态。In an exemplary 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 occlusion operation of the lens of the camera module, the camera module being in the on state can be understood as the camera module The shooting function of the module is turned on in the game, and the camera module is not turned on, it can be understood that the shooting function of the camera module is not turned on in the game.
在响应针对摄像模组的镜头的部分遮挡操作,在图形用户界面中同时显示虚拟游戏场景画面和游戏中的虚拟游戏场景对应的游戏地图时,摄像模组处于启用状态可以理解为摄像模组的地图开启功能处于启用状态,摄像模组处于未启用状态可以理解为摄像模组的地图开启功能处于未启用状态。When the virtual game scene screen and the game map corresponding to the virtual game scene in the game are simultaneously displayed in the GUI in response to the partial occlusion operation for the lens of the camera module, the camera module being in the enabled state can be understood as the camera module's The map opening function is enabled, and the camera module is not enabled, it can be understood that the map opening function of the camera module is not enabled.
换言之,可以将摄像模组的镜头作为游戏中开启游戏地图的开关,当摄像模组的地图开启功能处于启用状态时,则可以根据用户对摄像模组的镜头的遮挡操作,在图形用户界面中显示游戏的虚拟游戏场景对应的游戏地图,从而可以在不增加任何控件的情况下,方便用户的游戏操作,提升用户的游戏体验。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 enabled, the user can block the lens of the camera module according to the user's blocking operation. The game map corresponding to the virtual game scene of the game is displayed, so that the user's game operation can be facilitated and the user's game experience can be improved without adding any controls.
示例性的,当根据针对摄像模组的镜头的部分遮挡操作,在图形用户界面中同时显示虚拟游戏场景画面和现实场景画面时,步骤S120中的镜头可以理解为摄像模组中的成像摄像头,即主摄镜头。通常情况下,当主摄镜头被完全遮挡时,图形用户界面就整体显示为一个深色的色块,即无法进行成像;当主摄镜头被部分遮挡时,被遮挡的部分在图形用户界面中对应的第一成像区域就显示一个深色的色块,而未被遮挡的部分在图形用户界面中对应的第二成像区域中就可以正常显示拍摄到的现实场景画面。也就是说,此时图形用户界面中的一部分显示的是深色的色块,另一部分显示的是摄像头拍摄的现实场景画面;但当非主摄镜头被完全或部分遮挡时,均可以在图形用户界面中完整的显示摄像模组采集到的现实场景画面。Exemplarily, when the virtual game scene picture and the real scene picture are simultaneously displayed in the graphical user interface according to the partial occlusion operation for the lens of the camera module, the lens in step S120 can be understood as the imaging camera in the camera module, That is the main camera lens. Under normal circumstances, when the main camera lens is completely blocked, the GUI is displayed as a dark color block as a whole, that is, imaging cannot be performed; when the main camera lens is partially blocked, the blocked part corresponds to the GUI in the GUI. A dark color block is displayed in the first imaging area, and the captured real scene picture can be normally displayed in the second imaging area corresponding to the unobstructed part in the graphical user interface. That is to say, at this time, a part of the GUI displays a dark color block, and the other part displays the real scene image captured by the camera; but when the non-main camera lens is completely or partially blocked, it can be displayed in the graphic The user interface completely displays the real scene images collected by the camera module.
在示例性的实施方式中,当根据针对摄像模组的镜头的部分遮挡操作,在图形用户界面中同时显示虚拟游戏场景画面和游戏中的虚拟游戏场景对应的游戏地图时,步骤S120中的镜头可以是摄像模组中的主成像镜头,也可以是摄像模组中的副成像摄像头。In an exemplary embodiment, when the virtual game scene picture and the game map corresponding to the virtual game scene in the game are simultaneously displayed in the graphical user interface according to the partial occlusion operation for the lens of the camera module, the lens in step S120 It can be the main imaging lens in the camera module, or the secondary imaging camera in the camera module.
在一种示例性的实施方式中,图1所示的游戏中的信息处理方法还可以包括:响应针对所述摄像模组的镜头的遮挡面积的调整操作,调整所述目标显示区域在所述图形用户界面中的显示尺寸。In an exemplary embodiment, the in-game information processing method shown in FIG. 1 may further include: in response to an adjustment operation for the occlusion area of the lens of the camera module, adjusting the target display area in the Display size in the graphical user interface.
举例而言,游戏玩家在遮挡镜头的过程中,可以根据需求调整对镜头进行遮挡的面积,当镜头的遮挡面积发生变化时,被遮挡的部分在图形用户界面中对应的目标色块的大小也会发生变化,所以可以实时的根据镜头的遮挡面积的变化情况,调整确定出的目标显示区域在图形用户界面中的显示尺寸。For example, in the process of blocking the lens, the game player can adjust the area to be blocked by the lens according to their needs. When the blocking area of the lens changes, the size of the target color block corresponding to the blocked part in the GUI also changes. changes will occur, so the display size of the determined target display area in the GUI can be adjusted in real time according to the change of the occlusion area of the lens.
在一种示例性的实施方式中,图1所示的游戏中的信息处理方法,还可以包括:响应所述目标显示区域在所述图形用户界面中的显示尺寸满足第一预设条件,控制所述游戏中的目标游戏角色执行目标游戏动作。In an exemplary implementation, the in-game information processing method shown in FIG. 1 may further include: 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 performs a target game action.
在一种可选的实施方式中,第一预设条件可以包括目标显示区域的显示尺寸大于第一预设值或小于第一预设值或等于第一预设值,或者图形用户界面中目标显示区域和非目标显示区域的显示比例大于第一预设值或小于第一预设值或等于第一预设值等中的任一种。In an optional implementation manner, the first preset condition may include that the display size of the target display area is larger than the first preset value or smaller than the first preset value or equal to the first preset value, or the target display area in the GUI The display ratio of the display area and the non-target display area is either larger than the first preset value or smaller than the first preset value or equal to the first preset value or the like.
预先可以将第一预设条件与目标游戏角色执行目标游戏动作进行关联。在游戏过程中,用户可以通过调整对镜头的遮挡尺寸来调整目标显示区域在图形用户界面中所占的显示尺寸,当调整到目标显示区域的显示尺寸满足第一预设条件时,就可以自动的控制目标游戏角色执行目标游戏动作。从而可以将对目标游戏角色的控制和用户的遮挡操作联系起来,提供一种控制游戏角色执行游戏动作的操作方式,提高用户的游戏交互体验。The first preset condition may be associated with the target game character performing the target game action in advance. During the game, the user can adjust the display size of the target display area in the GUI by adjusting the occlusion size of the lens. The control target game character performs the target game action. Therefore, the control of the target game character and the user's occlusion operation can be linked, an operation mode for controlling the game character to perform game actions can be provided, and the user's game interaction experience can be improved.
示例性的,本公开中的游戏可以包括解密类游戏,基于此,图1所述的游戏中的信息处理方法还可以包括:响应所述目标显示区域在所述图形用户界面中的显示尺寸满足第二预设条件,在所述图形用户界面中显示与所述第二预设条件对应的解密线索和/或解密元素。Exemplarily, the game in the present disclosure may include a decryption game. Based on this, the information processing method in the game described in FIG. 1 may further include: responding to the display size of the target display area in the graphical user interface satisfying A second preset condition, displaying decryption clues and/or decryption elements corresponding to the second preset condition in the graphical user interface.
在一种可选的实施方式中,第二预设条件可以包括目标显示区域的显示尺寸大于第二预设值或小于第二预设值或等于第二预设值,或者图形用户界面中目标显示区域和除去目标显示区域外的非目标显示区域的显示比例大于第一预设值或小于第二预设值或等于第二预设值等中的任一种。In an optional implementation manner, the second preset condition may include that the display size of the target display area is larger than the second preset value or smaller than the second preset value or equal to the second preset value, or the target display size in the graphical user interface The display ratio of the display area and the non-target display area excluding the target display area is either greater than the first preset value or smaller than or equal to the second preset value or the like.
预先可以将第二预设条件与某个解密元素和/或解密线索进行关联。在游戏过程中,用户可以通过调整对镜头的遮挡尺寸来调整目标显示区域在图形用户界面中所占的显示尺寸,当调整到目标显示区域的显示尺寸满足第二预设条件时,就可以在图形用户界面中显示与第二预设条件关联的解密元素和/或解密线索。The second preset condition may be associated with a certain decryption element and/or decryption clue in advance. During the game, the user can adjust the display size of the target display area in the GUI by adjusting the occlusion size of the lens. When the display size adjusted to the target display area satisfies the second preset condition, you can Decryption elements and/or decryption clues associated with the second preset condition are displayed in the graphical user interface.
下面,结合图3至图7对本公开中的游戏中的信息处理方法进行更进一步的说明。Hereinafter, the information processing method in the game in the present disclosure will be further described with reference to FIG. 3 to FIG. 7 .
在一种示例性的实施方式中,如前所述,当用户登入游戏时,可以先用一个第一canvas(游戏开发引擎中用来显示游戏画面的画布)显示游戏引擎所渲染的该游戏的虚拟游戏场景对应的虚拟游戏场景画面;当用户选择启用终端设备的摄像模组,如启用主成像镜头时,可以在UI层用另一个第二canvas显示主成像镜头拍摄的画面。其中,第二canvas叠加在第一canvas的上方,以使得第二canvas可以完全遮住虚拟游戏场景画面。这样,当启用主成像镜头后,如果主成像镜头不存在被遮挡的部分时,就可以在整个图形用户界面中显示主成像镜头拍摄的现实场景画面。In an exemplary implementation, as mentioned above, when the user logs in to the game, a first canvas (the canvas used to display the game screen in the game development engine) may be used to display the game renderings rendered by the game engine. The virtual game scene screen corresponding to the virtual game scene; when the user chooses to enable the camera module of the terminal device, such as enabling the main imaging lens, another second canvas can be used at the UI layer to display the screen shot by the main imaging lens. Wherein, the second canvas is superimposed on the first canvas, so that the second canvas can completely cover the virtual game scene picture. In this way, when the main imaging lens is enabled, if there is no blocked part of the main imaging lens, the real scene picture captured by the main imaging lens can be displayed in the entire GUI.
在游戏过程中,当玩家遮住主成像镜头的一部分时,主成像镜头中被玩家遮住的部分在图形用户界面中表现为一大块深色的色块,可以把该色块转化为预设色块,如上述的白色色块,再以该白色色块作为显示虚拟游戏场景canvas的蒙版mask,从而可以将主成像镜头中被玩家遮住的部分在图形用户界面对应的显示区域中显示的现实场景画面,切换显示为虚拟游戏场景画面,而镜头中没有被遮住的部分在图形用户界面对应的显示区域中仍然显示的是摄像头拍摄到的现实场景画面。During the game, when the player covers part of the main imaging lens, the part of the main imaging lens that is covered by the player appears as a large dark color block in the GUI, which can be converted into a pre-imaged color block. Set a color block, such as the above-mentioned white color block, and then use the white color block as a mask to display the virtual game scene canvas, so that the part of the main imaging lens that is covered by the player can be displayed in the corresponding display area of the GUI The displayed real scene image is switched to be displayed as a virtual game scene image, and the unobstructed part of the lens still displays the real scene image captured by the camera in the display area corresponding to the graphical user interface.
如图3所示,在图3中以虚线为分界线同时显示虚拟游戏场景画面31和现实场景画面32。进而,可以基于用户对摄像模组的镜头的遮挡操作,在图形用户界面中同时显示虚拟游戏场景画面和摄像模组的镜头拍摄的现实场景画面,以在此基础上实现虚拟游戏场景和现实场景之间的交互。As shown in FIG. 3 , in FIG. 3 , the virtual
其中,上述的mask指的是蒙版也称为遮罩。镜头中被遮住的部分在图形用户界面对应的显示区域中显示的色块和canvas重合的部分生成了一个不规则的图形,这个图形就是mask,然后用mask作为一个新的画布去显示虚拟游戏场景。Among them, the above-mentioned mask refers to a mask, also called a mask. The shaded part of the lens is displayed in the corresponding display area of the GUI, where the color block and the canvas overlap to generate an irregular figure, which is the mask, and then use the mask as a new canvas to display the virtual game Scenes.
需要说明的是,上述的将主成像镜头被遮住部分对应的深色色块转换为白色色块的目的是,将镜头被遮住的部分在第一画面中对应的区域和主成像镜头拍摄出来的现实场景画面做明显区分,也可以不进行色块颜色的转化,本示例性实施方式对此不做特殊限定。It should be noted that the above-mentioned purpose of converting the dark color blocks corresponding to the covered parts of the main imaging lens into white color blocks is to capture the area corresponding to the covered part of the lens in the first picture and the main imaging lens. The actual scene images that are outputted are clearly distinguished, and the color conversion of the color blocks may not be performed, which is not specially limited in this exemplary embodiment.
在示例性的实施方式中,由于显示现实场景的画布叠加在显示虚拟游戏场景的画布的上方,且完全遮住了虚拟游戏场景的画布,所以在摄像模组处于启用状态时,若镜头被完全遮住,则整个图形用户界面就全部显示虚拟游戏场景画面,若镜头中不存在被遮挡的部分,则整个图形用户界面就全部显示镜头拍摄到的现实场景画面。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 of the virtual game scene, when the camera module is enabled, if the lens is completely If it is blocked, the entire GUI will display the virtual game scene image. If there is no blocked part in the lens, the entire GUI will display the real scene image captured by the lens.
而在摄像模组处于未启用状态时,在所述图形用户界面中显示的就是游戏的虚拟游戏场景画面。如图4所示,在摄像模组处于未开启状态时,图形用户界面显示的游戏画面为虚拟游戏场景画面。When the camera module is in an inactive state, what is displayed in the graphical user interface is the virtual game scene picture of the game. As shown in FIG. 4 , when the camera module is not turned on, the game screen displayed on the graphical user interface is a virtual game scene screen.
举例而言,用户登录游戏后,在用户未开启摄像模组前,摄像模组处于未开启状态,也就是说,此时在游戏中并未开启摄像模组的拍摄功能,所以图形用户界面中无法显示摄像模组拍摄的现实场景画面。此时,无论摄像模组的镜头被全部遮挡、部分遮挡、还是不存在被遮挡的部分,整个图形用户界面中都只显示虚拟游戏场景画面。For example, after the user logs in to the game, the camera module is not turned on until the user does not turn on the camera module. That is to say, the shooting function of the camera module is not turned on in the game at this time. The real scene picture captured by the camera module cannot be displayed. At this time, no matter whether the lens of the camera module is completely blocked, partially blocked, or there is no blocked part, only the virtual game scene picture is displayed in the entire GUI.
当用户开启摄像模组后,摄像模组处于开启状态,此时可以在图形用户界面中显示摄像模组拍摄的现实场景画面,并可以根据用户对摄像模组的镜头的遮挡操作,在图形用户界面中同时显示虚拟游戏场景画面和摄像模组的镜头拍摄的现实场景画面。After the user turns on the camera module, the camera module is in the on state. At this time, the real scene picture captured by the camera module can be displayed in the graphical user interface. The interface simultaneously displays the virtual game scene picture and the real scene picture captured by the lens of the camera module.
在终端设备的摄像模组的镜头存在被遮挡的部分时,可以通过终端设备的摄像模组的镜头中未被遮挡的部分采集位于其视野范围之内的现实世界中的场景画面,并将镜头中未被遮挡的部分采集的现实场景画面,对应的显示在未被遮挡的部分映射在图形用户界面中的成像区域中。这其实和拍照的原理类似,当使用相机进行拍照时,如果镜头中的某部分被遮挡住,则被遮挡的部分在手机屏幕中对应的被显示为一个深色的色块,而手机屏幕中除深色的色块之外的其它区域可以继续正常显示镜头未被遮挡的部分采集的图像。When there is a blocked part of the lens of the camera module of the terminal device, the unobstructed part of the lens of the camera module of the terminal device can be used to capture the scene picture in the real world within the scope of its field of view, and the lens The real scene image captured by the unobstructed part in the image is correspondingly displayed in the imaging area mapped by the unobstructed part in the graphical user interface. This is actually similar to the principle of taking pictures. When using a camera to take pictures, if a part of the lens is blocked, the blocked part will be displayed as a dark color block on the screen of the mobile phone. Other areas except the dark color block can continue to display the image captured by the unobstructed part of the lens normally.
也就是说,镜头中未被遮挡的部分映射在图形用户界面中的第一显示区域,显示通过所述摄像模组采集的现实场景画面时,第一显示区域在图形用户界面中的位置可以和镜头未被遮挡的部分在整个镜头中的位置一致,如镜头中的左半部分未被遮挡,则第一显示区域在图形用户界面中的左侧,以对应的在图形用户界面的左侧显示镜头采集到的现实场景画面。That is to say, the unobstructed part of the lens is mapped to the first display area in the GUI, and when displaying the real scene image captured by the camera module, the position of the first display area in the GUI can be the same as the one in the GUI. The position of the unobstructed part of the lens is the same in the whole lens. If the left half of the lens is not blocked, the first display area is on the left side of the GUI, and the corresponding display area is displayed on the left side of the GUI. The real scene image captured by the lens.
而镜头中被用户进行遮挡的部分映射在图形用户界面中的第二显示区域中,就可以显示虚拟游戏场景画面,进而可以实现同时在图形用户界面中显示虚拟游戏场景画面和现实场景画面。The part of the lens that is blocked by the user is mapped in the second display area in the GUI, so that the virtual game scene picture can be displayed, and then the virtual game scene picture and the real scene picture can be displayed in the GUI at the same time.
如前所述,在本公开中,通过调整针对摄像模组的镜头的遮挡面积,可以调整目标显示区域在图形用户界面中对应的显示尺寸。As mentioned above, in the present disclosure, by adjusting the occlusion area of the lens of the camera module, the corresponding display size of the target display area in the GUI can be adjusted.
在通过对镜头的遮挡操作,在图形用户界面中同时显示虚拟游戏场景画面和现实场景画面时,可以通过对摄像模组的镜头的遮挡面积的调整操作,改变图形用户界面中显示的游戏地图的显示尺寸,进一步的便于用户的游戏操作,提升用户的游戏体验。When the virtual game scene picture and the real scene picture are simultaneously displayed in the GUI through the occlusion operation of the lens, the adjustment operation of the occlusion area of the lens of the camera module can be used to change the size of the game map displayed in the GUI. The display size further facilitates the user's game operation and improves the user's game experience.
在通过对镜头的遮挡操作,在图形用户界面中同时显示虚拟游戏场景画面和现实场景画面时,当目标显示区域在图形用户界面中的显示尺寸发生变化时,图形用户界面中用于显示虚拟游戏场景画面的显示区域和用于显示现实场景画面的第二显示区域之间的显示比例也会发生变化。对于一些解密类游戏,可以设置一些解密线索和/或解密元素,需要同时显示虚拟游戏场景画面和现实场景画面,且不断调整二者之间的显示比例才能解开,从而引导玩家去不断遮住摄像头、移动手指改变遮住摄像头的比例来进行游玩。When the virtual game scene picture and the real scene picture are simultaneously displayed 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 graphical user interface is used to display the virtual game. The display ratio between the display area of the scene picture and the second display area for displaying the real scene picture will also change. For some decryption games, you can set some decryption clues and/or decryption elements. It is necessary to display the virtual game scene screen and the real scene screen at the same time, and constantly adjust the display ratio between the two to unlock, so as to guide the player to constantly cover Camera, move your finger to change the proportion of covering the camera to play.
示例性的,图5示出本公开一示例性实施例中解密类游戏的解密方法的流程示意图。示例性的,参考图5,该方法可以包括步骤S510至步骤S520。其中:Exemplarily, FIG. 5 shows a schematic flowchart of a decryption method for a decryption game in an exemplary embodiment of the present disclosure. Exemplarily, referring to FIG. 5 , the method may include steps S510 to S520. in:
在步骤S510中,响应针对所述摄像模组的镜头的遮挡面积的调整操作,调整所述目标显示区域在图形用户界面中的尺寸,以改变图形用户界面中的虚拟游戏场景画面和现实场景画面之间的显示比例;In step S510, in response to the adjustment operation for 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 virtual game scene picture and the real scene picture in the graphical user interface Display ratio between;
在步骤S520中,响应所述虚拟游戏场景画面和现实场景画面之间的显示比例满足第二预设条件,在所述图形用户界面中显示与所述第二预设条件对应的解密线索和/或解密元素。In step S520, in response to the display ratio between the virtual game scene picture and the real scene picture meeting a second preset condition, displaying the decryption clue and/or corresponding to the second preset condition in the graphical user interface or decrypt the element.
在一种示例性的实施方式中,可以预先配置一些需要虚拟游戏场景画面和现实场景画面之间的显示比例达到预设值,才可以进行显示的解密元素和/或解密元素。如图6所示,在虚拟游戏场景画面和现实场景画面之间的显示比例满预设条件时,可以在现实场景对应的现实场景画面中显示解密元素61。玩家可以根据当前显示的解密线索执行解密操作,也可以根据当前显示的解密元素执行对应的游戏操作,以得到当前显示的解密元素对应的解密线索,然后执行解密线索对应的游戏操作以进行解密。In an exemplary implementation, some decryption elements and/or decryption elements that can be displayed only after the display ratio between the virtual game scene picture and the real scene picture can reach a preset value may be preconfigured. As shown in FIG. 6 , when the display ratio between the virtual game scene picture and the real scene picture meets the preset condition, the
在另一种示例性的实施方式中,还可以是响应虚拟游戏场景画面和现实场景画面之间的显示比例满足第二预设条件,执行与显示在所述图形用户界面中的解密元素和/或解密线索对应的解密操作。In another exemplary embodiment, in response to the display ratio between the virtual game scene picture and the real scene picture satisfying a second preset condition, the decryption element and/or the decryption element displayed in the graphical user interface and/or are executed and displayed in response to a second preset condition. Or the decryption operation corresponding to the decryption clue.
举例而言,可以预先将一些解密元素和/或解密线索的解密操作与虚拟游戏场景画面和现实场景画面之间的显示比例进行关联。这样,在虚拟游戏场景画面和现实场景画面之间的显示比例达到预设值时,可以自动的执行与该解密元素和/或解密线索对应的解密操作,进而可以在图形用户界面中直接显示对该解密元素和/或解密线索执行解密操作后的画面。For example, the decryption operations of some decryption elements and/or decryption clues may be associated with the display ratio between the virtual game scene picture and the real scene picture in advance. 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 the corresponding decryption operation can be directly displayed in the graphical user interface. The decryption element and/or decryption thread performs the decryption operation on the picture.
通过上述的步骤S610至步骤S620,可以为解密类游戏提供一种新的交互方式,玩家可以通过改变遮住摄像头的比例来控制虚拟游戏场景画面与现实场景画面在图形用户界面中的显示比例,进而基于显示比例的变化,对游戏中的某些游戏线索进行解密,以推动解密游戏的进行。Through the above steps S610 to S620, a new interactive mode can be provided for decryption games. 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 proportion of covering the camera. Then, based on the change of the display ratio, some game clues in the game are decrypted, so as to promote the progress of the decryption game.
在本公开中,基于用户对终端设备的摄像模组中的镜头的遮挡操作,可以在图形用户界面中同时显示虚拟游戏场景画面和现实场景画面,增强虚拟游戏场景和现实场景之间的交互,提升玩家的游戏体验。In the present disclosure, based on the user's blocking operation of 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, and the interaction between the virtual game scene and the real scene can be enhanced, Improve the player's gaming experience.
本领域技术人员可以理解实现上述实施方式的全部或部分步骤被实现为由CPU执行的计算机程序。在该计算机程序被CPU执行时,执行本发明提供的上述方法所限定的上述功能。所述的程序可以存储于一种计算机可读存储介质中,该存储介质可以是只读存储器,磁盘或光盘等。Those skilled in the art can understand that all or part of the steps for implementing the above-described embodiments are implemented as computer programs executed by the CPU. When the computer program is executed by the CPU, the above-mentioned functions defined by the above-mentioned methods provided by the present invention are executed. The program can be stored in a computer-readable storage medium, which can be a read-only memory, a magnetic disk, an optical disk, or the like.
此外,需要注意的是,上述附图仅是根据本发明示例性实施方式的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。In addition, it should be noted that the above-mentioned drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the chronological order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, in multiple modules.
图7示出本公开示例性实施例中的游戏中的信息处理装置的结构示意图。参考图7,该装置700可以应用于终端设备,所述终端设备包括摄像模组,该装置可以包括游戏画面显示模块710、目标显示区域确定模块720、局部游戏画面切换模块730。其中:FIG. 7 shows a schematic structural diagram of an in-game information processing apparatus in an exemplary embodiment of the present disclosure. Referring to FIG. 7 , the
游戏画面显示模块710,被配置为在所述终端设备的图形用户界面中显示第一画面;a game
目标显示区域确定模块720,被配置为响应针对所述摄像模组的镜头的遮挡操作,根据所述镜头的遮挡情况在所述图形用户界面中确定出目标显示区域;The target display
局部游戏画面切换模块730,被配置为将所述目标显示区域中显示的内容由所述第一画面中的局部画面切换为目标画面。The partial game
在本公开的一种示例性实施例中,基于前述实施例,所述目标显示区域确定模块720还可以被具体配置为:响应针对所述摄像模组的镜头的部分遮挡操作,根据所述镜头的遮挡情况在所述图形用户界面中确定出所述目标显示区域。In an exemplary embodiment of the present disclosure, based on the foregoing embodiment, the target display
在本公开的一种示例性实施例中,基于前述实施例,所述目标显示区域确定模块720还可以被具体配置为:根据所述镜头被遮挡的部分在所述图形用户界面中对应的显示区域,确定出所述目标显示区域;或根据所述镜头未被遮挡的部分在所述用户界面中对应的显示区域,确定出所述目标显示区域。In an exemplary embodiment of the present disclosure, based on the foregoing embodiment, the target display
在本公开的一种示例性实施例中,基于前述实施例,所述第一画面为通过所述摄像模组的镜头所生成的现实场景画面,所述目标画面为所述游戏对应的虚拟场景画面;或者所述第一画面为所述游戏对应的虚拟场景画面,所述目标画面为通过所述摄像模组的镜头所生成的现实场景画面;或者所述第一画面为所述游戏对应的虚拟场景画面,所述目标画面为所述游戏的虚拟场景对应的场景缩略图。In an exemplary embodiment of the present disclosure, based on the foregoing embodiment, the first picture is a real scene picture generated through the lens of the camera module, and the target picture is a virtual scene corresponding to the game picture; or the first picture is a virtual scene picture corresponding to the game, and the target picture is a real scene picture generated through the lens of the camera module; or the first picture is a picture corresponding to the game A virtual scene picture, where the target picture is a scene thumbnail corresponding to the virtual scene of the game.
在本公开的一种示例性实施例中,基于前述实施例,所述目标显示区域确定模块720还可以被具体配置为:响应针对所述摄像模组的镜头的遮挡操作,确定所述镜头被遮挡的部分在第一画面中形成的色块区域;根据所述色块区域,在所述图形用户界面中确定出所述目标显示区域。In an exemplary embodiment of the present disclosure, based on the foregoing embodiment, the target display
在本公开的一种示例性实施例中,基于前述实施例,所述装置700还可以包括色块颜色转换模块,该模块被具体配置为:在根据所述色块区域,在所述图形用户界面中确定出所述目标显示区域之前,调整所述色块区域的颜色,以使所述色块区域在所述图形用户界面上存在视觉区分。In an exemplary embodiment of the present disclosure, based on the foregoing embodiments, the
在本公开的一种示例性实施例中,基于前述实施例,所述装置还包括目标显示区域尺寸调整模块,该模块可以被配置为:响应针对所述摄像模组的镜头的遮挡面积的调整操作,调整所述目标显示区域在所述图形用户界面中的显示尺寸。In an exemplary embodiment of the present disclosure, based on the foregoing embodiments, the apparatus further includes a target display area size adjustment module, which may be configured to: respond to the adjustment of the occlusion area of the lens of the camera module The operation is to adjust the display size of the target display area in the graphical user interface.
在本公开的一种示例性实施例中,基于前述实施例,所述装置还包括目标游戏动作执行模块,该模块可以被配置为:响应所述目标显示区域在所述图形用户界面中的显示尺寸满足第一预设条件,控制所述游戏中的目标游戏角色执行目标游戏动作。In an exemplary embodiment of the present disclosure, based on the foregoing embodiment, the apparatus further includes a target game action execution module, which may be configured to: respond to the display of the target display area in the graphical user interface The size satisfies the first preset condition, and the target game character in the game is controlled to perform the target game action.
在本公开的一种示例性实施例中,基于前述实施例,所述游戏包括解密类游戏;所述装置还包括解密条件响应模块,该模块可以被配置为:响应所述目标显示区域在所述图形用户界面中的显示尺寸满足第二预设条件,在所述图形用户界面中显示与所述第二预设条件对应的解密线索和/或解密元素。In an exemplary embodiment of the present disclosure, based on the foregoing embodiment, the game includes a decryption game; the apparatus further includes a decryption condition response module, which may be configured to: respond to the target display area being in the The display size in the graphical user interface satisfies a second preset condition, and the decryption clue and/or decryption element corresponding to the second preset condition is displayed in the graphical user interface.
上述游戏中的信息处理装置中各模块的具体细节已经在对应的游戏中的信息处理方法中进行了详细的描述,因此此处不再赘述。The specific details of each module in the information processing device in the above game have been described in detail in the corresponding information processing method in the game, so they will not be repeated here.
本公开提供的游戏中的信息处理装置,通过响应对终端设备的摄像模组的遮挡操作,可以将图形用户界面中显示的第一画面中的局部画面切换为目标画面,从而提高游戏画面显示的丰富性,且增强了用户的游戏交互体验。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 by responding to the blocking operation on the camera module of the terminal device, thereby improving the display quality of the game picture. Richness, and enhance the user's game interaction experience.
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.
此外,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。Additionally, although the various steps of the methods of the present disclosure are depicted in the figures in a particular order, this does not require or imply that the steps must be performed in the particular order or that all illustrated steps must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, and the like.
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、移动终端、或者网络设备等)执行根据本公开实施方式的方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.
在本公开示例性实施方式中,还提供了一种能够实现上述方法的计算机存储介质。其上存储有能够实现本说明书上述方法的程序产品。在一些可能的实施例中,本公开的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤,例如:In an exemplary embodiment of the present disclosure, a computer storage medium capable of implementing the above method is also provided. A program product capable of implementing the method described above in this specification is stored thereon. In some possible embodiments, various aspects of the present disclosure may also be implemented in the form of a program product including program code for causing the program product to run on a terminal device when the program product is run on a terminal device. The terminal device performs the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Example Method" section of this specification, for example:
在终端设备的图形用户界面中显示第一画面,所述终端设备包括摄像模组;响应针对所述摄像模组的镜头的遮挡操作,根据所述镜头的遮挡情况在所述图形用户界面中确定出目标显示区域;将所述目标显示区域中显示的内容由所述第一画面中的局部画面切换为目标画面。A first picture is displayed in a graphical user interface of a terminal device, and the terminal device includes a camera module; in response to an occlusion operation for the lens of the camera module, determining in the graphical user interface according to the occlusion of the lens The target display area is displayed; the content displayed in the target display area is switched from the partial picture in the first picture to the target picture.
可选的,所述响应针对所述摄像模组的镜头的遮挡操作,根据所述镜头的遮挡情况在所述图形用户界面中确定出目标显示区域,包括:响应针对所述摄像模组的镜头的部分遮挡操作,根据所述镜头的遮挡情况在所述图形用户界面中确定出所述目标显示区域。Optionally, the response to the occlusion operation of the lens of the camera module, determining the target display area in the graphical user interface according to the occlusion of the lens, including: responding to the lens of the camera module. The partial occlusion operation is performed, and the target display area is determined in the graphical user interface according to the occlusion of the lens.
可选的,所述根据所述镜头的遮挡情况在所述图形用户界面中确定出所述目标显示区域,包括:根据所述镜头被遮挡的部分在所述图形用户界面中对应的显示区域,确定出所述目标显示区域;或根据所述镜头未被遮挡的部分在所述用户界面中对应的显示区域,确定出所述目标显示区域。Optionally, the determining the target display area in the graphical user interface according to the occlusion situation of the lens includes: according to the display area corresponding to the occluded part of the lens in the graphical user interface, Determine the target display area; or determine the target display area according to the display area corresponding to the unobstructed part of the lens in the user interface.
可选的,所述第一画面为通过所述摄像模组的镜头所生成的现实场景画面,所述目标画面为所述游戏对应的虚拟场景画面;或者所述第一画面为所述游戏对应的虚拟场景画面,所述目标画面为通过所述摄像模组的镜头所生成的现实场景画面;或者所述第一画面为所述游戏对应的虚拟场景画面,所述目标画面为所述游戏的虚拟场景对应的场景缩略图。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 picture corresponding to the game. The virtual scene picture, the target picture is the real scene picture generated by the lens of the camera module; or the first picture is the virtual scene picture corresponding to the game, and the target picture is the scene picture of the game The scene thumbnail corresponding to the virtual scene.
可选的,所述响应针对所述终端设备的摄像模组的镜头的遮挡操作,根据所述镜头的遮挡情况,在所述图形用户界面中确定出目标显示区域,包括:响应针对所述摄像模组的镜头的遮挡操作,确定所述镜头被遮挡的部分在所述第一画面中形成的色块区域;根据所述色块区域,在所述图形用户界面中确定出所述目标显示区域。Optionally, determining the target display area in the graphical user interface in response to the blocking operation of the lens of the camera module of the terminal device according to the blocking situation of the lens, including: responding to the camera module. The blocking operation of the lens of the module determines the color block area formed by the blocked part of the lens in the first picture; according to the color block area, the target display area is determined in the graphical user interface .
可选的,在根据所述色块区域,在所述图形用户界面中确定出所述目标显示区域之前,所述方法还包括:调整所述色块区域的颜色,以使所述色块区域在所述图形用户界面上存在视觉区分。Optionally, before determining the target display area in the graphical user interface according to the color patch area, the method further includes: adjusting the color of the color patch area, so that the color patch area There is a visual distinction on the graphical user interface.
可选的,所述方法还包括:响应针对所述摄像模组的镜头的遮挡面积的调整操作,调整所述目标显示区域在所述图形用户界面中的显示尺寸。Optionally, the method further includes: adjusting the display size of the target display area in the graphical user interface in response to an adjustment operation for the occlusion area of the lens of the camera module.
可选的,所述方法还包括:响应所述目标显示区域在所述图形用户界面中的显示尺寸满足第一预设条件,控制所述游戏中的目标游戏角色执行目标游戏动作。Optionally, the method further includes: in response to the display size of the target display area in the graphical user interface meeting a first preset condition, controlling the target game character in the game to perform a target game action.
可选的,所述游戏包括解密类游戏;所述方法还包括:响应所述目标显示区域在所述图形用户界面中的显示尺寸满足第二预设条件,在所述图形用户界面中显示与所述第二预设条件对应的解密线索和/或解密元素。Optionally, 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 in the graphical user interface and Decryption clues and/or decryption elements corresponding to the second preset condition.
通过上述实施方式,一方面,基于响应对终端设备的摄像模组的遮挡操作,可以将图形用户界面中显示的第一画面中的局部画面切换为目标画面,从而提高游戏画面显示的丰富性,如可以同时显示虚拟游戏场景画面和显示场景画面;另一方面,可以通过遮挡摄像模组的镜头的操作方式,改变图形用户界面中显示的游戏画面,增强了用户的游戏交互体验。Through the above-mentioned embodiments, on the one hand, based on the occlusion operation on the camera module of the terminal device, the partial picture in the first picture displayed in the graphical user interface can be switched to the target picture, thereby improving the richness of the display of the game picture. For example, 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 by covering the operation mode of the lens of the camera module, which enhances the user's game interaction experience.
参考图8所示,描述了根据本公开的实施方式的用于实现上述方法的程序产品800,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本公开的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Referring to FIG. 8 , a
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a propagated data signal in baseband or as part of a carrier wave with readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium can also be any readable medium, other than a readable storage medium, that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural Programming Language - such as the "C" language or similar programming language. The program code may execute entirely on the user computing device, partly on the user device, as a stand-alone software package, partly on the user computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).
此外,在本公开的示例性实施例中,还提供了一种能够实现上述方法的电子设备。In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
所属技术领域的技术人员能够理解,本公开的各个方面可以实现为系统、方法或程序产品。因此,本公开的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。As will be appreciated by one skilled in the art, various aspects of the present disclosure may be implemented as a system, method or program product. Therefore, various aspects of the present disclosure can be embodied in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, which may be collectively referred to herein as implementations "circuit", "module" or "system".
下面参照图9来描述根据本公开的这种实施方式的电子设备900。图9显示的电子设备900仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。An
如图9所示,电子设备900以通用计算设备的形式表现。电子设备900的组件可以包括但不限于:上述至少一个处理单元910、上述至少一个存储单元920、连接不同系统组件(包括存储单元920和处理单元910)的总线930以及显示单元940。As shown in FIG. 9,
其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元910执行,使得所述处理单元910执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。Wherein, the storage unit stores program codes, which can be executed by the
又如,所述处理单元910还可以执行图5所示的方法的各个步骤。For another example, the
存储单元920可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)9201和/或高速缓存存储单元9202,还可以进一步包括只读存储单元(ROM)9203。The
存储单元920还可以包括具有一组(至少一个)程序模块9205的程序/实用工具9204,这样的程序模块9205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The
总线930可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。The
电子设备900也可以与一个或多个外部设备1000(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备900交互的设备通信,和/或与使得该电子设备900能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口950进行。并且,电子设备900还可以通过网络适配器960与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器960通过总线930与电子设备900的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备900使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本公开实施方式的方法,例如:From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute a method according to an embodiment of the present disclosure, for example:
在终端设备的图形用户界面中显示第一画面,所述终端设备包括摄像模组;响应针对所述摄像模组的镜头的遮挡操作,根据所述镜头的遮挡情况在所述图形用户界面中确定出目标显示区域;将所述目标显示区域中显示的内容由所述第一画面中的局部画面切换为目标画面。A first picture is displayed in a graphical user interface of a terminal device, and the terminal device includes a camera module; in response to an occlusion operation for the lens of the camera module, determining in the graphical user interface according to the occlusion of the lens The target display area is displayed; the content displayed in the target display area is switched from the partial picture in the first picture to the target picture.
可选的,所述响应针对所述摄像模组的镜头的遮挡操作,根据所述镜头的遮挡情况在所述图形用户界面中确定出目标显示区域,包括:响应针对所述摄像模组的镜头的部分遮挡操作,根据所述镜头的遮挡情况在所述图形用户界面中确定出所述目标显示区域。Optionally, the response to the occlusion operation of the lens of the camera module, determining the target display area in the graphical user interface according to the occlusion of the lens, including: responding to the lens of the camera module. The partial occlusion operation is performed, and the target display area is determined in the graphical user interface according to the occlusion of the lens.
可选的,所述根据所述镜头的遮挡情况在所述图形用户界面中确定出所述目标显示区域,包括:根据所述镜头被遮挡的部分在所述图形用户界面中对应的显示区域,确定出所述目标显示区域;或根据所述镜头未被遮挡的部分在所述用户界面中对应的显示区域,确定出所述目标显示区域。Optionally, the determining the target display area in the graphical user interface according to the occlusion situation of the lens includes: according to the display area corresponding to the occluded part of the lens in the graphical user interface, Determine the target display area; or determine the target display area according to the display area corresponding to the unobstructed part of the lens in the user interface.
可选的,所述第一画面为通过所述摄像模组的镜头所生成的现实场景画面,所述目标画面为所述游戏对应的虚拟场景画面;或者所述第一画面为所述游戏对应的虚拟场景画面,所述目标画面为通过所述摄像模组的镜头所生成的现实场景画面;或者所述第一画面为所述游戏对应的虚拟场景画面,所述目标画面为所述游戏的虚拟场景对应的场景缩略图。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 picture corresponding to the game. The virtual scene picture, the target picture is the real scene picture generated by the lens of the camera module; or the first picture is the virtual scene picture corresponding to the game, and the target picture is the scene picture of the game The scene thumbnail corresponding to the virtual scene.
可选的,所述响应针对所述摄像模组的镜头的遮挡操作,根据所述镜头的遮挡情况,在所述图形用户界面中确定出目标显示区域,包括:响应针对所述摄像模组的镜头的遮挡操作,确定所述镜头被遮挡的部分在所述第一画面中形成的色块区域;根据所述色块区域,在所述图形用户界面中确定出所述目标显示区域。Optionally, the response to the blocking operation of the lens of the camera module, according to the blocking situation of the lens, determining the target display area in the graphical user interface, including: responding to the camera module. The lens blocking operation determines the color block area formed by the blocked part of the lens in the first picture; and determines the target display area in the graphical user interface according to the color block area.
可选的,在根据所述色块区域,在所述图形用户界面中确定出所述目标显示区域之前,所述方法还包括:调整所述色块区域的颜色,以使所述色块区域在所述图形用户界面上存在视觉区分。Optionally, before determining the target display area in the graphical user interface according to the color patch area, the method further includes: adjusting the color of the color patch area, so that the color patch area There is a visual distinction on the graphical user interface.
可选的,所述方法还包括:响应针对所述摄像模组的镜头的遮挡面积的调整操作,调整所述目标显示区域在所述图形用户界面中的显示尺寸。Optionally, the method further includes: adjusting the display size of the target display area in the graphical user interface in response to an adjustment operation for the occlusion area of the lens of the camera module.
可选的,所述方法还包括:响应所述目标显示区域在所述图形用户界面中的显示尺寸满足第一预设条件,控制所述游戏中的目标游戏角色执行目标游戏动作。Optionally, the method further includes: in response to the display size of the target display area in the graphical user interface meeting a first preset condition, controlling the target game character in the game to perform a target game action.
可选的,所述游戏包括解密类游戏;所述方法还包括:响应所述目标显示区域在所述图形用户界面中的显示尺寸满足第二预设条件,在所述图形用户界面中显示与所述第二预设条件对应的解密线索和/或解密元素。Optionally, 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 in the graphical user interface and Decryption clues and/or decryption elements corresponding to the second preset condition.
通过上述实施方式,一方面,基于响应对终端设备的摄像模组的遮挡操作,可以将图形用户界面中显示的第一画面中的局部画面切换为目标画面,从而提高游戏画面显示的丰富性,如可以同时显示虚拟游戏场景画面和显示场景画面;另一方面,可以通过遮挡摄像模组的镜头的操作方式,改变图形用户界面中显示的游戏画面,增强了用户的游戏交互体验。Through the above-mentioned embodiments, on the one hand, based on the occlusion operation on the camera module of the terminal device, the partial picture in the first picture displayed in the graphical user interface can be switched to the target picture, thereby improving the richness of the display of the game picture. For example, 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 by covering the operation mode of the lens of the camera module, which enhances the user's game interaction experience.
此外,上述附图仅是根据本公开示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。In addition, the above-mentioned figures are merely schematic illustrations of the processes included in the methods according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the chronological order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, in multiple modules.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其他实施例。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。Other embodiments of the present disclosure will readily suggest themselves to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the claims.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210389237.8A CN114733197A (en) | 2022-04-13 | 2022-04-13 | Information processing method and device in game, readable storage medium and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210389237.8A CN114733197A (en) | 2022-04-13 | 2022-04-13 | Information processing method and device in game, readable storage medium and electronic device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114733197A true CN114733197A (en) | 2022-07-12 |
Family
ID=82281615
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210389237.8A Pending CN114733197A (en) | 2022-04-13 | 2022-04-13 | Information processing method and device in game, readable storage medium and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114733197A (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080158436A1 (en) * | 2006-12-28 | 2008-07-03 | Pixart Imaging Inc. | Cursor control method and apparatus |
US20150031347A1 (en) * | 2013-07-24 | 2015-01-29 | Samsung Electronics Co., Ltd. | Method for execution control using cover and electronic device supporting the same |
KR101586651B1 (en) * | 2015-02-25 | 2016-01-20 | (주) 라온엔터테인먼트 | Multiplayer Robot Game System using Augmented Reality |
US20190081848A1 (en) * | 2017-09-12 | 2019-03-14 | Pilot, Inc. | Augmented reality gaming system |
CN109550247A (en) * | 2019-01-09 | 2019-04-02 | 网易(杭州)网络有限公司 | Virtual scene method of adjustment, device, electronic equipment and storage medium in game |
KR20190101620A (en) * | 2018-02-23 | 2019-09-02 | 주식회사 로로아트플랜 | Moving trick art implement method using augmented reality technology |
WO2019231731A1 (en) * | 2018-05-31 | 2019-12-05 | Microsoft Technology Licensing, Llc | Data lens visualization over a baseline visualization |
US10625676B1 (en) * | 2018-12-03 | 2020-04-21 | GM Global Technology Operations LLC | Interactive driving system and method |
CN111803946A (en) * | 2020-07-22 | 2020-10-23 | 网易(杭州)网络有限公司 | Lens switching method and device in game and electronic equipment |
KR20210050420A (en) * | 2019-10-28 | 2021-05-07 | 주식회사 우아한형제들 | System and method for providing flappy game contents |
CN213589690U (en) * | 2020-09-25 | 2021-07-02 | 李汶声 | Portable basketball is rack for training |
CN113559509A (en) * | 2021-07-30 | 2021-10-29 | 网易(杭州)网络有限公司 | Information prompting method and device in game, electronic equipment and storage medium |
WO2022007429A1 (en) * | 2020-07-06 | 2022-01-13 | 网易(杭州)网络有限公司 | Pathfinding control method and apparatus in game |
-
2022
- 2022-04-13 CN CN202210389237.8A patent/CN114733197A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080158436A1 (en) * | 2006-12-28 | 2008-07-03 | Pixart Imaging Inc. | Cursor control method and apparatus |
US20150031347A1 (en) * | 2013-07-24 | 2015-01-29 | Samsung Electronics Co., Ltd. | Method for execution control using cover and electronic device supporting the same |
KR101586651B1 (en) * | 2015-02-25 | 2016-01-20 | (주) 라온엔터테인먼트 | Multiplayer Robot Game System using Augmented Reality |
US20190081848A1 (en) * | 2017-09-12 | 2019-03-14 | Pilot, Inc. | Augmented reality gaming system |
KR20190101620A (en) * | 2018-02-23 | 2019-09-02 | 주식회사 로로아트플랜 | Moving trick art implement method using augmented reality technology |
WO2019231731A1 (en) * | 2018-05-31 | 2019-12-05 | Microsoft Technology Licensing, Llc | Data lens visualization over a baseline visualization |
US10625676B1 (en) * | 2018-12-03 | 2020-04-21 | GM Global Technology Operations LLC | Interactive driving system and method |
CN109550247A (en) * | 2019-01-09 | 2019-04-02 | 网易(杭州)网络有限公司 | Virtual scene method of adjustment, device, electronic equipment and storage medium in game |
KR20210050420A (en) * | 2019-10-28 | 2021-05-07 | 주식회사 우아한형제들 | System and method for providing flappy game contents |
WO2022007429A1 (en) * | 2020-07-06 | 2022-01-13 | 网易(杭州)网络有限公司 | Pathfinding control method and apparatus in game |
CN111803946A (en) * | 2020-07-22 | 2020-10-23 | 网易(杭州)网络有限公司 | Lens switching method and device in game and electronic equipment |
CN213589690U (en) * | 2020-09-25 | 2021-07-02 | 李汶声 | Portable basketball is rack for training |
CN113559509A (en) * | 2021-07-30 | 2021-10-29 | 网易(杭州)网络有限公司 | Information prompting method and device in game, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220377128A1 (en) | File transfer display control method and apparatus, and corresponding terminal | |
CN114302195B (en) | Display device, external device and play control method | |
WO2019001347A1 (en) | Screen projection method for mobile device, storage medium, terminal and screen projection system | |
CN107977141B (en) | Interaction control method and device, electronic equipment and storage medium | |
CN111467803B (en) | Display control method and device in game, storage medium and electronic equipment | |
CN113794917A (en) | Display device and display control method | |
CN114327034A (en) | Display device and screen recording interaction method | |
CN112506859B (en) | Method for maintaining hard disk data and display device | |
CN112866773A (en) | Display device and camera tracking method in multi-person scene | |
CN113938748A (en) | Video playing method, device, terminal, storage medium and program product | |
WO2023093698A1 (en) | Interaction method for game live-streaming, and storage medium, program product and electronic device | |
CN108665510B (en) | Rendering method and device of continuous shooting image, storage medium and terminal | |
CN113332720A (en) | Game map display method and device, computer equipment and storage medium | |
CN114157889A (en) | Display device and touch-control assistance interaction method | |
CN114189743B (en) | Data transmission method, device, electronic equipment and storage medium | |
CN112929750B (en) | Camera adjusting method and display device | |
CN113655936B (en) | Display device and screen protection method | |
CN113559501A (en) | Method and device for selecting virtual units in game, storage medium and electronic equipment | |
CN114733197A (en) | Information processing method and device in game, readable storage medium and electronic device | |
CN111773712A (en) | Interactive control method and apparatus, electronic device and computer-readable storage medium | |
CN111372140A (en) | Barrage adjusting method and device, computer readable storage medium and electronic equipment | |
CN116020110A (en) | Game picture control method and device, computer storage medium and electronic equipment | |
CN114733196A (en) | Game scene control method, game scene control device, medium and electronic device | |
CN115390702A (en) | Display device, touch point positioning method and device | |
WO2020248682A1 (en) | Display device and virtual scene generation method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |