Information processing method, device, storage medium, processor, and electronic device
By generating and synchronizing the display of target controls in turn-based games, the error touch problem caused by overlapping virtual characters is solved, and the user's game control accuracy and experience is improved.
Patent Information
- Application Number
- CN202210122903.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-09
- Publication Date
- 2025-08-12
- Estimated Expiration
- 2042-02-09
AI Technical Summary
In turn-based games, the problem of accidentally touch control caused by overlapping multiple virtual characters is not effectively solved.
By obtaining the identification information of the target virtual character on the first device, a target control is generated, and overwrite the target control on the image of the first device, a second image is generated, and then sent to the second device for synchronous display, and the size and position information are used for cropping processing to ensure that the target control is displayed on the second device for user control.
It effectively avoids mistouching caused by overlapping virtual characters and improves the user's gaming experience.
Smart Images

Figure CN114504814B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to an information processing method, device, storage medium, processor, and electronic device. Background Art
[0002] Currently, when players reach a certain level in turn-based games, there will be many game characters in the battle, and many game characters are very large. In some special cases, multiple game characters will overlap. At this time, if you want to select the object to cast a spell from the overlapping multiple game characters, it is easy to accidentally touch the object.
[0003] To address the above-mentioned problems, no effective solutions have been proposed so far. Summary of the Invention
[0004] At least some embodiments of the present invention provide an information processing method, apparatus, storage medium, processor, and electronic device to at least solve the technical problem in the related art of false touches occurring during control of virtual characters due to overlapping of multiple virtual characters.
[0005] According to one embodiment of the present invention, there is provided an information processing method, comprising: a first device acquiring identification information of a target virtual character in a first image, wherein the first image is an image currently displayed by the first device; the first device generating a target control corresponding to the target virtual character based on the identification information, wherein the target virtual character is controlled by the target control; the first device overlaying the target control on the target virtual character in the first image to generate a second image; the first device sending the second image to a second device, wherein the second device is configured to display the second image in response to a synchronous display instruction, the synchronous display instruction being configured to indicate that, when the first device displays the first image, a second image corresponding to the first image is synchronously displayed in the second device.
[0006] Optionally, after the first device overlays the target control on the target virtual character in the first image to generate the second image, the method further includes: the first device obtains size information and position information of the second device, wherein the second device is located within a preset area of the first device, and the position information is used to characterize the position of the second device in the preset area; the first device uses the size information and position information to crop the second image to generate a third image; the first device sends the third image to the second device, wherein the second device is further used to display the third image in response to a synchronous display instruction.
[0007] Optionally, the first device uses the size information and position information to crop the second image to generate a third image, including: the first device determines the overlapping area between the second device and the first image in the first device based on the size information and position information; the first device uses the overlapping area to crop the second image to generate the third image.
[0008] Optionally, the second device provides a target touch area, and the method also includes: the first device receives a control instruction sent by the second device; the first device controls the target virtual character corresponding to the target control in the first image based on the control instruction, wherein the control instruction is generated based on the touch operation performed on the target control in the target touch area in the second device.
[0009] According to one embodiment of the present invention, there is also provided an information processing method, including: a second device receives a first image sent by a first device, wherein the first image is the image currently displayed by the first device; the second device obtains identification information of a target virtual character in the first image; the second device generates a target control corresponding to the target virtual character based on the identification information, wherein the target virtual character is controlled by the target control; the second device overlays the target control on the target virtual character in the first image to generate a second image; the second device displays the second image in response to a synchronous display instruction, wherein the synchronous display instruction is used to indicate that when the first device displays the first image, a second image corresponding to the first image is synchronously displayed in the second device.
[0010] Optionally, the second device overlays a target control on the target virtual character in the first image, and after generating the second image, the second device provides a target touch area. The method also includes: the second device obtains size information and position information of the second device, wherein the second device is located within a preset area of the first device, and the position information is used to characterize the position of the second device in the preset area; the second device uses the size information and position information to crop the second image to generate a third image; the second device displays the third image in response to the synchronous display instruction.
[0011] Optionally, the second device uses the size information and position information to crop the second image to generate a third image, including: the second device determines the overlapping area of the first image in the second device and the first device based on the size information and position information; the second device uses the overlapping area to crop the second image to generate the third image.
[0012] Optionally, the second device provides a target touch area, and the method further includes: the second device generates a control instruction in response to a touch operation performed on a target control in the target touch area; the second device sends the control instruction to the first device, wherein the first device controls the target virtual character corresponding to the target control in the first image based on the control instruction.
[0013] According to one embodiment of the present invention, there is also provided an information processing device, including: a first acquisition module, used to acquire identification information of a target virtual character in a first image through a first device, wherein the first device is used to display the first image; a first generation module, used to generate a target control corresponding to the target virtual character based on the identification information through the first device, wherein the target virtual character is controlled by the target control; a first overlay module, used to overlay the target control on the target virtual character in the first image through the first device to generate a second image; a sending module, used to send the second image to a second device through the first device, wherein the second device is used to display the second image in response to a synchronous display instruction, and the synchronous display instruction is used to indicate that when the first device displays the first image, a second image corresponding to the first image is synchronously displayed in the second device.
[0014] According to one embodiment of the present invention, another information processing device is also provided, including: a receiving module for receiving a first image sent by a first device through a second device, wherein the first device is used to display the first image; a second acquisition module for acquiring identification information of a target virtual character in the first image through the second device; a second generation module for generating a target control corresponding to the target virtual character based on the identification information through the second device, wherein the target virtual character is controlled by the target control; a second overlay module for overlaying the target virtual character in the first image with a target control through the second device to generate a second image; a display module for displaying a second image through the second device in response to a synchronous display instruction, wherein the synchronous display instruction is used to indicate that when the first device displays the first image, a second image corresponding to the first image is synchronously displayed in the second device.
[0015] According to one embodiment of the present invention, a non-volatile storage medium is provided, in which a computer program is stored. The computer program is configured to execute any of the above information processing methods when running.
[0016] According to one embodiment of the present invention, a processor is further provided, which is used to run a program, wherein the program is configured to execute any of the above-mentioned information processing methods when running.
[0017] According to one embodiment of the present invention, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute any of the above information processing methods.
[0018] Through the above-mentioned embodiments of the present application, the first device can obtain the identification information of the target virtual character in the first image, wherein the first image is the image currently displayed by the first device, and the first device can generate a target control corresponding to the target virtual character based on the identification information, wherein the target virtual character can be controlled by the target control; the first device overlays the target control on the target virtual character in the first image to generate a second image, and the first device sends the second image to the second device, wherein the second device is used to display the second image in response to the synchronous display instruction, and the synchronous display instruction is used to represent that when the first device displays the first image, the second image corresponding to the first image is synchronously displayed in the second device, thereby achieving the purpose of controlling the target virtual character through the target control to avoid accidental touches. It is easy to notice that since the second image containing the target control is displayed on the second device, the user can control the target virtual character in the first device through the target control on the second device without affecting the display screen of the game in the first device. Therefore, when multiple virtual characters in the first screen overlap, the virtual character that needs to cast a spell can be controlled by displaying the controls corresponding to the multiple virtual characters on other devices, thereby avoiding accidental touches, improving the user's gaming experience, and solving the technical problem in the related art of accidental touches during the casting of a spell on a virtual character due to the overlap of multiple virtual characters. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0020] Figure 1 This is a hardware structure block diagram of a mobile terminal according to an information processing method of an embodiment of the present invention;
[0021] Figure 2 is a flow chart of an information processing method according to an embodiment of the present invention;
[0022] Figure 3 is a schematic diagram of a first device and a second device according to an embodiment of the present invention;
[0023] Figure 4 is a schematic diagram of a first image including a plurality of overlapping game characters according to an embodiment of the present invention;
[0024] Figure 5 is a schematic diagram of a second image including a plurality of overlapping game character corresponding controls according to an embodiment of the present invention;
[0025] Figure 6 is a flow chart of another information processing method according to an embodiment of the present invention;
[0026] Figure 7 is a schematic diagram of an information processing device according to an embodiment of the present invention;
[0027] Figure 8 is a schematic diagram of another information processing device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.
[0029] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] The method embodiment can be executed on a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, the mobile terminal can be a smartphone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, a game console, or other terminal devices. Figure 1 FIG. 1 is a hardware structure diagram of a mobile terminal of an information processing method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only one is shown in the figure) processor 102 (the processor 102 may include but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microprocessor (MCU), a field-programmable logic device (FPGA), a neural network processor (NPU), a tensor processing unit (TPU), an artificial intelligence (AI) type processor, etc.) and a memory 104 for storing data. Optionally, the mobile terminal may further include a transmission device 106 for communication functions, an input and output device 108, and a display device 110. It will be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.
[0031] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the information processing method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implements the above-mentioned information processing method. The memory 104 may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely located relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0032] The transmission device 106 is used to receive or send data via a network. A specific example of the aforementioned network may include a wireless network provided by the mobile terminal's communications provider. In one embodiment, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In another embodiment, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0033] Inputs to the input / output devices 108 can come from a variety of human interface devices (HIDs). Examples include keyboards and mice, game controllers, and other specialized game controllers (e.g., steering wheels, fishing rods, dance mats, remote controls, etc.). Some HIDs provide not only input but also output, such as force feedback and vibration on game controllers and audio output on controllers.
[0034] The display device 110 may be, for example, a head-up display (HUD), a touch-screen liquid crystal display (LCD), and a touch display (also referred to as a "touch screen" or "touch display"). The LCD may enable a user to interact with the user interface of the mobile terminal. In some embodiments, the mobile terminal may have a graphical user interface (GUI), and the user may interact with the GUI by finger contacts and / or gestures on the touch-sensitive surface. The human-computer interaction functions herein may optionally include the following interactions: creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital videos, playing digital music, and / or web browsing, etc. The executable instructions for executing the above-mentioned human-computer interaction functions are configured / stored in a computer program product or readable storage medium executable by one or more processors.
[0035] In one embodiment of the present disclosure, the information processing method can be run on a local terminal device or a server. When the information processing method is run on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0036] In an optional embodiment, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a gaming method based on cloud computing. In the cloud game operation mode, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the information processing method are completed on the cloud game server. The role of the client device is to receive and send data and present the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, TV, computer, PDA, etc.; but the cloud game server in the cloud performs information processing. When playing the game, the player operates the client device to send operation instructions to the cloud game server. The cloud game server runs the game according to the operation instructions, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0037] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present the game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, conventionally downloading and installing the game program through an electronic device and running it. The local terminal device can provide the graphical user interface to the player in a variety of ways, for example, it can be rendered and displayed on the terminal's display screen, or provided to the player through holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present the graphical user interface, the graphical user interface includes the game screen, and the processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.
[0038] In a possible implementation, the present invention provides an information processing method. Figure 2 is a flow chart of an information processing method according to one embodiment of the present invention. Figure 2 As shown, the method includes the following steps:
[0039] Figure 2 FIG. 1 is a flow chart of an information processing method according to an embodiment of the present invention. Figure 2 As shown, the method may include the following steps:
[0040] Step S202: The first device obtains identification information of the target virtual character in the first image.
[0041] The first image is the image currently displayed by the first device.
[0042] The first device mentioned above can be a terminal device such as a mobile phone, a tablet, a computer, etc. The second device mentioned above can also be a terminal device such as a mobile phone, a tablet, a computer, etc. The second device mentioned above can also be a display device.
[0043] The first image mentioned above may be a graphical user interface currently displayed on the display screen of the first device.
[0044] The target virtual character may be one or more virtual characters displayed in the first image, or all virtual characters displayed in the first image. The identification information of the target virtual character may be the name of the target virtual character, or the avatar icon of the target virtual character.
[0045] In an optional embodiment, when the target virtual character is a plurality of virtual characters, the first device may obtain identification information of the target virtual character, and generate a target control corresponding to the target character through the identification information to facilitate user touch control.
[0046] In another optional embodiment, the first device may execute the step of acquiring identification information of the target virtual character in the first image when detecting that the second device is located above or covers the first device.
[0047] Step S204: The first device generates a target control corresponding to the target virtual character based on the identification information.
[0048] The target virtual character is controlled by the target control.
[0049] In an optional embodiment, the first device may generate a target control corresponding to the target virtual character according to the identification information, wherein the target control may be an avatar icon of the target virtual character, or may be the name of the target virtual character.
[0050] In another optional embodiment, the size of the target control corresponding to the target virtual character can be determined based on the number of characters in the target virtual character set. That is, the size of the target control can be determined based on the number of characters in the target virtual character set. The larger the number of characters in the target virtual character set, the smaller the target control corresponding to the target virtual character. This prevents overlapping target controls due to an excessive number of controls in the target control set, which could lead to users accidentally clicking on a target control. The smaller the number of characters in the target virtual character set, the larger the target control corresponding to the target virtual character, making it easier for users to click on the control.
[0051] Step S206: The first device overlays the target control on the target virtual character in the first image to generate a second image.
[0052] In an optional embodiment, the first device may overlay a target control on the image of the target virtual character in the first image to generate a second image, wherein the second image includes a target control corresponding to the target virtual character. By overlaying the target control on the target virtual character, a user can easily view the target virtual character corresponding to the control, thereby allowing the user to control the target virtual character through the target control. It should be noted that when the target control overlays the target virtual character, the name of the target virtual character may be displayed.
[0053] In another optional embodiment, the first device may further replace the target virtual character in the first image with a target control to generate a second image, wherein the second image may include a target control corresponding to the target virtual character.
[0054] Step S208: The first device sends the second image to the second device.
[0055] The second device is used to display the second image in response to the synchronous display instruction, and the synchronous display instruction is used to indicate that when the first device displays the first image, the second image corresponding to the first image is synchronously displayed in the second device.
[0056] like Figure 3 As shown, the first device may be a device displaying the first image, and the second device may be a device displaying the second image in the figure. The second device may be smaller than the first device and may cover the first device or be placed above the first device. The first image may display an image of a target virtual character, and the second image may be displayed in a target control corresponding to the target virtual character.
[0057] In an optional embodiment, after generating the second image, the first device can send the second image to the second device for display, so that the user can click the target control displayed by the second image in the second device to control the target virtual character corresponding to the target control, thereby preventing accidental touches due to too many virtual characters.
[0058] The aforementioned synchronous display instruction may be issued by the first device when the second device covers the first device. Specifically, upon detecting that the second device covers the first device and sending the second image to the second device, the first device may send a synchronous display instruction to the second device so that while the first device displays the first image, the second device may display the second image containing the target control, facilitating the user to control the target virtual character corresponding to the target control in the first image by clicking the target control in the second image.
[0059] Through the above steps, the first device can obtain the identification information of the target virtual character in the first image, wherein the first image is the image currently displayed by the first device, and the first device can generate a target control corresponding to the target virtual character based on the identification information, wherein the target virtual character can be controlled by the target control; the first device overlays the target control on the target virtual character in the first image to generate a second image, and the first device sends the second image to the second device, wherein the second device is used to display the second image in response to the synchronous display instruction, and the synchronous display instruction is used to represent that when the first device displays the first image, the second image corresponding to the first image is synchronously displayed in the second device, thereby achieving the purpose of controlling the target virtual character through the target control to avoid accidental touches. It is easy to notice that since the second image containing the target control is displayed on the second device, the user can control the target virtual character in the first device through the target control on the second device without affecting the display screen of the game in the first device. Therefore, when multiple virtual characters in the first screen overlap, the virtual character that needs to cast a spell can be controlled by displaying the controls corresponding to the multiple virtual characters on other devices, thereby avoiding accidental touches, improving the user's gaming experience, and solving the technical problem in the related art of accidental touches during the casting of a spell on a virtual character due to the overlap of multiple virtual characters.
[0060] Optionally, after the first device overlays the target control on the target virtual character in the first image to generate the second image, the method further includes: the first device obtains size information and position information of the second device, wherein the second device is located within a preset area of the first device, and the position information is used to characterize the position of the second device in the preset area; the first device uses the size information and position information to crop the second image to generate a third image; the first device sends the third image to the second device, wherein the second device is further used to display the third image in response to a synchronous display instruction.
[0061] The size information of the second device may be the length and width of the second device, and the position information of the second device may be the position of the second device in a preset area of the first device, wherein the preset area may be an area within a preset height above the screen of the first device.
[0062] In an optional embodiment, the second device may be provided with a sensor, and the first device locates the second device by detecting the sensor on the second device to obtain the position information of the second device. The sensor may be provided at the upper left, upper right, lower left, lower right, etc. of the second device, or may be provided at the center of the second device. The location of the sensor is not limited herein. This application uses the example of providing the sensor at the center of the second device for illustration.
[0063] In another optional embodiment, after detecting the position information of the sensor at the center of the second device, the first device can combine the size information of the second device to determine the area covered by the second device on the first device. Specifically, the coverage area of the second device on the first device is drawn using the position of the sensor as a reference point and the size information of the second device. After determining the coverage area, the second image containing the target control can be cropped based on the coverage area to generate a third image, where the third image corresponds to the area covered by the second device in the first image.
[0064] In another optional embodiment, after generating the third image, the first device may send the third image to the second device, and the second device, in response to the synchronous display instruction, displays the third image on the second device. It should be noted that the area displayed by the third image changes as the second device moves within the preset area of the first device. When the second device is located above the upper left corner area of the first device, if the target virtual character is displayed in the upper left corner of the first device, the second device will correspondingly display an image containing the target control corresponding to the target virtual character in the upper left corner area.
[0065] Optionally, the first device uses the size information and position information to crop the second image to generate a third image, including: the first device determines the overlapping area between the second device and the first image in the first device based on the size information and position information; the first device uses the overlapping area to crop the second image to generate the third image.
[0066] The aforementioned overlapping area may be an area where the second device projects the first image on the first device, or the aforementioned overlapping area may be an area where the second device covers the first image on the first device.
[0067] In an optional embodiment, after the first device detects the location information of the second device, it draws the overlapping area of the first image of the second device in the first device based on the location information and size information. After determining the overlapping area, the first device can use the overlapping area to crop the second image to generate a third image.
[0068] Optionally, the second device provides a target touch area, and the method also includes: the first device receives a control instruction sent by the second device; the first device controls the target virtual character corresponding to the target control in the first image based on the control instruction, wherein the control instruction is generated based on the touch operation performed on the target control in the target touch area in the second device.
[0069] In an optional embodiment, when the second device is located above the first device, the specific game operation is that the user clicks the target control on the second device, the second device can generate a control instruction, and send the control instruction to the first device. When the first device receives the control instruction, it can control the target virtual character corresponding to the target control according to the control instruction, so that the user can control the target virtual character corresponding to the target control on the first device through the target control on the second device, thereby avoiding the situation where the user accidentally touches the virtual character when controlling the virtual character due to the overlap of multiple virtual characters on the first device, resulting in operation failure. Among them, when displaying the target control on the second device, the target control in the second device can be displayed at the corresponding position above the target virtual character in the first device, so that the user can distinguish the target control corresponding to the target virtual character.
[0070] For example, Figure 4 The first image shown includes multiple overlapping game characters, and the multiple overlapping games include character A, character B, and character C. When the user needs to cast a spell on one of the multiple overlapping game characters displayed in the first image on the first device with a finger, the second device can be placed above the overlapping game character on the first device, as shown in FIG. Figure 5 As shown, a target control corresponding to each overlapping game character in the first device can be displayed on the second device, and controls 1, 2, and 3 can be displayed on the second device, wherein control 1 can cover the virtual character image of character A, control 2 can cover the virtual character image of character B, and control 3 can cover the virtual character image of character C, so as to facilitate users to control the overlapping game characters through the target control and avoid accidental touches.
[0071] In a possible implementation, the embodiment of the present invention provides another information processing method. Figure 5 is a flow chart of an information processing method according to one embodiment of the present invention. Figure 5 As shown, the method includes the following steps:
[0072] Figure 6 FIG. 1 is a flow chart of another information processing method according to an embodiment of the present invention. Figure 5 As shown, the method may include the following steps:
[0073] Step S602: The second device receives the first image sent by the first device.
[0074] The first image is the image currently displayed by the first device.
[0075] The first device mentioned above can be a terminal device such as a mobile phone, a tablet, a computer, etc. The second device mentioned above can also be a terminal device such as a mobile phone, a tablet, a computer, etc. The second device mentioned above can also be a display device.
[0076] The first image mentioned above may be a graphical user interface currently displayed on the display screen of the first device.
[0077] In another optional embodiment, when the first device detects that the second device is located above or covers the first device, the first device may send the first image currently displayed on the first device to the second device for processing.
[0078] Step S604: The second device obtains identification information of the target virtual character in the first image.
[0079] The target virtual character may be one or more virtual characters displayed in the first image, or all virtual characters displayed in the first image. The identification information of the target virtual character may be the name of the target virtual character, or the avatar icon of the target virtual character.
[0080] In an optional embodiment, when the target virtual character is a plurality of virtual characters, the second device may obtain identification information of the target virtual character, and generate a target control corresponding to the target character through the identification information to facilitate user touch control.
[0081] Step S606: The second device generates a target control corresponding to the target virtual character based on the identification information.
[0082] The target virtual character is controlled by the target control.
[0083] In an optional embodiment, the second device may generate a target control corresponding to the target virtual character according to the identification information, wherein the target control may be an avatar icon of the target virtual character, or may be the name of the target virtual character.
[0084] In another optional embodiment, the size of the target control corresponding to the target virtual character can be determined based on the number of characters in the target virtual character set. That is, the size of the target control can be determined based on the number of characters in the target virtual character set. The larger the number of characters in the target virtual character set, the smaller the target control corresponding to the target virtual character. This prevents overlapping target controls due to an excessive number of controls in the target control set, which could lead to users accidentally clicking on a target control. The smaller the number of characters in the target virtual character set, the larger the target control corresponding to the target virtual character, making it easier for users to click on the control.
[0085] Step S608: The second device overlays the target control on the target virtual character in the first image to generate a second image.
[0086] In an optional embodiment, the second device may overlay a target control on the image of the target virtual character in the first image to generate a second image, wherein the second image includes a target control corresponding to the target virtual character. By overlaying the target control on the target virtual character, the user can easily view the target virtual character corresponding to the control, so that the user can control the target virtual character through the target control. It should be noted that when the target control overlays the target virtual character, the name of the target virtual character can be displayed.
[0087] In another optional embodiment, the second device may also replace the target virtual character in the first image with a target control to generate a second image, wherein the second image may include a target control corresponding to the target virtual character.
[0088] Step S610: The second device displays a second image in response to a synchronous display instruction.
[0089] The synchronous display instruction is used to indicate that when the first device displays the first image, the second device synchronously displays the second image corresponding to the first image.
[0090] In an optional embodiment, after generating the second image, the second device can display the second image through the second device so that the user can click the target control displayed by the second image in the second device to control the target virtual character corresponding to the target control, thereby preventing accidental touches due to too many virtual characters.
[0091] The aforementioned synchronous display instruction may be issued by the second device when the second device is overlaid on the first device. When the second device detects that it is overlaid on the first device and generates a second image, it may further generate a synchronous display instruction so that, while the first device is displaying the first image, the second device can display the second image containing the target control, allowing the user to control the target virtual character corresponding to the target control in the first image by clicking the target control in the second image.
[0092] Through the above steps, the second device can receive the first image sent by the first device, wherein the first image is the image currently displayed by the first device; the second device obtains the identification information of the target virtual character in the first image; the second device generates a target control corresponding to the target virtual character based on the identification information, wherein the target virtual character is controlled by the target control; the second device overlays the target control on the target virtual character in the first image to generate a second image; the second device displays the second image in response to the synchronous display instruction, wherein the synchronous display instruction is used to represent that when the first device displays the first image, the second image corresponding to the first image is synchronously displayed in the second device, thereby achieving the purpose of controlling the target virtual character through the target control to avoid accidental touches. It is easy to notice that since the second image containing the target control is displayed on the second device, the user can control the target virtual character in the first device through the target control on the second device without affecting the display screen of the game in the first device. Therefore, when multiple virtual characters in the first screen overlap, the virtual character that needs to cast a spell can be controlled by displaying the controls corresponding to the multiple virtual characters on other devices, thereby avoiding accidental touches, improving the user's gaming experience, and solving the technical problem in the related art of accidental touches during the casting of a spell on a virtual character due to the overlap of multiple virtual characters.
[0093] Optionally, the second device overlays a target control on the target virtual character in the first image, and after generating the second image, the second device provides a target touch area. The method also includes: the second device obtains size information and position information of the second device, wherein the second device is located within a preset area of the first device, and the position information is used to characterize the position of the second device in the preset area; the second device uses the size information and position information to crop the second image to generate a third image; and the second device displays the third image in response to a synchronous display instruction.
[0094] The size information of the second device may be the length and width of the second device, and the position information of the second device may be the position of the second device in a preset area of the first device, wherein the preset area may be an area within a preset height above the screen of the first device.
[0095] In an optional embodiment, the second device may be provided with a sensor. The first device locates the second device by detecting the sensor on the second device, obtains the location information of the second device, and transmits the location information of the second device to the second device. The sensor may be provided at the upper left, upper right, lower left, lower right, etc. of the second device, or may be provided at the center of the second device. The location of the sensor is not limited herein. This application uses the example of providing the sensor at the center of the second device for illustration.
[0096] In another optional embodiment, after detecting the position information of a sensor located at the center of the second device, the first device may transmit the position information of the second device to the second device. The area covered by the second device on the first device may then be determined in combination with the size information of the second device. Specifically, the coverage area of the second device on the first device may be drawn using the position of the sensor as a reference point and the size information of the second device. After obtaining the coverage area, the second image containing the target control may be cropped based on the coverage area to generate a third image, wherein the third image corresponds to the area covered by the second device in the first image.
[0097] In another optional embodiment, after generating the third image, the second device may display the third image on the second device in response to a synchronous display instruction. It should be noted that the area displayed by the third image changes as the second device moves within the preset area of the first device. When the second device is located above the upper left corner area of the first device, if the target virtual character is displayed in the upper left corner of the first device, the second device will correspondingly display an image containing a target control corresponding to the target virtual character in the upper left corner area.
[0098] Optionally, the second device uses the size information and position information to crop the second image to generate a third image, including: the second device determines the overlapping area of the first image in the second device and the first device based on the size information and position information; the second device uses the overlapping area to crop the second image to generate the third image.
[0099] The aforementioned overlapping area may be an area where the second device projects the first image on the first device, or the aforementioned overlapping area may be an area where the second device covers the first image on the first device.
[0100] In an optional embodiment, the second device can draw the overlapping area of the first image of the second device in the first device based on the position information and size information. After determining the overlapping area, the second device can use the overlapping area to crop the second image to generate a third image.
[0101] Optionally, the second device provides a target touch area, and the method further includes: the second device generates a control instruction in response to a touch operation performed on a target control in the target touch area; the second device sends the control instruction to the first device, wherein the first device controls the target virtual character corresponding to the target control in the first image based on the control instruction.
[0102] In an optional embodiment, when the second device is located above the first device, the specific game operation is that the user clicks the target control on the second device, the second device can generate a control instruction, and send the control instruction to the first device. When the first device receives the control instruction, it can control the target virtual character corresponding to the target control according to the control instruction, so that the user can control the target virtual character corresponding to the target control on the first device through the target control on the second device, thereby avoiding the situation where the user accidentally touches the virtual character when controlling the virtual character due to the overlap of multiple virtual characters on the first device, resulting in operation failure. Among them, when displaying the target control on the second device, the target control in the second device can be displayed at the corresponding position above the target virtual character in the first device, so that the user can distinguish the target control corresponding to the target virtual character.
[0103] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of various embodiments of the present invention.
[0104] In this embodiment, an information processing device is also provided, which is used to implement the above-mentioned embodiments and preferred embodiments. Details that have already been described will not be repeated. As used below, the terms "unit" and "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0105] Figure 7 is a schematic diagram of an information processing device according to one embodiment of the present invention. Figure 7 As shown, the apparatus includes: a first acquisition module 702 , a first generation module 704 , a first covering module 706 , and a first sending module 708 .
[0106] Among them, the first acquisition module is used to obtain the identification information of the target virtual character in the first image through the first device, wherein the first device is used to display the first image; the first generation module is used to generate a target control corresponding to the target virtual character based on the identification information through the first device, wherein the target virtual character is controlled by the target control; the first overlay module is used to overlay the target control on the target virtual character in the first image through the first device to generate a second image; the sending module is used to send the second image to the second device through the first device, wherein the second device is used to display the second image in response to the synchronous display instruction, and the synchronous display instruction is used to indicate that when the first device displays the first image, the second image corresponding to the first image is synchronously displayed in the second device.
[0107] Optionally, the device further includes: a first cutting module.
[0108] Among them, the first acquisition module is also used to obtain the size information and position information of the second device through the first device, wherein the second device is located in the preset area of the first device, and the position information is used to characterize the position of the second device in the preset area; the first cropping module is used to use the size information and position information to crop the second image through the first device to generate a third image; the first sending module is also used to send the third image to the second device through the first device, wherein the second device is also used to display the third image in response to the synchronous display instruction.
[0109] Optionally, the first cropping module includes: a first determining unit and a first cropping unit.
[0110] Among them, the first determination unit is used to determine the overlapping area of the first image in the second device and the first device based on size information and position information through the first device; the first cropping unit is used to crop the second image using the overlapping area through the first device to generate a third image.
[0111] Optionally, the device further includes: a first receiving module and a first control module.
[0112] Among them, the first receiving module is also used to receive the control instruction sent by the second device through the first device; the first control module is also used to control the target virtual character corresponding to the target control in the first image based on the control instruction through the first device, wherein the control instruction is generated based on the touch operation performed on the target control in the target touch area in the second device.
[0113] This embodiment also provides another information processing device for implementing the above-mentioned embodiments and preferred embodiments. Details already described will not be repeated. As used below, the terms "unit" and "module" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0114] Figure 8 is a schematic diagram of an information processing device according to one embodiment of the present invention. Figure 8 As shown, the device includes: a receiving module 802 , a second acquiring module 804 , a second generating module 806 , a second covering module 808 , and a display module 810 .
[0115] Among them, the receiving module is used to receive the first image sent by the first device through the second device, wherein the first device is used to display the first image; the second acquisition module is used to obtain the identification information of the target virtual character in the first image through the second device; the second generation module is used to generate a target control corresponding to the target virtual character based on the identification information through the second device, wherein the target virtual character is controlled by the target control; the second overlay module is used to overlay the target virtual character in the first image with the target control through the second device to generate a second image; the display module is used to display the second image through the second device in response to the synchronous display instruction, wherein the synchronous display instruction is used to indicate that when the first device displays the first image, the second image corresponding to the first image is synchronously displayed in the second device.
[0116] Optionally, the second acquisition module is also used to obtain size information and position information of the second device through the second device, wherein the second device is located within a preset area of the first device, and the position information is used to characterize the position of the second device in the preset area; the second cropping module is also used to crop the second image using the size information and position information through the second device to generate a third image; the display module is also used to display the third image through the second device in response to a synchronous display instruction.
[0117] Optionally, the second cropping module includes: a second determining unit and a second cropping unit.
[0118] Among them, the second determination unit is used to determine the overlapping area of the first image in the second device and the first device based on size information and position information through the second device; the second cropping unit is used to crop the second image using the overlapping area through the second device to generate a third image.
[0119] Optionally, the second device provides a target touch area, and the apparatus further includes: a second sending module.
[0120] Among them, the second generating module is also used to generate a control instruction in response to the touch operation performed on the target control in the target touch area through the second device; the second sending module is used to send the control instruction to the first device through the second device, wherein the first device controls the target virtual character corresponding to the target control in the first image based on the control instruction.
[0121] It should be noted that the above-mentioned units and modules can be implemented through software or hardware. For the latter, it can be implemented in the following ways, but not limited to this: the above-mentioned units and modules are all located in the same processor; or the above-mentioned units and modules are located in different processors in any combination.
[0122] An embodiment of the present invention further provides a non-volatile storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above method embodiments when running.
[0123] Optionally, in this embodiment, the above-mentioned non-volatile storage medium can be configured to store a computer program for performing the following steps: the first device obtains identification information of the target virtual character in the first image, wherein the first image is the image currently displayed by the first device; the first device generates a target control corresponding to the target virtual character based on the identification information, wherein the target virtual character is controlled by the target control; the first device overwrites the target virtual character in the first image with the target control to generate a second image; the first device sends the second image to the second device, wherein the second device is used to display the second image in response to a synchronous display instruction, and the synchronous display instruction is used to indicate that when the first device displays the first image, the second image corresponding to the first image is synchronously displayed in the second device.
[0124] Optionally, in this embodiment, the above-mentioned non-volatile storage medium can also be configured to store a computer program for performing the following steps: the second device receives the first image sent by the first device, wherein the first image is the image currently displayed by the first device; the second device obtains the identification information of the target virtual character in the first image; the second device generates a target control corresponding to the target virtual character based on the identification information, wherein the target virtual character is controlled by the target control; the second device overlays the target control on the target virtual character in the first image to generate a second image; the second device displays the second image in response to the synchronous display instruction, wherein the synchronous display instruction is used to represent that when the first device displays the first image, the second image corresponding to the first image is synchronously displayed in the second device.
[0125] Optionally, in this embodiment, the above-mentioned non-volatile storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0126] An embodiment of the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0127] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0128] Optionally, in this embodiment, the above-mentioned processor can be configured to perform the following steps through a computer program: the first device obtains identification information of the target virtual character in the first image, wherein the first image is the image currently displayed by the first device; the first device generates a target control corresponding to the target virtual character based on the identification information, wherein the target virtual character is controlled by the target control; the first device overlays the target control on the target virtual character in the first image to generate a second image; the first device sends the second image to the second device, wherein the second device is used to display the second image in response to a synchronous display instruction, and the synchronous display instruction is used to indicate that when the first device displays the first image, the second image corresponding to the first image is synchronously displayed in the second device.
[0129] Optionally, in this embodiment, the above-mentioned processor can also be configured to perform the following steps through a computer program: the second device receives the first image sent by the first device, wherein the first image is the image currently displayed by the first device; the second device obtains the identification information of the target virtual character in the first image; the second device generates a target control corresponding to the target virtual character based on the identification information, wherein the target virtual character is controlled by the target control; the second device overlays the target control on the target virtual character in the first image to generate a second image; the second device displays the second image in response to the synchronous display instruction, wherein the synchronous display instruction is used to represent that when the first device displays the first image, the second image corresponding to the first image is synchronously displayed in the second device.
[0130] Optionally, specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0131] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.
[0132] In the above embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0133] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only exemplary. For example, the division of units can be a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0134] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple units. Some or all of the units may be selected to achieve the purpose of the present embodiment according to actual needs.
[0135] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0136] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0137] The above are only preferred embodiments of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. An information processing method, characterized in that: include: The first device obtains identification information of a target virtual character in a first image, wherein the first image is an image currently displayed by the first device; The first device generates a target control corresponding to the target virtual character based on the identification information, wherein the target virtual character is controlled by the target control; The first device overlays the target control on the target virtual character in the first image to generate a second image; The first device sends the second image to the second device, wherein the second device is configured to display the second image in response to a synchronous display instruction, wherein the synchronous display instruction is configured to indicate that when the first device displays the first image, the second image corresponding to the first image is synchronously displayed on the second device; Wherein, after the first device overlays the target control on the target virtual character in the first image to generate the second image, the method further includes: The first device acquires size information and position information of the second device, wherein the second device is located in a preset area of the first device, and the position information is used to represent the position of the second device in the preset area; The first device crops the second image using the size information and the position information to generate a third image; The first device sends the third image to the second device, wherein the second device is further configured to display the third image in response to the synchronous display instruction.
2. The method according to claim 1, characterized in that The first device performs cropping processing on the second image using the size information and the position information to generate a third image, including: The first device determines, based on the size information and the position information, an overlapping area between the second device and the first image in the first device; The first device crops the second image using the overlapping area to generate a third image.
3. The method according to claim 1, characterized in that The second device provides a target touch area, and the method further includes: The first device receives a control instruction sent by the second device; The first device controls the target virtual character corresponding to the target control in the first image based on the control instruction, wherein the control instruction is generated based on a touch operation performed on the target control in the target touch area in the second device.
4. An information processing method, characterized in that: include: The second device receives a first image sent by the first device, wherein the first image is an image currently displayed by the first device; The second device obtains identification information of the target virtual character in the first image; The second device generates a target control corresponding to the target virtual character based on the identification information, wherein the target virtual character is controlled by the target control; The second device overlays the target control on the target virtual character in the first image to generate a second image; The second device displays the second image in response to the synchronous display instruction, wherein the synchronous display instruction is used to indicate that when the first device displays the first image, the second image corresponding to the first image is synchronously displayed on the second device; The second device overlays the target control on the target virtual character in the first image, and after generating the second image, the second device provides a target touch area. The method further includes: The second device acquires size information and position information of the second device, wherein the second device is located in a preset area of the first device, and the position information is used to represent the position of the second device in the preset area; The second device crops the second image using the size information and the position information to generate a third image; The second device displays the third image in response to the synchronous display instruction.
5. The method according to claim 4, characterized in that The second device performs cropping processing on the second image using the size information and the position information to generate a third image, including: determining, by the second device, an overlapping area between the second device and the first image in the first device based on the size information and the position information; The second device crops the second image using the overlapping area to generate a third image.
6. The method according to claim 4, characterized in that The second device provides a target touch area, and the method further includes: The second device generates a control instruction in response to a touch operation performed on a target control in the target touch area; The second device sends the control instruction to the first device, wherein the first device controls the target virtual character corresponding to the target control in the first image based on the control instruction.
7. An information processing device, characterized in that include: A first acquisition module, configured to acquire identification information of a target virtual character in a first image through a first device, wherein the first device is configured to display the first image; A first generating module is configured to generate, by the first device and based on the identification information, a target control corresponding to the target virtual character, wherein the target virtual character is controlled by the target control; A first covering module, configured to cover the target control on the target virtual character in the first image by using the first device to generate a second image; a sending module, configured to send the second image to a second device via the first device, wherein the second device is configured to display the second image in response to a synchronous display instruction, wherein the synchronous display instruction is configured to indicate that, when the first device displays the first image, the second image corresponding to the first image is synchronously displayed on the second device; The device is further used to obtain size information and position information of the second device through the first device, wherein the second device is located within a preset area of the first device, and the position information is used to characterize the position of the second device in the preset area; the first device uses the size information and the position information to crop the second image to generate a third image; and the third image is sent to the second device through the first device, wherein the second device is further used to display the third image in response to the synchronous display instruction.
8. An information processing device, characterized in that include: a receiving module, configured to receive, via a second device, a first image sent by a first device, wherein the first device is configured to display the first image; A second acquisition module, configured to acquire identification information of a target virtual character in the first image through the second device; A second generating module is configured to generate, by the second device, a target control corresponding to the target virtual character based on the identification information, wherein the target virtual character is controlled by the target control; A second covering module, configured to cover the target control on the target virtual character in the first image through the second device to generate a second image; a display module configured to display the second image in response to a synchronous display instruction via the second device, wherein the synchronous display instruction is used to indicate that, when the first device displays the first image, the second image corresponding to the first image is synchronously displayed on the second device; The device is used for the second device to obtain size information and position information of the second device, wherein the second device is located in a preset area of the first device, and the position information is used to characterize the position of the second device in the preset area; the second device uses the size information and the position information to crop the second image to generate a third image; the second device displays the third image in response to the synchronous display instruction.
9. A non-volatile storage medium, characterized in that: The non-volatile storage medium stores a computer program, wherein the computer program is configured to execute the information processing method according to any one of claims 1 to 6 when executed.
10. A processor, characterized in that: The processor is configured to run a program, wherein the program is configured to execute the information processing method according to any one of claims 1 to 6 when run.
11. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to run the computer program to execute the information processing method according to any one of claims 1 to 6.
Citation Information
Patent Citations
A first apparatus for controlling a second apparatus
GB201517062D0
Game system, selection method, and information recording medium
US20140309031A1