CN112604302A - Interaction method, device, equipment and storage medium of virtual object in virtual environment - Google Patents

Interaction method, device, equipment and storage medium of virtual object in virtual environment Download PDF

Info

Publication number
CN112604302A
CN112604302A CN202011497131.7A CN202011497131A CN112604302A CN 112604302 A CN112604302 A CN 112604302A CN 202011497131 A CN202011497131 A CN 202011497131A CN 112604302 A CN112604302 A CN 112604302A
Authority
CN
China
Prior art keywords
account
virtual object
virtual
terminal
transmission
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.)
Granted
Application number
CN202011497131.7A
Other languages
Chinese (zh)
Other versions
CN112604302B (en
Inventor
毛克
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011497131.7A priority Critical patent/CN112604302B/en
Publication of CN112604302A publication Critical patent/CN112604302A/en
Application granted granted Critical
Publication of CN112604302B publication Critical patent/CN112604302B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/79Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories
    • A63F13/795Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories for finding other players; for building a team; for providing a buddy list
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/822Strategy games; Role-playing games
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/843Special adaptations for executing a specific game genre or game mode involving concurrently two or more players on the same game device, e.g. requiring the use of a plurality of controllers or of a specific view of game data for each player
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/55Details of game data or player data management
    • A63F2300/5546Details of game data or player data management using player registration data, e.g. identification, account, preferences, game history
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/80Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game specially adapted for executing a specific type of game
    • A63F2300/807Role playing or strategy games

Abstract

The application discloses an interaction method, device, equipment and storage medium of virtual objects in a virtual environment, and relates to the field of virtual environments. The method comprises the following steps: displaying a near field account prompting control, wherein the near field account prompting control is used for indicating that a second account is logged on a second terminal within the near field distance range of the first terminal; receiving a selection operation of a second account based on the near field account prompting control; the first virtual object is transferred in the virtual environment at the specified location based on the selection operation. Near field communication is carried out based on the distance between the first terminal and the second terminal, and when the near field communication range is within the near field communication range, a second account which can be used as a transmission target is displayed, so that the first virtual object is controlled to be transmitted to the peripheral side of the second virtual object, the transmission efficiency of the first virtual object is improved, and the interaction efficiency and diversity between the first virtual object and the second virtual object are improved.

Description

Interaction method, device, equipment and storage medium of virtual object in virtual environment
Technical Field
The embodiment of the application relates to the field of virtual environments, in particular to an interaction method, device, equipment and storage medium for virtual objects in a virtual environment.
Background
In virtual environment-based applications, a user can control virtual objects to move in a virtual environment or interact with other virtual objects, such as: the user can control the virtual objects to run, walk, squat and the like, and also can control the virtual objects to operate the virtual props to attack other virtual objects, a plurality of virtual objects can cooperate to complete tasks in a virtual environment, and in some embodiments, the tasks need to be completed within a certain distance range among the virtual objects.
In the related technology, when a user needs to control a virtual object to move to the peripheral side of a friend virtual object, the user needs to enter a friend system to find a friend account, so that the target position of the friend virtual object in the virtual environment is determined, a map interface is entered, a transmission function is started after the target position is selected, and a transmission process is completed.
However, in the above-mentioned transmission method for the user position, the user needs to implement the transmission through multiple steps, the transmission process is complicated, and the interaction efficiency between multiple virtual objects is low.
Disclosure of Invention
The embodiment of the application provides an interaction method, device, equipment and storage medium for virtual objects in a virtual environment, and interaction efficiency and diversity between the virtual objects in a virtual game can be improved. The technical scheme is as follows:
in one aspect, a method for interaction of virtual objects in a virtual environment is provided, the method comprising:
displaying a near field account number prompting control, wherein the virtual environment comprises a first virtual object corresponding to a first account number logged in by a current first terminal, the near field account number prompting control is used for indicating that a second account number is logged on a second terminal within a near field distance range of the first terminal, and the second virtual object corresponding to the second account number is in the virtual environment;
receiving a selection operation of the second account based on the near field account prompting control;
transferring the first virtual object in the virtual environment to a specified location within a required distance range centered on the second virtual object based on the selection operation.
In another aspect, an apparatus for interacting a virtual object in a virtual environment is provided, the apparatus comprising:
the display module is used for displaying a near field account prompting control, the virtual environment comprises a first virtual object corresponding to a first account logged in by a current first terminal, the near field account prompting control is used for indicating that a second account is logged in a second terminal within a near field distance range of the first terminal, and the second virtual object corresponding to the second account is located in the virtual environment;
the receiving module is used for receiving selection operation of the second account based on the near field account prompting control;
the display module is further configured to transmit the first virtual object to a specified location in the virtual environment based on the selection operation, the specified location being within a required distance range centered on the second virtual object.
In another aspect, a computer device is provided, the computer device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by the processor to implement the method of interacting virtual objects in a virtual environment as provided in the above embodiments.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which is loaded and executed by the processor to implement the method for interaction of virtual objects in a virtual environment as provided in the above embodiments.
In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method for interacting the virtual objects in the virtual environment as described in any of the above embodiments.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
near field communication is carried out based on the distance between the first terminal and the second terminal, and when the near field communication range is within the near field communication range, a second account which can be used as a transmission target is displayed, so that the first virtual object is controlled to be transmitted to the peripheral side of the second virtual object, the transmission efficiency of the first virtual object is improved, and the interaction efficiency and diversity between the first virtual object and the second virtual object are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of a process interface for location delivery provided by an exemplary embodiment of the present application;
FIG. 2 is a schematic diagram of a scenario of an interaction method provided in an exemplary embodiment of the present application;
FIG. 3 is a schematic view of a scene of an interaction method provided in another exemplary embodiment of the present application;
FIG. 4 is a block diagram of a computer system provided in an exemplary embodiment of the present application;
FIG. 5 is a flowchart of a method for interaction of virtual objects in a virtual environment, as provided by an exemplary embodiment of the present application;
FIG. 6 is a schematic diagram of a near field account reminder control provided based on the embodiment shown in FIG. 5;
FIG. 7 is an interface schematic diagram of an account selection bar provided based on the embodiment shown in FIG. 5;
FIG. 8 illustrates a method for interaction of virtual objects in a virtual environment, according to an exemplary embodiment of the present application;
FIG. 9 is a schematic diagram of a transport interface provided based on the embodiment shown in FIG. 8;
FIG. 10 is a schematic diagram of an interface for transmitting identification provided based on the embodiment shown in FIG. 8;
FIG. 11 is a flowchart of a method for interaction of virtual objects in a virtual environment, as provided by another exemplary embodiment of the present application;
fig. 12 is a process diagram of NFC interaction provided based on the embodiment shown in fig. 11;
FIG. 13 is a flowchart illustrating an overall method for interacting virtual objects in a virtual environment, according to an illustrative embodiment of the present application;
FIG. 14 is a block diagram of an interaction apparatus for virtual objects in a virtual environment, according to an exemplary embodiment of the present application;
FIG. 15 is a block diagram of an interaction apparatus for virtual objects in a virtual environment according to another exemplary embodiment of the present application;
fig. 16 is a block diagram of a terminal according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
First, terms referred to in the embodiments of the present application are briefly described:
virtual environment: is a virtual environment that is displayed (or provided) when an application is run on the terminal. The virtual environment may be a simulation environment of a real world, a semi-simulation semi-fictional environment, or a pure fictional environment. The virtual environment may be any one of a two-dimensional virtual environment, a 2.5-dimensional virtual environment, and a three-dimensional virtual environment, which is not limited in this application. The following embodiments are illustrated with the virtual environment being a three-dimensional virtual environment. In some embodiments, the virtual environment is configured to provide a combat environment for at least two master virtual objects. The virtual environment comprises a symmetrical lower left corner area and an upper right corner area, the main control virtual objects belonging to two enemy camps occupy one of the areas respectively, and target buildings, or sites, or bases, or crystals deep in the other area are destroyed to serve as winning targets. In some embodiments, virtual objects accomplish tasks in a virtual environment and implement a level promotion.
The game based on the virtual environment is composed of one or more game world maps, the virtual environment in the game simulates the scene of the real world, a user can control a main control virtual object in the game to walk, run, jump, shoot, fight, drive, release skills, be attacked by other virtual objects, be injured by the virtual environment, attack other virtual objects and other actions in the virtual environment, the interactivity is strong, and a plurality of users can form a team on line to play a competitive game.
Virtual object: refers to a movable object in a virtual environment. The movable object can be a virtual character, a virtual animal, an animation character, etc., such as: a person or an animal displayed in a three-dimensional virtual environment. Optionally, the virtual object is a three-dimensional volumetric model created based on animated skeletal techniques. Each virtual object has its own shape and volume in the three-dimensional virtual environment, occupying a portion of the space in the three-dimensional virtual environment. In the embodiment of the present application, a virtual object is taken as a master control virtual object controlled by a user as an example, and the master control virtual object generally refers to one or more master control virtual objects in a virtual environment.
And (3) transmission: the function is to directly transfer the virtual object from the source position to the target position after the user selects the target position for transmission in the virtual environment. The user can only select the target position in the same virtual environment, namely, the target position is selected in the virtual environment where the current virtual object is located for transmission; alternatively, the user may select the target location across the boundaries between the multiple virtual environments, i.e., the current virtual object is in the first virtual environment, and the user may select the target location for transfer in the second virtual environment.
In the related art, in the process of location transfer, referring to fig. 1 schematically, a schematic diagram of a process interface of location transfer in the related art is shown, as shown in fig. 1, a map interface 100 is displayed first, a location 110 where a current virtual object is located is identified in the map interface 100, and after a user selects a target location 120 in the map interface 100, a transfer function is triggered, so that the virtual object is transferred from the location 110 to the target location 120.
In the embodiment of the present application, the virtual object is transmitted based on Near Field Communication (NFC). Fig. 2 is a schematic view of a scene of an interaction method according to an exemplary embodiment of the present application, and as shown in fig. 2, a first account is registered in a first terminal 210, a first virtual object 211 is correspondingly created in the first account, a second account is registered in a second terminal 220, and a second virtual object 221 is correspondingly created in the second account.
Taking the interface displayed by the first terminal 210 as an example, when the distance between the first terminal 210 and the second terminal 220 is within the NFC communication distance range, a near field account prompting control 212 is displayed in the interface of the first terminal 210, where the near field account prompting control 212 is used to indicate that the second terminal 220 logged with the second account is nearby, so that the first virtual object 211 is transmitted to the target position corresponding to the second virtual object 221 based on the triggering operation on the near field account prompting control 212.
In some embodiments, the first virtual object 211 is prior to transmission, and the second terminal 220 needs to acknowledge the transmission of the first virtual object 211 based on the second account. Schematically, referring to fig. 3, taking an interface of the second terminal 220 as an example, when the first terminal 210 receives a trigger operation on the near field account prompting control 212, a prompting message 310 is displayed in the interface of the second terminal 220, where the prompting message 310 is used to indicate that the first virtual object 211 needs to be transmitted to the current peripheral side of the second virtual object 221. When receiving the confirmation signal for the hint information 310, the first virtual object 211 is controlled to be transferred to the peripheral side of the second virtual object 221.
Fig. 4 shows a block diagram of a computer system provided in an exemplary embodiment of the present application. The computer system 400 includes: a first terminal 420, a server 440, and a second terminal 460.
The first terminal 420 is installed and operated with an application program supporting a virtual environment. The application program can be any one of a virtual reality application program, a three-dimensional map program, a military simulation program, a First Person Shooting Game (FPS), an MOBA Game, a multi-player gunfight survival Game and a large-fleeing and killing type Shooting Game. The first endpoint 420 is an endpoint used by a first user who uses the first endpoint 420 to control a first master virtual object located in the virtual environment for activities including, but not limited to: adjusting at least one of body posture, walking, running, jumping, releasing skills, picking up, attacking, evading attacks by other virtual objects. Illustratively, the first master virtual object is a first virtual character, such as an animated character or an animation character. Illustratively, the first master virtual object releases the regional skill in the virtual environment, and the virtual environment screen moves from the position of the master virtual object to the target region selected by the regional skill indicator. The region-type skill indicator is used for controlling the virtual object to select a release region when releasing the skill.
The first terminal 420 is connected to the server 440 through a wireless network or a wired network.
The server 440 includes at least one of a server, a plurality of servers, a cloud computing platform, and a virtualization center. Illustratively, the server 440 includes a processor 444 and a memory 442, the memory 442 further includes a receiving module 4421, a control module 4422 and a transmitting module 4423, the receiving module 4421 is configured to receive a request, such as a team formation request, transmitted by a client; the control module 4422 is configured to control rendering of a virtual environment picture; the sending module 4423 is configured to send a message notification, such as a queue success notification, to the client. The server 440 is used to provide background services for applications that support a three-dimensional virtual environment. Optionally, the server 440 undertakes primary computational work and the first terminal 420 and the second terminal 460 undertake secondary computational work; alternatively, the server 440 undertakes the secondary computing work and the first terminal 420 and the second terminal 460 undertake the primary computing work; or, the server 440, the first terminal 420 and the second terminal 460 perform cooperative computing by using a distributed computing architecture.
The second terminal 460 is connected to the server 440 through a wireless network or a wired network.
The second terminal 460 is installed and operated with an application program supporting a virtual environment. The application program can be any one of a virtual reality application program, a three-dimensional map program, a military simulation program, an FPS game, an MOBA game, a multi-player gunfight survival game and a large fleeing and killing type shooting game. The second terminal 460 is a terminal used by a second user who uses the second terminal 460 to control a second master virtual object located in the virtual environment to perform activities including, but not limited to: adjusting at least one of body posture, walking, running, jumping, releasing skills, picking up, attacking, evading attacks by other master virtual objects. Illustratively, the second master virtual object is a second virtual character, such as an animated character or an animation character.
Optionally, the first virtual character and the second virtual character are in the same virtual environment. Optionally, the first avatar character and the second avatar character may belong to the same team, the same organization, have a friend relationship, or have temporary communication rights.
In some embodiments, the distance between the first terminal 420 and the second terminal 460 is within the communication range of the short-range wireless communication technology.
Alternatively, the applications installed on the first terminal 420 and the second terminal 460 are the same, or the applications installed on the two terminals are the same type of application of different control system platforms. The first terminal 420 may generally refer to one of a plurality of terminals, and the second terminal 460 may generally refer to one of a plurality of terminals, and this embodiment is only illustrated by the first terminal 420 and the second terminal 460. The device types of the first terminal 420 and the second terminal 460 are the same or different, and include: at least one of a smartphone, a tablet, an e-book reader, an MP3 player, an MP4 player, a laptop portable computer, and a desktop computer. The following embodiments are illustrated with the terminal comprising a smartphone.
Those skilled in the art will appreciate that the number of terminals described above may be greater or fewer. For example, the number of the terminals may be only one, or several tens or hundreds of the terminals, or more. The number of terminals and the type of the device are not limited in the embodiments of the present application.
Fig. 5 is a flowchart of an interaction method of virtual objects in a virtual environment according to an exemplary embodiment of the present application, for example, the method is applied to the first terminal 420 or the second terminal 460 in the computer system 400 shown in fig. 4 or other terminals in the computer system 400, and the method includes:
step 501, displaying a near field account prompting control.
The virtual environment comprises a first virtual object corresponding to a first account logged in by a current first terminal, the near field account prompting control is used for indicating that a second account logged on a second terminal exists in a near field distance range of the first terminal, and the second virtual object corresponding to the second account is in the virtual environment.
In some embodiments, the first virtual object and the second virtual object are in the same virtual environment; or the first virtual object is in a first virtual environment and the second virtual object is in a second virtual environment.
The first terminal and the second terminal are both provided with the near field communication technology, namely, the first terminal can send an NFC signal to the second terminal, and the second terminal can receive the NFC signal sent by the first terminal. The first terminal firstly needs to detect whether a second terminal logged with a second account exists in the near field distance range, and when the second terminal exists, a near field account prompting control is displayed. That is, the first terminal transmits a detection signal through the short-range wireless communication technology, the detection signal is used for detecting the second terminal logged with the second account, the second terminal is determined to exist within the near-field distance range of the first terminal in response to receiving a response signal of the second terminal, and the response signal is a signal fed back by the second terminal when the second account is logged with the second terminal and the second virtual object is located in the virtual environment.
In some embodiments, the trigger condition for the first terminal to transmit the probe signal includes at least one of:
firstly, a user logs in a first account through a first terminal and starts virtual office alignment based on a first virtual object, and then a detection signal is sent to detect a second terminal at intervals of a preset time interval within an initial preset time length of the first virtual object participating in the virtual office alignment.
That is, the first terminal receives a game starting signal, the game starting signal is used for starting a virtual game in which the first virtual object participates in the virtual environment, a timer is started based on the game starting signal, the timer indicates the duration of participation of the first virtual object in the virtual game, the existence condition of the second terminal in the near field distance range of the first terminal is obtained in response to the fact that the timed duration of the timer is in the required duration range, and when it is determined that the second job section exists in the approach distance range of the first terminal, the account near field prompting control is displayed.
Secondly, when the user controls the first virtual object to participate in the virtual game, a near-field account detection control is displayed in the interface, and when the selection operation on the near-field account detection signal is received, the first terminal sends a detection signal to detect the second terminal.
That is, at any time when the first virtual object participates in the virtual game, the user can control the first terminal to transmit the NFC signal to probe the second terminal.
Thirdly, when the user starts the near field detection function based on the first account, the first terminal sends an NFC signal once to detect every other preset time length when the first virtual object participates in the virtual game in the virtual environment, displays a near field account prompting control based on a detection result, and cancels the display of the near field account prompting control when the display time length reaches the preset time length and does not receive the selection operation of the second account.
The above manner is an example of a case where the first terminal sends the probe signal, and the first terminal may also send the probe signal in other cases, which is not limited in this embodiment of the application.
In some embodiments, the first account and the second account are accounts establishing a relationship, and illustratively, the first account and the second account are friend accounts in the application; or, the first account and the second account do not have an association relationship, and are only accounts logged in on two terminals within the near field distance range.
The display mode of the near field account prompting control comprises at least one of the following modes:
1. the near field account prompting control is displayed in a bubble mode, namely the near field account prompting control is only used for prompting a user and currently has a second terminal.
Referring to fig. 6 schematically, a schematic diagram of a near field account prompting control provided in an exemplary embodiment of the present application is shown, as shown in fig. 6, a virtual environment interface 600 includes a first virtual object 610, and after a first terminal sends a detection signal, a response signal fed back by a second terminal is received, so as to display a near field account prompting control 620, where the near field account prompting control 620 is a bubble control displayed in the virtual environment interface 600.
2. The near field account prompting control is displayed in a list form, that is, the near field account prompting control is not only used for prompting that the user currently has the second terminal, but also used for prompting that the user currently detects the second account logged on each second terminal.
Illustratively, a near field account prompting list is displayed in the virtual environment interface, and a second account logged on a second terminal detected by the first terminal is displayed in the near field account prompting list.
3. And the near field account prompting control is displayed in the form of the respective corresponding identifier of the second account.
Illustratively, in the virtual environment interface, based on the position relationship between the second virtual object and the first virtual object, an identifier is displayed at a position in the interface corresponding to the second virtual object, for indicating the position and direction of the second virtual object in the virtual environment and indicating that the second terminal is currently within the near-field distance range of the first terminal. Optionally, the identification is displayed as an avatar for the second account; or, avatar thumbnails, etc.
It should be noted that the three manners are only illustrative examples of the display manner of the near field account prompting control, and the display manner of the near field account prompting control is not limited in the embodiment of the present application.
In this embodiment, the near field account number prompting control is displayed in the form of bubbles for example.
Step 502, receiving a selection operation of a second account based on the near field account prompting control.
Aiming at different display modes of the account prompting control, the implementation modes of the selection operation are respectively explained as follows:
1. in some embodiments, the near-field account number prompting control is a bubble control displayed in the virtual environment interface, and a click operation triggering operation on the bubble control is received, so that the second account number is selected based on the triggering operation. Illustratively, a triggering operation on the near-field account prompting control is received, an account selection bar is displayed based on the triggering operation, the account selection bar comprises at least one second account, and a selection operation on a target second account is received on the account selection bar. Wherein the target second account is one of the at least one second account.
Referring to fig. 7, schematically, after the near-field account prompting control 710 is selected in the virtual environment interface, an account selection bar 720 is displayed, wherein a plurality of avatar of the second account are displayed in the account selection bar 720, and the selection of the avatar 721 of the target second account is used as the selection operation of the target second account.
In some embodiments, the first terminal receives a sliding operation in a first direction in the account selection bar, the first direction being an arrangement direction of the second accounts in the account selection bar, the sliding operation is used for moving the second accounts out of a display range of the account selection bar into the display range, and the selection operation on the target second accounts is received in response to the target second accounts being visible in the account selection bar.
2. And displaying the near field account prompting control in the virtual environment interface in a list form, displaying a second account logged on a second terminal which can be detected by the current first terminal in the list, and directly selecting a target second account by a user in the list.
3. The near field account prompting control is displayed in the form of the identifier corresponding to each second account, so that when a user views the virtual environment in the virtual environment interface, the display position of the identifier corresponding to the target second account is searched, and the identifier corresponding to the target second account is selected to be used as the selection operation of the second account.
Step 503, transferring the first virtual object to the specified location in the virtual environment based on the selection operation.
The specified position is located within a required distance range centered on the second virtual object. That is, when transferring the first virtual object, the position of the second virtual object in the virtual environment is first determined, and the first virtual object is transferred to a specified position within the required distance range of the second virtual object based on the position of the second virtual object.
In some embodiments, the predetermined relative position corresponding to the second virtual object is determined directly according to the position of the second virtual object, so that the predetermined relative position is determined as the designated position. In some embodiments, a region within the desired distance range is determined centered on the second virtual object, and the designated location is randomly determined within the region. The determination process of the designated position is not limited in the embodiment of the present application.
To sum up, the interaction method for virtual objects in a virtual environment according to the embodiment of the present application performs near field communication based on the distance between the first terminal and the second terminal, and displays the second account that can be used as a transmission target when the distance is within the near field communication range, thereby controlling the first virtual object to be transmitted to the periphery of the second virtual object, improving the transmission efficiency of the first virtual object, and improving the interaction efficiency and diversity between the first virtual object and the second virtual object.
In an alternative embodiment, the transfer interface is displayed during the transfer of the first virtual object. Fig. 8 is a method for interaction of virtual objects in a virtual environment according to an exemplary embodiment of the present application, for example, when the method is applied to a terminal, as shown in fig. 8, the method includes:
step 801, displaying a near field account prompting control.
The virtual environment comprises a first virtual object corresponding to a first account logged in by a current first terminal, the near field account prompting control is used for indicating that a second account logged on a second terminal exists in a near field distance range of the first terminal, and the second virtual object corresponding to the second account is in the virtual environment.
The first terminal and the second terminal are both provided with the near field communication technology, namely, the first terminal can send an NFC signal to the second terminal, and the second terminal can receive the NFC signal sent by the first terminal.
In some embodiments, the first account and the second account are accounts establishing a relationship, and illustratively, the first account and the second account are friend accounts in the application; or, the first account and the second account do not have an association relationship, and are only accounts logged in on two terminals within the near field distance range.
In this embodiment, the near field account number prompting control is displayed in the form of bubbles for example.
And step 802, receiving a selection operation of a second account based on the near field account prompting control.
The selection operation is used for indicating the first account to select to transmit the first virtual object to the second virtual object peripheral side corresponding to the second account.
And step 803, displaying a transmission interface based on the selection operation.
The transfer interface is used for indicating that the current first virtual object is being transferred to the specified position.
In some embodiments, in the process of displaying the transfer interface, the first terminal acquires the position of the second virtual object in the virtual environment, and determines the designated position of the transfer of the first virtual object based on the position of the second virtual object. And after the transmission interface is displayed, the interface display is carried out based on the virtual environment picture obtained by rendering, namely, the interface of the first virtual object transmitted to the designated position is displayed. That is, in the process of displaying the transmission interface, the calculation of the transmission result is performed.
And step 804, displaying the transfer animation of the first virtual object in the transfer process in the transfer interface.
In some embodiments, communicating the display of the animation includes at least one of:
firstly, displaying a transmission progress bar, and determining the display progress of the progress bar according to the calculation progress of a transmission result; or, the display progress of the progress bar is determined according to the preset transmission progress time length and the current transmitted time length.
Second, a map transfer background is displayed in the transfer interface, in which a transfer initial location and a transfer termination location of the first virtual object are marked. The transmission termination point is a designated position to which the first virtual object is transmitted, or the transmission termination point is used for indicating the position of the second virtual object. In this embodiment, a case where the transfer termination point indicates the position of the point where the second virtual object is located will be described as an example.
A position movement animation is displayed between the transfer initiation location and the transfer termination location, the position movement animation simulating a position movement of the first virtual object between the transfer initiation location and the transfer termination location.
Referring to fig. 9, which is a schematic diagram illustrating a transmission interface provided in an exemplary embodiment of the present application, as shown in fig. 9, a first mark 910 and a second mark 920 are displayed in the transmission interface 900, where the first mark 910 indicates an initial transmission location of the first virtual object, that is, a position where the first virtual object is located before transmission; the second marker 920 indicates the position of the second virtual object in the virtual environment, i.e. the transfer termination location. The first mark 910 and the second mark 920 include a transmission trace 930 therebetween, a transmission mark 931 is displayed on the transmission trace 930, and the transmission mark 931 and the transmission trace 930 are used to indicate the current transmission progress. In some embodiments, a transmission progress text region 940 is further displayed in the transmission interface 900, and the transmission progress text region 940 includes a total transmission length and a transmitted length, as shown in fig. 9, the total transmission length is 700Km, and the current transmitted length is 351 Km. It is noted that the transmitted length can also be implemented as the remaining transmission length, that is, the total transmission length is 700Km, and the remaining required transmission length is 351 Km.
In some embodiments, in response to the first virtual object being transferred to the designated location during the transfer, a transfer identifier is displayed at a preset location corresponding to the second virtual object, the transfer identifier indicating that there is a transfer of the virtual object to the second virtual object.
Illustratively, referring to fig. 10, a second virtual object 1010 is displayed in the virtual environment interface 1000, and the current first virtual object is being transferred to the position where the second virtual object is located, so that an identifier 1020 is displayed at the position of the second virtual object 1010, where the identifier 1020 is used to indicate that the distance that the current first virtual object has been transferred is 351 Km.
Thirdly, displaying a transmission prompt message in a transmission interface, such as: "currently transmitting, please later".
It should be noted that the three schemes described above are merely exemplary, and the specific display content of the transmission interface is not limited in the embodiment of the present application.
In response to the transfer animation being played, the first virtual object is transferred to the designated location in the virtual environment, step 805.
In some embodiments, when the transfer animation is played completely, the transfer of the current first virtual object to the picture at the specified position is rendered completely; or, the simulation transmission progress reaches the preset duration, so that the picture of the first virtual object transmitted to the appointed position is displayed, and the process of transmitting the first virtual object to the appointed position in the virtual environment is completed.
To sum up, the interaction method for virtual objects in a virtual environment according to the embodiment of the present application performs near field communication based on the distance between the first terminal and the second terminal, and displays the second account that can be used as a transmission target when the distance is within the near field communication range, thereby controlling the first virtual object to be transmitted to the periphery of the second virtual object, improving the transmission efficiency of the first virtual object, and improving the interaction efficiency and diversity between the first virtual object and the second virtual object.
The method provided by the embodiment performs transition display on the transmission process by displaying the transmission interface, that is, the transmission interface in the transmission process is displayed when the first virtual object is located between the transmission initial place and the designated position, so that the transmission process is alleviated, the transmission process is prevented from being harsh, the picture rendering time of the transmission result is provided, and the display of the whole transmission span range is provided.
In some embodiments, in determining the designated position, it is necessary to first determine the transfer range based on the second virtual object, thereby determining the designated position in the transfer range. Fig. 11 is a flowchart of an interaction method for a virtual object in a virtual environment according to another exemplary embodiment of the present application, which is described by taking the method as an example for being applied to a terminal, and as shown in fig. 11, the method includes:
step 1101, displaying a near field account number prompting control.
The virtual environment comprises a first virtual object corresponding to a first account logged in by a current first terminal, the near field account prompting control is used for indicating that a second account logged on a second terminal exists in a near field distance range of the first terminal, and the second virtual object corresponding to the second account is in the virtual environment.
The first terminal and the second terminal are both provided with the near field communication technology, namely, the first terminal can send an NFC signal to the second terminal, and the second terminal can receive the NFC signal sent by the first terminal.
Please refer to fig. 12, which is a schematic diagram illustrating a process of NFC interaction according to an exemplary embodiment of the present application. As shown in fig. 12, an NFC initiator 1210 and an NFC target 1220 are first included, and an electromagnetic Frequency (RF) field transmission module 1211 (also referred to as a Radio Frequency) of the NFC initiator 1210 transmits data information for identification to an RF field response module 1221 of the NFC target 1220, so that a data reading module 1222 of the NFC target 1220 responds the data information to the NFC initiator 1210 and transmits the data information to a data writing module 1212. Namely, one data interaction between the NFC initiator 1210 and the NFC target 1220 is realized.
In some embodiments, the first account and the second account are accounts establishing a relationship, and illustratively, the first account and the second account are friend accounts in the application; or, the first account and the second account do not have an association relationship, and are only accounts logged in on two terminals within the near field distance range.
In this embodiment, the near field account number prompting control is displayed in the form of bubbles for example.
Step 1102, receiving a selection operation of a second account based on the near field account prompting control.
The selection operation is used for indicating the first account to select to transmit the first virtual object to the second virtual object peripheral side corresponding to the second account.
Step 1103, determining a transmission result range with the required distance range as a radius based on the selection operation with the second virtual object as a center.
Since the transfer process requires transfer of the first virtual object to the peripheral side of the second virtual object, it is necessary to determine a transfer result range centered around the second virtual object first, thereby ensuring transfer of the first virtual object to the peripheral side of the second virtual object.
Illustratively, if the required distance range is 5 meters, a circular range centered on the second virtual object and having a radius of 5 meters is determined as the transmission result range.
And step 1104, randomly determining a designated position in the transmission result range, and transmitting the first virtual object to the designated position.
In some embodiments, since there is a position in the virtual environment where a virtual object such as a sea surface, a slope, a cliff, or the like cannot reach, when determining the specified position within the transfer result range, a lock area for indicating an area from which the first virtual object is excluded when determining the transfer termination point (or the specified position) is first determined within the transfer result range, an area other than the lock area within the transfer result range is determined as a transfer target area, and the specified position is randomly determined within the transfer target area.
When the locking area is determined, firstly, the configuration parameters of the ground surface layer within the transmission result range are obtained, wherein the configuration parameters comprise at least one of ground surface materials, ground height and ground inclination. A lock-in zone is determined based on the configuration parameters.
Schematically, collision detection is carried out on the ground from a preset height within a transmission result range in a virtual environment, a ground structure is constructed according to a detection result, ground configuration parameters are obtained, and in response to the fact that ground surface materials are sea surfaces, mud and reefs, the ground structure is listed as a locking area; or, in response to the ground height reaching the first required height, listing as a locking area; or, in response to the ground height being less than the second required height, listing as a locking area, the first required height being greater than the second required height; or, in response to the ground inclination being greater than the desired inclination, listing as a locked area.
The above is merely an illustrative example of the locking region determination process, and the determination process of the locking region is not limited in the embodiment of the present application.
To sum up, the interaction method for virtual objects in a virtual environment according to the embodiment of the present application performs near field communication based on the distance between the first terminal and the second terminal, and displays the second account that can be used as a transmission target when the distance is within the near field communication range, thereby controlling the first virtual object to be transmitted to the periphery of the second virtual object, improving the transmission efficiency of the first virtual object, and improving the interaction efficiency and diversity between the first virtual object and the second virtual object.
In the method provided by the embodiment, when the designated position is determined, the position where the second virtual object is located is taken as the center, the designated position is determined within the required distance range, and the locking area is excluded to determine the designated position, so that the determination accuracy of the designated position is improved, and the first virtual object is prevented from being transmitted to the position which is not beneficial to the life value or the attribute value.
Schematically, fig. 13 is an overall flowchart provided in an exemplary embodiment of the present application, and as shown in fig. 13, the process includes:
in step 1301, the player logs into the game.
That is, the player logs into an account in the gaming application. Wherein the game application provides a virtual environment based game.
Step 1302, detect whether there is an online player within the range of the surrounding near-field distance.
Optionally, when the time length for the player to log in the game is within the required time length, the detection signal is sent through the NFC communication technology, and whether an online player exists is determined based on the received response signal.
And step 1303, displaying a bubble prompt if the online player exists.
And when the online player exists, displaying bubbles in the virtual environment interface for prompting that online friends exist in the current near-field distance range.
In step 1304, it is determined whether to click on the bubble.
Step 1305, when the bubble is clicked, a nearby buddy list is displayed.
And when the bubble is not clicked, ending the detection when the display time length reaches the required time length, and canceling the display of the bubble.
Step 1306, judging whether to click the head portrait of the friend.
Step 1307, when the head portrait of the friend is clicked, the head portrait of the friend is transmitted to the target coordinate corresponding to the friend.
When the clicking operation of the head portrait of the friend is received, the virtual object controlled by the current terminal is selected to be transmitted to the peripheral side of the friend, so that the target coordinate is determined on the peripheral side of the virtual object of the friend, and the main control virtual object is transmitted to the target coordinate.
Step 1308, end detection, bubble disappearance.
To sum up, the interaction method for virtual objects in a virtual environment according to the embodiment of the present application performs near field communication based on the distance between the first terminal and the second terminal, and displays the second account that can be used as a transmission target when the distance is within the near field communication range, thereby controlling the first virtual object to be transmitted to the periphery of the second virtual object, improving the transmission efficiency of the first virtual object, and improving the interaction efficiency and diversity between the first virtual object and the second virtual object.
Fig. 14 is a block diagram illustrating a structure of an apparatus for interacting a virtual object in a virtual environment according to an exemplary embodiment of the present application, where the apparatus, as shown in fig. 14, includes:
a display module 1410, configured to display a near-field account number prompting control, where the virtual environment includes a first virtual object corresponding to a first account number logged in by a current first terminal, and the near-field account number prompting control is used to indicate that a second account number is logged in a second terminal within a near-field distance range of the first terminal, and the second virtual object corresponding to the second account number is in the virtual environment;
a receiving module 1420, configured to receive a selection operation on the second account based on the near-field account prompting control;
the display module 1410 is further configured to transmit the first virtual object to a specified location in the virtual environment based on the selection operation, the specified location being within a required distance range centered on the second virtual object.
In an optional embodiment, the receiving module 1420 is further configured to receive a triggering operation on the near field account prompting control;
the display module 1410 is further configured to display an account selection bar based on the trigger operation, where the account selection bar includes at least one second account;
the receiving module 1420 is further configured to receive the selection operation on the account selection bar for the target second account, where the specified location is located within a required distance range centered on a target second virtual object, and the target second virtual object is a virtual object corresponding to the target second account.
In an optional embodiment, the receiving module 1420 is further configured to receive a sliding operation in a first direction in the account selection bar, where the first direction is an arrangement direction of the second account in the account selection bar, and the sliding operation is configured to move the second account outside a display range of the account selection bar into the display range;
the receiving module 1420 is further configured to receive the selection operation on the target second account in response to the target second account being visible in the account selection bar.
In an optional embodiment, the display module 1410 is further configured to display a transmission interface based on the selection operation;
the display module 1410 is further configured to display, in the transfer interface, a transfer animation of the first virtual object in the transfer process; in response to the transfer animation being played, transferring the first virtual object to the designated location in the virtual environment.
In an optional embodiment, the display module 1410 is further configured to display a map transmission background in the transmission interface, where the map transmission background is marked with a transmission initial location and a transmission termination location of the first virtual object;
the display module 1410 is further configured to display a position movement animation between the transfer initiation location and the transfer termination location, where the position movement animation is used to simulate a position movement of the first virtual object between the transfer initiation location and the transfer termination location.
In an optional embodiment, an association relationship is established between the first account and the second account.
In an optional embodiment, the receiving module 1420 is further configured to receive a game starting signal, where the game starting signal is used to start a virtual game in which the first virtual object participates in the virtual environment; starting a timer based on the game start signal, the timer indicating a duration of time for which the first virtual object participates in the virtual game;
as shown in fig. 15, the apparatus further includes:
an obtaining module 1430, configured to obtain, in response to that the timing duration of the timer is within a required duration range, an existence condition of the second terminal within a near-field distance range of the first terminal;
a determining module 1440 configured to determine that the second terminal is present within the near-field distance range of the first terminal.
In an optional embodiment, the apparatus further comprises:
a sending module 1450, configured to send a detection signal through a short-range wireless communication technology, where the detection signal is used to detect the second terminal logged with the second account;
the receiving module 1420 is further configured to determine, in response to receiving a response signal of the second terminal, that the second terminal exists within the near-field distance range of the first terminal, where the response signal is a signal fed back by the second terminal when the second terminal logs in the second account and the second virtual object is located in the virtual environment.
In an optional embodiment, the apparatus further comprises:
a determining module 1440 for determining a transmission result range based on the selecting operation centering on the second virtual object and the required distance range being a radius; and randomly determining the specified position within the transmission result range, and transmitting the first virtual object to the specified position.
In an optional embodiment, the determining module 1440 is further configured to determine a locking area within the range of the transmission result, where the locking area is used to indicate an area where the first virtual object is excluded when determining the transmission termination location;
the determining module 1440 is further configured to determine an area within the transmission result range other than the lock area as a transmission target area; the specified position is randomly determined within the transfer target area.
In an optional embodiment, the apparatus further comprises:
an obtaining module 1430, configured to obtain configuration parameters of the surface layer within the range of the transmission result, where the configuration parameters include at least one of a surface material, a ground height, and a ground inclination;
the determining module 1440, further configured to determine the locking region based on the configuration parameter.
In an optional embodiment, the display module 1410 is further configured to display, in response to the first virtual object being transferred to the designated location during the transfer process, a transfer identifier at a preset location corresponding to the second virtual object, where the transfer identifier is used to indicate that there is a transfer of the virtual object to the second virtual object.
To sum up, the interaction apparatus for a virtual object in a virtual environment according to the embodiments of the present application performs near field communication based on a distance between a first terminal and a second terminal, and displays a second account that can be a transmission target when the distance is within a near field communication range, thereby controlling the first virtual object to be transmitted to the periphery of the second virtual object, improving the transmission efficiency of the first virtual object, and improving the interaction efficiency and diversity between the first virtual object and the second virtual object.
It should be noted that: the interaction device for virtual objects in a virtual environment provided in the above embodiments is only illustrated by the division of the above functional modules, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above description.
The application further provides a terminal, which includes a processor and a memory, where the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the steps executed by the first terminal or the steps executed by the second terminal of the method for interacting the virtual object in the virtual environment provided by the above-mentioned method embodiments. It should be noted that the terminal may be a terminal as provided in fig. 16 below.
Fig. 16 shows a block diagram of an electronic device 1600 provided in an exemplary embodiment of the present application. The electronic device 1600 may be a portable mobile terminal, such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Electronic device 1600 may also be referred to by other names such as user equipment, portable terminals, laptop terminals, desktop terminals, and the like.
Generally, the electronic device 1600 includes: a processor 1601, and a memory 1602.
Processor 1601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 1601 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). Processor 1601 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also referred to as a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, the processor 1601 may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
Memory 1602 may include one or more computer-readable storage media, which may be non-transitory. The memory 1602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1602 is used to store at least one instruction for execution by processor 1601 to implement a method for interaction of virtual objects in a virtual environment as provided by method embodiments herein.
In some embodiments, the electronic device 1600 may further optionally include: peripheral interface 1603 and at least one peripheral. Processor 1601, memory 1602 and peripheral interface 1603 may be connected by buses or signal lines. Various peripheral devices may be connected to peripheral interface 1603 via buses, signal lines, or circuit boards. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1604, a display 1605, a camera assembly 1606, audio circuitry 1607, a positioning assembly 1608, and a power supply 1609.
Peripheral interface 1603 can be used to connect at least one I/O (Input/Output) related peripheral to processor 1601 and memory 1602. In some embodiments, processor 1601, memory 1602, and peripheral interface 1603 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1601, the memory 1602 and the peripheral device interface 1603 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The Radio Frequency circuit 1604 is used for receiving and transmitting RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1604 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 1604 converts the electrical signal into an electromagnetic signal to be transmitted, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1604 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuit 1604 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the rf circuit 1604 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display 1605 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1605 is a touch display screen, the display screen 1605 also has the ability to capture touch signals on or over the surface of the display screen 1605. The touch signal may be input to the processor 1601 as a control signal for processing. At this point, the display 1605 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 1605 may be one, disposed on the front panel of the electronic device 1600; in other embodiments, the display screens 1605 may be at least two, respectively disposed on different surfaces of the electronic device 1600 or in a folded design; in other embodiments, the display 1605 may be a flexible display disposed on a curved surface or on a folded surface of the electronic device 1600. Even further, the display 1605 may be arranged in a non-rectangular irregular pattern, i.e., a shaped screen. The Display 1605 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or other materials.
The camera assembly 1606 is used to capture images or video. Optionally, camera assembly 1606 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1606 can also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuitry 1607 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1601 for processing or inputting the electric signals to the radio frequency circuit 1604 to achieve voice communication. For the purpose of stereo sound collection or noise reduction, a plurality of microphones may be provided at different portions of the electronic device 1600. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1601 or the radio frequency circuit 1604 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, the audio circuit 1607 may also include a headphone jack.
The positioning component 1608 is configured to locate a current geographic Location of the electronic device 1600 for navigation or LBS (Location Based Service). The Positioning component 1608 may be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.
Power supply 1609 is used to power the various components in electronic device 1600. Power supply 1609 may be alternating current, direct current, disposable or rechargeable. When power supply 1609 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the electronic device 1600 also includes one or more sensors 1610. The one or more sensors 1610 include, but are not limited to: acceleration sensor 1611, gyro sensor 1612, pressure sensor 1613, fingerprint sensor 1614, optical sensor 1615, and proximity sensor 1616.
The acceleration sensor 1611 may detect acceleration magnitudes on three coordinate axes of a coordinate system established with the electronic device 1600. For example, the acceleration sensor 1611 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 1601 may control the display screen 1605 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1611. The acceleration sensor 1611 may also be used for acquisition of motion data of a game or a user.
Gyroscope sensor 1612 can detect the organism direction and turned angle of electronic equipment 1600, and gyroscope sensor 1612 can gather the 3D action of user to electronic equipment 1600 with acceleration sensor 1611 in coordination. From the data collected by the gyro sensor 1612, the processor 1601 may perform the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensor 1613 may be disposed on a side bezel of the electronic device 1600 and/or underlying the display 1605. When the pressure sensor 1613 is disposed on the side frame of the electronic device 1600, the holding signal of the user to the electronic device 1600 can be detected, and the processor 1601 performs left-right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1613. When the pressure sensor 1613 is disposed at the lower layer of the display 1605, the processor 1601 controls the operability control on the UI interface according to the pressure operation of the user on the display 1605. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1614 is configured to collect a fingerprint of the user, and the processor 1601 is configured to identify the user based on the fingerprint collected by the fingerprint sensor 1614, or the fingerprint sensor 1614 is configured to identify the user based on the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 1601 authorizes the user to perform relevant sensitive operations including unlocking a screen, viewing encrypted information, downloading software, paying for and changing settings, etc. The fingerprint sensor 1614 may be disposed on the front, back, or side of the electronic device 1600. When a physical button or vendor Logo is provided on the electronic device 1600, the fingerprint sensor 1614 may be integrated with the physical button or vendor Logo.
The optical sensor 1615 is used to collect ambient light intensity. In one embodiment, the processor 1601 may control the display brightness of the display screen 1605 based on the ambient light intensity collected by the optical sensor 1615. Specifically, when the ambient light intensity is high, the display luminance of the display screen 1605 is increased; when the ambient light intensity is low, the display brightness of the display screen 1605 is adjusted down. In another embodiment, the processor 1601 may also dynamically adjust the shooting parameters of the camera assembly 1606 based on the ambient light intensity collected by the optical sensor 1615.
A proximity sensor 1616, also referred to as a distance sensor, is typically disposed on the front panel of the electronic device 1600. The proximity sensor 1616 is used to capture the distance between the user and the front of the electronic device 1600. In one embodiment, the processor 1601 controls the display 1605 to switch from the bright screen state to the dark screen state when the proximity sensor 1616 detects that the distance between the user and the front surface of the electronic device 1600 is gradually decreased; when the proximity sensor 1616 detects that the distance between the user and the front surface of the electronic device 1600 is gradually increased, the display 1605 is controlled by the processor 1601 to switch from a breath-screen state to a bright-screen state.
Those skilled in the art will appreciate that the configuration shown in fig. 16 does not constitute a limitation of the electronic device 1600, and may include more or fewer components than those shown, or combine certain components, or employ a different arrangement of components.
The present application provides a computer-readable storage medium, in which at least one instruction is stored, and the at least one instruction is loaded and executed by the processor to implement the method for interacting a virtual object in a virtual environment provided by the above method embodiments.
The present application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method for interacting the virtual objects in the virtual environment as described in any of the above embodiments.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (19)

1. A method for interaction of virtual objects in a virtual environment, the method comprising:
displaying a near field account number prompting control, wherein the virtual environment comprises a first virtual object corresponding to a first account number logged in by a current first terminal, the near field account number prompting control is used for indicating that a second account number is logged on a second terminal within a near field distance range of the first terminal, and the second virtual object corresponding to the second account number is in the virtual environment;
receiving a selection operation of the second account based on the near field account prompting control;
transferring the first virtual object in the virtual environment to a specified location within a required distance range centered on the second virtual object based on the selection operation.
2. The method of claim 1, wherein receiving a selection operation of the second account based on the near field account prompting control comprises:
receiving a trigger operation on the near field account prompting control;
displaying an account selection bar based on the triggering operation, wherein the account selection bar comprises at least one second account;
receiving the selection operation of the target second account on the account selection bar, wherein the specified position is located in a required distance range taking a target second virtual object as a center, and the target second virtual object is a virtual object corresponding to the target second account.
3. The method of claim 2, wherein receiving the selection operation of the target second account on the account selection bar further comprises:
receiving a sliding operation in a first direction in the account selection bar, wherein the first direction is the arrangement direction of the second accounts in the account selection bar, and the sliding operation is used for moving the second accounts which are out of the display range of the account selection bar into the display range;
receiving the selection operation on the target second account in response to the target second account being visible within the account selection bar.
4. The method of any of claims 1 to 3, wherein said transferring said first virtual object in said virtual environment to a specified location based on said selecting comprises:
displaying a transmission interface based on the selection operation;
displaying a transfer animation of the first virtual object in the transfer process in the transfer interface;
in response to the transfer animation being played, transferring the first virtual object to the designated location in the virtual environment.
5. The method of claim 4, wherein displaying a transfer animation of the first virtual object during the transfer in the transfer interface comprises:
displaying a map transfer background in the transfer interface, the map transfer background having a transfer initiation location and a transfer termination location of the first virtual object marked therein;
displaying a position movement animation between the transfer initiation location and the transfer termination location, the position movement animation simulating a position movement of the first virtual object between the transfer initiation location and the transfer termination location.
6. The method according to any one of claims 1 to 3,
and establishing an association relationship between the first account and the second account.
7. The method of any one of claims 1 to 3, wherein before displaying the near field account prompting control, the method further comprises:
receiving a game starting signal, wherein the game starting signal is used for starting a virtual game in which the first virtual object participates in the virtual environment;
starting a timer based on the game start signal, the timer indicating a duration of time for which the first virtual object participates in the virtual game;
responding to the fact that the timing duration of the timer is within the required duration range, and acquiring the existence condition of the second terminal within the near field distance range of the first terminal;
and determining that the second terminal exists within the near-field distance range of the first terminal.
8. The method of any of claims 1 to 3, further comprising:
sending a detection signal through a short-distance wireless communication technology, wherein the detection signal is used for detecting the second terminal logged with the second account;
and responding to a response signal received from the second terminal, and determining that the second terminal exists in the near-field distance range of the first terminal, wherein the response signal is a signal fed back by the second terminal when the second terminal logs in the second account and the second virtual object is located in the virtual environment.
9. The method of any of claims 1 to 3, wherein said transferring said first virtual object in said virtual environment to a specified location based on said selecting comprises:
determining a transmission result range based on the selection operation centering on the second virtual object and the required distance range being a radius;
and randomly determining the specified position within the transmission result range, and transmitting the first virtual object to the specified position.
10. The method of claim 9, wherein said randomly determining the designated location within the range of transmission results comprises:
determining a lock area within the range of the transmission result, the lock area indicating an area where the first virtual object is excluded when determining the transmission termination point;
determining an area other than the lock area within the transmission result range as a transmission target area;
the specified position is randomly determined within the transfer target area.
11. The method of claim 10, wherein determining a lock zone within the range of transmission results comprises:
acquiring configuration parameters of the surface layer within the transmission result range, wherein the configuration parameters comprise at least one of surface material, ground height and ground inclination;
determining the locking region based on the configuration parameters.
12. The method of any of claims 1 to 3, further comprising:
and in response to the transmission process of the first virtual object to the designated position, displaying a transmission identifier at a preset position corresponding to the second virtual object, wherein the transmission identifier is used for indicating that the virtual object is transmitted to the second virtual object.
13. An apparatus for interacting a virtual object in a virtual environment, the apparatus comprising:
the display module is used for displaying a near field account prompting control, the virtual environment comprises a first virtual object corresponding to a first account logged in by a current first terminal, the near field account prompting control is used for indicating that a second account is logged in a second terminal within a near field distance range of the first terminal, and the second virtual object corresponding to the second account is located in the virtual environment;
the receiving module is used for receiving selection operation of the second account based on the near field account prompting control;
the display module is further configured to transmit the first virtual object to a specified location in the virtual environment based on the selection operation, the specified location being within a required distance range centered on the second virtual object.
14. The apparatus of claim 13, wherein the receiving module is further configured to receive a triggering operation on the near-field account number prompting control;
the display module is further configured to display an account selection bar based on the trigger operation, where the account selection bar includes at least one second account;
the receiving module is further configured to receive the selection operation on the second target account on the account selection bar, where the specified position is located within a required distance range centered on a second target virtual object, and the second target virtual object is a virtual object corresponding to the second target account.
15. The apparatus according to claim 14, wherein the receiving module is further configured to receive a sliding operation in a first direction in the account selection bar, where the first direction is an arrangement direction of the second account in the account selection bar, and the sliding operation is configured to move the second account outside a display range of the account selection bar into the display range;
the receiving module is further configured to receive the selection operation on the target second account in response to the target second account being visible in the account selection bar.
16. The apparatus according to any one of claims 13 to 15, wherein the display module is further configured to display a transmission interface based on the selection operation;
the display module is further used for displaying the transmission animation of the first virtual object in the transmission process in the transmission interface; in response to the transfer animation being played, transferring the first virtual object to the designated location in the virtual environment.
17. The apparatus of claim 16, wherein the display module is further configured to display a map transmission background in the transmission interface, the map transmission background being marked with a transmission initial location and a transmission ending location of the first virtual object;
the display module is further configured to display a position movement animation between the transfer initiation location and the transfer termination location, where the position movement animation is used to simulate a position movement of the first virtual object between the transfer initiation location and the transfer termination location.
18. A computer device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement a method of interaction of virtual objects in a virtual environment as claimed in any one of claims 1 to 12.
19. A computer-readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement a method of interaction of virtual objects in a virtual environment according to any one of claims 1 to 12.
CN202011497131.7A 2020-12-17 2020-12-17 Interaction method, device, equipment and storage medium of virtual object in virtual environment Active CN112604302B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011497131.7A CN112604302B (en) 2020-12-17 2020-12-17 Interaction method, device, equipment and storage medium of virtual object in virtual environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011497131.7A CN112604302B (en) 2020-12-17 2020-12-17 Interaction method, device, equipment and storage medium of virtual object in virtual environment

Publications (2)

Publication Number Publication Date
CN112604302A true CN112604302A (en) 2021-04-06
CN112604302B CN112604302B (en) 2022-08-26

Family

ID=75240991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011497131.7A Active CN112604302B (en) 2020-12-17 2020-12-17 Interaction method, device, equipment and storage medium of virtual object in virtual environment

Country Status (1)

Country Link
CN (1) CN112604302B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113144608A (en) * 2021-04-22 2021-07-23 网易(杭州)网络有限公司 Message sending method, device, equipment and storage medium
WO2024027344A1 (en) * 2022-08-05 2024-02-08 腾讯科技(深圳)有限公司 Social interaction method and apparatus, device, readable storage medium, and program product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511763A (en) * 2016-02-02 2016-04-20 上海逗屋网络科技有限公司 Method and device for moving target object based on touch control operation
US20170354892A1 (en) * 2016-06-13 2017-12-14 Sony Interactive Entertainment LLC In-game location based game play companion application
CN109806583A (en) * 2019-01-24 2019-05-28 腾讯科技(深圳)有限公司 Method for displaying user interface, device, equipment and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105511763A (en) * 2016-02-02 2016-04-20 上海逗屋网络科技有限公司 Method and device for moving target object based on touch control operation
US20170354892A1 (en) * 2016-06-13 2017-12-14 Sony Interactive Entertainment LLC In-game location based game play companion application
CN109806583A (en) * 2019-01-24 2019-05-28 腾讯科技(深圳)有限公司 Method for displaying user interface, device, equipment and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113144608A (en) * 2021-04-22 2021-07-23 网易(杭州)网络有限公司 Message sending method, device, equipment and storage medium
CN113144608B (en) * 2021-04-22 2024-02-02 网易(杭州)网络有限公司 Message sending method, device, equipment and storage medium
WO2024027344A1 (en) * 2022-08-05 2024-02-08 腾讯科技(深圳)有限公司 Social interaction method and apparatus, device, readable storage medium, and program product

Also Published As

Publication number Publication date
CN112604302B (en) 2022-08-26

Similar Documents

Publication Publication Date Title
CN110755841B (en) Method, device and equipment for switching props in virtual environment and readable storage medium
CN111035918B (en) Reconnaissance interface display method and device based on virtual environment and readable storage medium
CN112494955B (en) Skill releasing method, device, terminal and storage medium for virtual object
CN112704883B (en) Method, device, terminal and storage medium for grouping virtual objects in virtual environment
CN110141859B (en) Virtual object control method, device, terminal and storage medium
WO2019205881A1 (en) Method and apparatus for displaying information in virtual environment, device, and storage medium
CN111013142B (en) Interactive effect display method and device, computer equipment and storage medium
CN111414080B (en) Method, device and equipment for displaying position of virtual object and storage medium
CN111921197B (en) Method, device, terminal and storage medium for displaying game playback picture
CN111589127B (en) Control method, device and equipment of virtual role and storage medium
CN110694273A (en) Method, device, terminal and storage medium for controlling virtual object to use prop
CN110496392B (en) Virtual object control method, device, terminal and storage medium
CN109634413B (en) Method, device and storage medium for observing virtual environment
CN112691370B (en) Method, device, equipment and storage medium for displaying voting result in virtual game
CN111596838B (en) Service processing method and device, computer equipment and computer readable storage medium
CN111672104A (en) Virtual scene display method, device, terminal and storage medium
CN111744185A (en) Virtual object control method and device, computer equipment and storage medium
CN112604302B (en) Interaction method, device, equipment and storage medium of virtual object in virtual environment
CN109806583B (en) User interface display method, device, equipment and system
CN111589116A (en) Method, device, terminal and storage medium for displaying function options
CN110833695A (en) Service processing method, device, equipment and storage medium based on virtual scene
CN112156471B (en) Skill selection method, device, equipment and storage medium of virtual object
CN113289336A (en) Method, apparatus, device and medium for tagging items in a virtual environment
CN111035929B (en) Elimination information feedback method, device, equipment and medium based on virtual environment
CN113457173A (en) Remote teaching method, device, computer equipment and storage medium

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40043408

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant