CN113457141A - Resource processing method and device, storage medium and electronic equipment - Google Patents
Resource processing method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN113457141A CN113457141A CN202110834163.XA CN202110834163A CN113457141A CN 113457141 A CN113457141 A CN 113457141A CN 202110834163 A CN202110834163 A CN 202110834163A CN 113457141 A CN113457141 A CN 113457141A
- Authority
- CN
- China
- Prior art keywords
- virtual
- virtual space
- user account
- target user
- target
- 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
Links
- 238000003672 processing method Methods 0.000 title abstract description 23
- 238000000034 method Methods 0.000 claims abstract description 81
- 238000012545 processing Methods 0.000 claims abstract description 44
- 230000001960 triggered effect Effects 0.000 claims abstract description 16
- 230000004044 response Effects 0.000 claims abstract description 11
- 230000015654 memory Effects 0.000 claims description 30
- 238000004590 computer program Methods 0.000 claims description 17
- 238000005516 engineering process Methods 0.000 abstract description 5
- 230000008569 process Effects 0.000 description 28
- 230000003993 interaction Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 10
- 238000004088 simulation Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 238000012546 transfer Methods 0.000 description 5
- 238000010276 construction Methods 0.000 description 4
- 230000003068 static effect Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000008034 disappearance Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000001976 improved effect Effects 0.000 description 3
- 230000002829 reductive effect Effects 0.000 description 3
- 239000002689 soil Substances 0.000 description 3
- 238000005034 decoration Methods 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000007935 neutral effect Effects 0.000 description 2
- 230000000242 pagocytic effect Effects 0.000 description 2
- 230000036961 partial effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 229910000831 Steel Inorganic materials 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000004568 cement Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000000670 limiting effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 239000002994 raw material Substances 0.000 description 1
- 239000010959 steel Substances 0.000 description 1
- 230000008093 supporting effect Effects 0.000 description 1
- 239000013077 target material Substances 0.000 description 1
- 238000012549 training Methods 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/52—Controlling the output signals based on the game progress involving aspects of the displayed game scene
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/55—Controlling game characters or game objects based on the game progress
- A63F13/57—Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game
- A63F13/577—Simulating properties, behaviour or motion of objects in the game world, e.g. computing tyre load in a car race game using determination of contact between game characters or objects, e.g. to avoid collision between virtual racing cars
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
- A63F13/63—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by the player, e.g. authoring using a level editor
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/70—Game security or game management aspects
- A63F13/77—Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Business, Economics & Management (AREA)
- Computer Security & Cryptography (AREA)
- General Business, Economics & Management (AREA)
- Processing Or Creating Images (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a resource processing method and device, a storage medium and electronic equipment. Wherein, the method comprises the following steps: displaying a first virtual space occupied by a target user account in a virtual scene and a second virtual space occupied by a virtual account in the virtual scene in a current client; in response to an operation performed on the first virtual space, controlling the first virtual space to move according to a target track; when the first virtual space and the second virtual space collide, a countermeasure task between the target user account and the virtual account is triggered; and under the condition that the task result of the countermeasure task indicates that the target user account is located in the battle camp rather than the virtual account, allocating target virtual material resources for the target user account, and displaying animation for expanding the first virtual space by using the target virtual material resources. The invention solves the technical problem that the resource processing mode in the related technology is single.
Description
Technical Field
The present invention relates to the field of computers, and in particular, to a resource processing method and apparatus, a storage medium, and an electronic device.
Background
Many competing gaming applications today often come with "phagocytic", "absorptive", etc. designs. In these game applications, players can achieve the goal of destroying opponents and promoting themselves by phagocytosing the resources occupied by opponents to win game wins.
However, in the above game application provided by the related art, the two parties complete the game task by directly preempting the resources of the other parties, and these preempted resources are often only used for identifying the state of the player currently in the game process. That is, the processing method of the virtual resource in the related art has a single problem.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a resource processing method and device, a storage medium and electronic equipment, which at least solve the technical problem that a resource processing mode in the related technology is single.
According to an aspect of an embodiment of the present invention, there is provided a resource processing method, including: displaying a first virtual space occupied by a target user account in a virtual scene and a second virtual space occupied by a virtual account in the virtual scene in a current client, wherein the target user account and the virtual account belong to different marketing, and virtually constructing an object in a simulated real scene in the virtual space; responding to the operation executed on the first virtual space, and controlling the first virtual space to move according to a target track; triggering a countermeasure task between the target user account and the virtual account when the first virtual space collides with the second virtual space; and under the condition that the task result of the confrontation task indicates that the battle of the target user account is in conflict with the battle of the virtual account, allocating target virtual material resources to the target user account, and displaying animation for expanding the first virtual space by using the target virtual material resources.
According to another aspect of the embodiments of the present invention, there is also provided a resource processing method, including: acquiring a task result of completing a countermeasure task by using a target user account in a current client, wherein the countermeasure task is a task between the target user account and a virtual account, and the target user account and the virtual account belong to different camps; distributing virtual material resources for the target user account under the condition that the task result indicates that the target user account is in a battle camp over the virtual account; and expanding a first virtual space occupied by the target user account in the virtual scene by using the virtual material resources, wherein an object simulating a real scene is virtually constructed in the first virtual space.
According to another aspect of the embodiments of the present invention, there is provided a resource processing apparatus, where the first display unit is configured to display, in a current client, a first virtual space occupied by a target user account in a virtual scene and a second virtual space occupied by a virtual account in the virtual scene, where the target user account and the virtual account belong to different camps, and an object in a simulated real scene is virtually built in the virtual space; a control unit configured to control the first virtual space to move according to a target trajectory in response to an operation performed on the first virtual space; a triggering unit, configured to trigger a countermeasure task between the target user account and the virtual account when the first virtual space and the second virtual space collide with each other; and the processing unit is used for distributing target virtual material resources to the target user account and displaying animation for expanding the first virtual space by using the target virtual material resources under the condition that the task result of the confrontation task indicates that the target user account is positioned in the battle camp over the virtual account.
According to another aspect of the embodiments of the present invention, there is also provided a resource processing apparatus, including: an obtaining unit, configured to obtain a task result of completing a countermeasure task by using a target user account in a current client, where the countermeasure task is a task between the target user account and a virtual account, and the target user account and the virtual account belong to different camps; the allocation unit is used for allocating virtual material resources to the target user account under the condition that the task result indicates that the marketing of the target user account exceeds the marketing of the virtual account; and the processing unit is used for expanding a first virtual space occupied by the target user account in the virtual scene by using the virtual material resources, wherein an object in a simulated real scene is virtually constructed in the first virtual space.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the above resource processing method when running.
According to still another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory and a processor, where the memory stores therein a computer program, and the processor is configured to execute the resource processing method described above through the computer program.
In the embodiment of the invention, in the virtual scene with the virtual space, the confrontation task is triggered to distribute the target virtual material resources for expanding the virtual space as reward resources to the winning target user account, so as to assist the target user account to utilize the target virtual material resources to complete the further expansion of the virtual space in the virtual scene, and the virtual material resources are not only used as the static attribute data of the user account, thereby realizing the processing mode of the resources, expanding the acquisition channel of the virtual material resources and further overcoming the problem of the single resource processing mode in the related technology.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of a hardware environment for an alternative resource handling method according to an embodiment of the invention;
FIG. 2 is a flow diagram of an alternative resource handling method according to an embodiment of the invention;
FIG. 3 is a schematic diagram of an alternative resource handling method according to an embodiment of the invention;
FIG. 4 is a schematic diagram of an alternative resource handling method according to an embodiment of the invention;
FIG. 5 is a schematic diagram of yet another alternative resource handling method according to an embodiment of the invention;
FIG. 6 is a schematic diagram of yet another alternative resource handling method according to an embodiment of the invention;
FIG. 7 is a schematic diagram of yet another alternative resource handling method according to an embodiment of the invention;
FIG. 8 is a flow diagram of an alternative resource handling method according to an embodiment of the invention;
FIG. 9 is a schematic structural diagram of an alternative resource processing apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an alternative resource processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiments of the present invention, a resource processing method is provided, and optionally, as an optional implementation manner, the resource processing method may be applied, but not limited to, to a resource processing system in a hardware environment as shown in fig. 1, where the resource processing system may include, but is not limited to, a terminal device 102, a network 104, a server 106, and a database 108. A target client (for example, a game client as shown in fig. 1) that logs in using a user account is run in the terminal device 102. The terminal device 102 includes a human-computer interaction screen, a processor and a memory. The man-machine interaction screen is used for displaying pictures in a virtual scene (such as a virtual game scene in the simulated operation game shown in FIG. 1); and the system is also used for providing a human-computer interaction interface to receive human-computer interaction operation for completing the confrontation task and the construction task set in the virtual scene. The processor is used for responding the human-computer interaction operation to generate an interaction instruction and sending the interaction instruction to the server. The memory is used for storing related attribute data, such as resource information of virtual material resources held by the user account, space information of occupied virtual space and the like.
In addition, a processing engine is included in server 106 for performing storage or read operations on database 108. Specifically, the processing engine acquires a task result of the countermeasure task, and determines a processing result of the virtual material resource according to the task result.
The specific process comprises the following steps: as shown in steps S102-S106, the terminal device 102 displays, in the current client, a first virtual space (lower right corner shown in (a) in fig. 1) occupied by the target user account (e.g., ID-1) in the virtual scene, and a second virtual space (upper left corner shown in (a) in fig. 1) occupied by the virtual account (e.g., ID-2) in the virtual scene. Here, the target user account and the virtual account belong to different camps. In response to an operation (e.g., a dragging operation shown in fig. 1) performed on the first virtual space, controlling the first virtual space to move according to a target trajectory (e.g., an arrow shown in (a) of fig. 1), and triggering a countermeasure task between a target user account (e.g., ID-1) and a virtual account (e.g., ID-2) when the moved first virtual space collides with the second virtual space, where a countermeasure interface of the countermeasure task may be, but is not limited to, as shown in (b) of fig. 1, where the countermeasure task challenges the virtual account for the target user account to complete an elimination-like game task. Then, the terminal apparatus 102 will execute step S108 to transmit the operation data generated in the countermeasure task to the server 106 via the network 104.
After the server 106 obtains the operation data, in step S110, a task result of the countermeasure task is obtained, and in step S112, when the task result indicates that the camp where the target user account is located is out of camp where the virtual account is located, the target virtual material resource to be allocated is read from the database 108, and the target virtual material resource is allocated to the target user account. Then, as step S114, the resource information of the target virtual material resource is sent to the terminal device 102 through the network 104.
The terminal device 102 expands the first virtual space by using the obtained target virtual material resource, in step S116, an animation of the expansion process is displayed in the terminal device 102, for example, an interface shown in fig. 1 (c), the second virtual space disappears, and the expansion of the first virtual space is completed.
It should be noted that, in this embodiment, a first virtual space occupied by a target user account in a virtual scene and a second virtual space occupied by a virtual account belonging to a different arrangement from the target user account in the virtual scene are displayed in the current client. And responding to the operation executed on the first virtual space, controlling the first virtual space to move according to a target track, and triggering a countermeasure task between the target user account and the virtual account when the first virtual space and the second virtual space collide. And under the condition that the task result of the confrontation task indicates that the marketing of the target user account is in conflict with the marketing of the virtual account, allocating target virtual material resources for the target user account, and displaying animation for expanding the first virtual space by using the target virtual material resources. That is to say, in the virtual scene with the virtual space displayed, the countermeasure task is triggered to distribute the target virtual material resources for expanding the virtual space as reward resources to the winning target user account, so as to assist the target user account to utilize the target virtual material resources to complete further expansion of the virtual space in the virtual scene, and the virtual material resources are no longer just used as the static attribute data of the user account, thereby realizing the processing mode of the resources, expanding the acquisition channel of the virtual material resources, and further overcoming the problem that the resource processing mode is single in the related technology.
Optionally, in this embodiment, the terminal device may be a terminal device configured with a target client, and may include, but is not limited to, at least one of the following: mobile phones (such as Android phones, iOS phones, etc.), notebook computers, tablet computers, palm computers, MID (Mobile Internet Devices), PAD, desktop computers, smart televisions, etc. The target client may be a video client, an instant messaging client, a browser client, an educational client, etc. that supports running a competing game task. Such networks may include, but are not limited to: a wired network, a wireless network, wherein the wired network comprises: a local area network, a metropolitan area network, and a wide area network, the wireless network comprising: bluetooth, WIFI, and other networks that enable wireless communication. The server may be a single server, a server cluster composed of a plurality of servers, or a cloud server. The above is merely an example, and this is not limited in this embodiment.
Optionally, as an optional implementation manner, as shown in fig. 2, the resource processing method is applied to the terminal device 102 shown in fig. 1, and the method may include:
s202, displaying a first virtual space occupied by a target user account in a virtual scene and a second virtual space occupied by a virtual account in the virtual scene in a current client, wherein the target user account and the virtual account belong to different camps, and virtually constructing an object in a simulated real scene in the virtual space;
alternatively, in this embodiment, the current client may be, but not limited to, a Game (Simulation Game, abbreviated as SLG) (hereinafter, may be abbreviated as Simulation Game) Application (APP) that completes a Simulation creation process in a virtual scene. The simulated integrated game can be, but is not limited to, copying various objects and various forms in various 'real' scenes, and achieving the aim of 'training' players. The virtual performance of the simulation game can be used for teaching, and helps students to predict and analyze the conditions such as sudden danger and the like; it can also be used for entertainment experience, experience the arduous and successful pleasure of the trader. The above is merely an example, and the present embodiment is not limited to this.
In addition, in the simulation game provided in the present embodiment, the current player is required to collect virtual material resources simulating a real scene to build a virtual space by a given game task set in the virtual scene. The predetermined game task may be, but is not limited to, a game stage set in a virtual scene to increase interactivity of the game by completing an interactive operation in the task, where the game stage may be, but is not limited to, a confrontation task configured with a corresponding difficulty coefficient, such as a confrontation task between a Player and a Player (Player Vs Player, PVP for short), and a confrontation task between players and an Environment (Player Vs Environment, PVE for short). The virtual space may include, but is not limited to, a virtual city, a virtual island, a virtual garden, a virtual campus, a virtual workplace, etc. that supports the virtual objects to perform a simulation run in the virtual space. The virtual material resources used to build the virtual space may include, but are not limited to: raw materials of land, infrastructure materials (such as steel bars, cement and the like), food materials and the like.
S204, responding to the operation executed on the first virtual space, and controlling the first virtual space to move according to the target track;
optionally, in this embodiment, the operation performed on the displayed first virtual space may include, but is not limited to: and a touch screen operation or a gesture operation for adjusting the movement track of the first virtual space by dragging operation, long-time pressing of the adjustment direction and then transmitting operation and the like.
S206, when the first virtual space collides with the second virtual space, a countermeasure task between the target user account and the virtual account is triggered;
optionally, in this embodiment, the confrontational task may be, but is not limited to, a human-machine confrontational mode, such as a game task that is completed by an interactive operation between a current player and a machine player provided in the game environment. The confrontational tasks herein may be, but are not limited to, running in applications (e.g., non-independently running game APPs) in the form of plug-ins, applets, or running in applications (e.g., independently running game APPs) in the game engine. The types of gaming applications described above may include, but are not limited to, at least one of: two-dimensional (2D) game applications, Three-dimensional (3D) game applications, Virtual Reality (VR) game applications, Augmented Reality (AR) game applications, Mixed Reality (MR) game applications.
For example, the competing task herein may be, but is not limited to, a PVE-patterned elimination-like game task. That is, the current player uses the target user account to challenge the computer player to complete a play-out task using the virtual account. And determining a processing mode of the virtual material resources provided under the virtual scene in the simulated game according to the task result of eliminating the game task.
For example, assuming that the virtual space is exemplified by a virtual island, the operation performed on the first virtual space is exemplified by a drag operation. As shown in fig. 3, after a dragging operation of dragging the virtual island (i.e., the first virtual space) occupied by the target user account to the virtual island (i.e., the second virtual space) occupied by the virtual account is detected, as shown in fig. 3, the virtual island (i.e., the first virtual space) occupied by the target user account is moved along a target trajectory (i.e., a dragging trajectory formed by the dragging operation) indicated by a dotted straight line. In the event of a collision between two virtual islands (i.e., the intersection of the virtual areas of the two virtual islands), a countermeasure task between the target user account and the virtual account will be triggered.
It should be noted that, as shown in fig. 3 as an example, the expansion of the virtual space may be to expand a virtual area, or may be to expand a virtual volume or increase a virtual weight, or other processing manners with expandability. In addition, the collision determination method in the virtual space may be, but not limited to, a method of detecting an intersection, that is, a region where the two intersect is detected, and it is determined that a collision occurs.
S208, under the condition that the task result of the confrontation task indicates that the battle of the target user account is in the battle of the virtual account, target virtual material resources are distributed for the target user account, and animation for expanding the first virtual space by using the target virtual material resources is displayed.
Optionally, in this embodiment, in a case that the task result of the countermeasure task indicates that the target user account is located in a battle camp over the virtual account, the virtual material resources required for expanding the virtual space may be allocated or added to the battle camp.
For example, as shown in fig. 1, it is assumed that the confrontation task is an example of a game elimination task in the PVE mode as shown in fig. 1 (b), and each of the confrontation parties has one account. And under the condition that the acquired task result of eliminating the game task indicates that the target user account ID-1 defeats the virtual account ID-2, allocating target virtual material resources to the target user account ID-1, wherein the target virtual material resources can be land parcels. Here, the land parcel will be used to expand a first virtual space, which may be a virtual island on which virtual buildings are allowed to continue to be constructed, as shown in fig. 1 (c), and the above-mentioned allocated 4 land parcels are used to expand the virtual area of the virtual island. Fig. 1 shows an optional hypothetical example, and the form and content of the countermeasure task, the type and content of the target material resource and the virtual space are not limited in this embodiment.
According to the embodiment provided by the application, in the virtual scene with the virtual space, the confrontation task is triggered to distribute the target virtual material resources for expanding the virtual space to the winning target user account as the reward resources, so that the target user account is assisted to complete the further expansion of the virtual space in the virtual scene by utilizing the target virtual material resources, the virtual material resources are not used as the static attribute data of the user account any more, the resource processing mode is enriched, the acquisition channel of the virtual material resources is expanded, and the problem that the resource processing mode is single in the related technology is solved.
As an optional scheme, when displaying an animation that uses the target virtual material resource to expand the first virtual space, the method further includes:
s1, displaying an animation of the second virtual space disappearing from the virtual scene.
Optionally, in this embodiment, when the target virtual material is used to expand the first virtual space, the second virtual space occupied by the virtual account disappears. Here, the disappearance timing of the second virtual space may be before or after the expansion of the first virtual space is started, and may also be synchronized with the process of expanding the first virtual space. That is, the process of displaying the disappearance of the second virtual space may be started first, and then the process of expanding the first virtual space using the target virtual material may be started, or the process of expanding the first virtual space using the target virtual material may be started first, and then the process of displaying the disappearance of the second virtual space may be started, where the two processes are asynchronous display processes; the process that the second virtual space disappears and the process that the target virtual material is used for expanding the first virtual space can be displayed simultaneously, and the two processes are synchronous display processes. And discarding the virtual material resource after the second virtual space disappears from the virtual scene.
In addition, in the present embodiment, the manner in which the virtual space disappears from the virtual scene may be, but is not limited to, in the form of falling fall. For example, the disappearing animation effect may be as shown in fig. 4, which decomposes the second virtual space into virtual material resources, and then controls each of them to perform the action of falling and disappearing.
It should be noted that, in this embodiment, the second virtual space may be, but is not limited to, a virtual space occupied by a virtual account in the PVE mode, and an animation that the displayed virtual space disappears will avoid frustration after the real player experiences a failure. In addition, in this embodiment, although the second virtual space occupied by the virtual account of the failing party disappears, the process of directly phagocytosing the virtual space by the target user account of the winning party is not presented. In other words, the target virtual material resource acquired by the target user account is issued by the server in the form of reward resource, and is not acquired in the form of phagocytic occupation, which is more beneficial for the player to experience the positive experience in the game interaction process, so that the negative experience of sacrificing other players to acquire the victory of the game task is reduced.
By the embodiment provided by the application, when the animation for expanding the first virtual space by using the target virtual material resources is displayed, the animation for enabling the second virtual space to disappear from the virtual scene is also displayed, so that the aim of visually prompting a user player that the user account number is acquired in the confrontation task is fulfilled, and the effect of ensuring relative conservation by dynamically adjusting the resources in the virtual scene is also expressed.
As an optional scheme, when displaying the animation that the second virtual space disappears from the virtual scene, the method further includes:
s1, determining candidate virtual material resources from the virtual material resources corresponding to the second virtual space which is disappearing, wherein the candidate virtual material resources are part or all of the virtual material resources corresponding to the second virtual space;
and S2, displaying the animation of the candidate virtual material resource transferring to the area of the first virtual space to prompt that the first virtual space is enlarged.
Optionally, in this embodiment, in the process of displaying the second virtual space from the virtual scene, the corresponding virtual material resource may be further, but not limited to, reused. If part or all of the virtual material resources in the virtual material resources corresponding to the second virtual space are determined as candidate virtual material resources, and the target user account is controlled to directly utilize the candidate virtual material resources as target virtual material resources for expansion. That is to say, the target virtual material resources allocated to the first virtual space may include the candidate virtual material resources split from the second virtual space. If the candidate virtual material resources are directly used as the target virtual material resources, new virtual material resources can be supplemented and added by the server in addition to the candidate virtual material resources to be used as the target virtual material resources.
When the partial virtual material resource is determined as the candidate virtual material resource, the partial virtual material resource may be determined according to, but is not limited to, a preset resource transfer ratio. The resource transfer ratio may be determined according to, but not limited to, the difficulty coefficient of each game level, and if the game level difficulty coefficient is larger, the resource transfer ratio is larger, that is, the candidate virtual material resources determined from the virtual material resources corresponding to the second virtual space are more. In addition, in this embodiment, the processing manner of the virtual material resources other than the candidate virtual material resource in the virtual material resources corresponding to the second virtual space may include, but is not limited to, directly discarding in the background. Because the virtual account is not the user account used by the real player, the virtual material resource held by the virtual account does not have the attribute of identifying the current state of the account, and therefore the virtual material resource can be directly displayed and disappear in the client. When the other user players enter the current game stage in the PVE countermeasure mode, the virtual account number can still display the second virtual space after the initialization processing.
For example, assuming that the virtual space is still the virtual island shown in fig. 5, the virtual material resource is exemplified by a land parcel. And under the condition that the marketing of the target user account exceeds the marketing of the virtual account, the second virtual space occupied by the virtual account disappears from the virtual scene. Specifically, as shown in fig. 5, candidate land parcels are determined from land parcels corresponding to the disappearing virtual island, such as six dotted land parcels shown in the upper left corner of fig. 5. Suppose that all candidate soil blocks are taken as target soil blocks in the current game task level indication and are provided for the target user account to expand the virtual island occupied by the target user account. Then, as shown in fig. 5, an animation is displayed in which the six candidate soil parcels are transferred to the position of the virtual island occupied by the target user account.
Through the embodiment provided by the application, the candidate virtual material resources are determined from the virtual material resources corresponding to the second virtual space which disappears, the candidate virtual material resources are transferred to the area where the second virtual space is located, the candidate virtual material resources are prompted to be used for expanding the first virtual space, and therefore the utilization rate of the virtual material resources is improved.
As an optional scheme, after triggering a countermeasure task between the target user account and the virtual account, the method further includes:
and S1, when the task result of the confrontation task indicates that the virtual account is in the battle competition account of the target user, keeping the current space display state of the first virtual space and the current space display state of the second virtual space.
It should be noted that, in this embodiment, when the task result of the countermeasure task between the target user account and the virtual account indicates that the challenge fails, the space display state of the virtual space occupied by the target user account and the virtual account may be maintained, and the virtual material resource currently held by the target user account may also be maintained.
Through the embodiment provided by the application, even if the account of the target user fails to challenge, the resources held by the target user cannot be phagocytosed by the user accounts or the virtual accounts used by other players, and the currently occupied virtual space can still be displayed, so that the situation that the resources held by the user are phagocytosed by the user is avoided, and the frustration of the user after the task fails is further reduced.
As an optional scheme, after controlling the first virtual space to move according to the target trajectory, the method further includes:
and S1, determining that the first virtual space and the second virtual space collide with each other under the condition that the position of the second virtual space is on the target track.
It should be noted that, in this embodiment, the determining that the first virtual space and the second virtual space collide with each other may include, but is not limited to: in the case that the position of the second virtual space is located on the target track formed by the movement of the first virtual space, it can be determined that the two will collide during the movement.
Through the embodiment provided by the application, under the condition that the position of the second virtual space is located on the target track, the first virtual space and the second virtual space are determined to collide. Therefore, the representation form of the trigger interaction task is enriched and expanded, the user experience is improved, and more users can be attracted to participate in downloading and using the game application.
As an alternative, in response to the operation performed on the first virtual space, controlling the first virtual space to move according to the target trajectory includes one of:
1) responding to a dragging operation executed on the first virtual space, and controlling the first virtual space to move according to a dragging track corresponding to the dragging operation, wherein the target track is an operation track generated by the dragging operation;
for example, as shown in fig. 3, after a dragging operation of dragging the virtual island occupied by the target user account (i.e., the first virtual space) to the virtual island occupied by the virtual account (i.e., the second virtual space) is detected, as shown in fig. 3, the virtual island occupied by the target user account (i.e., the first virtual space) moves along a target trajectory shown by a dotted straight line (i.e., a dragging trajectory formed by the dragging operation). In the event of a collision between two virtual islands (i.e., the intersection of the virtual areas of the two virtual islands), a countermeasure task between the target user account and the virtual account will be triggered.
2) And when the first virtual space is selected, responding to the direction adjustment operation executed on the first virtual space, and controlling the first virtual space to move according to the adjusted target direction, wherein the target track is generated after the first virtual space moves according to the target direction.
For example, as shown in fig. 7, a long press may be performed on a virtual island (i.e., the first virtual space) occupied by the target user account, during which the angle adjustment dial may be displayed at the same time, and the aiming direction (shown in fig. 7 with a dotted line direction pointed by an arrow) may be adjusted during the long press. After the target direction (the solid line direction indicated by the arrow in fig. 7) is determined, the long-pressed first virtual space may be released, the first virtual space moves according to the target direction and collides with the second virtual space (i.e., the virtual areas of the two virtual islands intersect with each other), and then the countermeasure task between the target user account and the virtual account is triggered.
Through the embodiment provided by the application, the first virtual space is controlled to move to the position of the second virtual space through different triggering operations, and the first virtual space collides with the second virtual space, so that an interaction task between a target user account and a virtual account is triggered, the effect of enriching a task triggering form is achieved, and the user interaction experience is promoted.
As an optional scheme, after displaying the animation for expanding the first virtual space by using the target virtual material resource, the method further includes:
and S1, simulating the object in the real scene in the first expanded virtual space in response to the operation triggered in the current client, and building a virtual object.
It should be noted that, in this embodiment, the virtual material resources allocated to the target user account are used to expand a virtual space, and are not only static attribute data used to identify the current state of the user account, but also materialized resources used to simulate an object in a real scene to complete a simulation building and development process.
For example, it is assumed that the virtual material resources are illustrated as a land parcel, and the virtual space is illustrated as a virtual island. With reference to fig. 5, after the newly allocated land parcel is used as an extension process of the virtual island occupied by the target user account, the land parcel in the virtual island is used as a construction basis for further construction processes, such as simulating a real object in real life to construct a new virtual building, planting a new virtual plant, and the like, so as to complete a simulated cultivation or simulated operation process of a real scene, thereby completing a corresponding game task.
By the embodiment provided by the application, the object in the real scene is simulated in the first expanded virtual space in response to the operation triggered in the current client, and the virtual object is built. Therefore, materialization processing of the virtual material resources as rewards is realized, the first virtual space is expanded and then is further utilized for the second time, and the utilization rate of the resources is improved.
Optionally, as an optional implementation manner, as shown in fig. 8, the resource processing method is applied to the server 106 shown in fig. 1, and the method may include:
s802, acquiring a task result of completing a countermeasure task by using a target user account in the current client, wherein the countermeasure task is a task between the target user account and a virtual account, and the target user account and the virtual account belong to different camps;
s804, distributing target virtual material resources for the target user account under the condition that the task result indicates that the marketing where the target user account is positioned prevails the marketing where the virtual account is positioned;
s806, expanding a first virtual space occupied by the target user account in the virtual scene by using the target virtual material resources, wherein an object simulating the real scene is virtually constructed in the first virtual space.
It should be noted that, in this embodiment, the server analyzes and processes the operation data generated by the terminal device in the countermeasure task to obtain a task result, and determines whether to allocate virtual material resources to the target user account according to the task result. And under the condition that the marketing success of the target user account is determined, distributing virtual material resources for the target user account, and supporting the target user account to expand the occupied first virtual space by utilizing the virtual material resources, so that secondary construction and utilization of the virtual space are facilitated.
The embodiment implemented at the server side may refer to the embodiment described at the terminal device side, but is not limited to the embodiment described above, and is not described here again.
As an optional scheme, in the case that the task result indicates that the target user account is located in a battle camp over the virtual account, allocating target virtual material resources to the target user account includes:
s1, distributing virtual material resources for the target user account according to a first quantity under the condition that the task result indicates that the target user account is in a battle camp over the virtual account;
and S2, deducting the virtual material resources held by the virtual account according to the second amount.
Optionally, in this embodiment, deducting the virtual material resources held by the virtual account according to the second amount includes: and deducting virtual physical resources corresponding to a second virtual space occupied by the virtual account in the virtual scene, wherein the second quantity is greater than or equal to the first quantity.
It should be noted that, in this embodiment, the virtual material resources that are added and held in the first virtual space and the virtual material resources that are subtracted and held in the second virtual space may be asynchronous processes. That is, the server issues the target virtual material resource as the reward resource to the target user account, and the server controls the virtual material resource held by the virtual account. And an association relation can also be established in the process of increasing the holding and reducing the holding, for example, a part or all of the virtual material resources are determined from the reduced virtual material resources to be transferred to the target user account as the increased virtual material resources. The above embodiments can be referred to for the transfer process, and are not described herein again.
As an optional scheme, after obtaining a task result of completing the countermeasure task in the current client by using the target user account, the method further includes:
and S1, keeping the current space display state of the first virtual space and the current space display state of the second virtual space under the condition that the task result indicates that the virtual account is in the battle competition area of the target user account.
In this embodiment, for a specific example, reference may be made to the above-described embodiments, which are not described herein again.
As an optional scheme, in the case that the task result indicates that the target user account is located in a battle camp over the virtual account, allocating target virtual material resources to the target user account includes:
s1, acquiring confrontation performance parameters generated by the target user account in the confrontation task;
and S2, allocating target virtual material resources matched with the countermeasure performance parameters for the target user account, wherein the number of the target virtual material resources is related to the countermeasure performance parameters.
Optionally, in this embodiment, the confrontation performance parameter may be, but is not limited to, a statistical result corresponding to the operation data generated in the confrontation task. Such as the number of consecutive hits, the number of consecutive connection successes, or the number of one-step erasures in an erasures-type game, etc. And when the confrontation performance parameters indicate that the target user account is better in confrontation performance in the confrontation task, determining that the quantity of the virtual material resources to be distributed is larger.
According to the embodiment provided by the application, the target virtual material resources matched with the confrontation performance parameters are allocated to the target user account, so that the target virtual material resources matched with the target user account in the confrontation task can be flexibly allocated to the target user account.
As an optional scheme, the expanding a first virtual space occupied by a target user account in a virtual scene by using a target virtual material resource includes:
1) expanding a first virtual area occupied by a target user account into a second virtual area by using target virtual material resources, wherein the expansion of the first virtual space comprises the expansion of the first virtual area;
2) expanding a first virtual volume occupied by a target user account into a second virtual volume by using target virtual material resources, wherein the expansion of the first virtual space comprises the expansion of the first virtual volume;
3) and expanding the first virtual weight occupied by the target user account into a second virtual weight by utilizing the target virtual material resources, wherein the expansion of the first virtual space comprises the increase of the first virtual weight.
It should be noted that, in the present embodiment, the virtual space provided in the virtual scene is a building space provided for the player, such as a virtual island. The extension of the virtual space may be an area extension, a volume extension, or a weight increase, or may be an area in which the side length of the virtual space is increased, or may be an area in which the occupation attribute is neutral (that is, the attribute of the neutral area is changed to the area to which the current player belongs). That is, the extension form of the virtual space is not limited in this embodiment.
As an optional scheme, after a first virtual space occupied by a target user account in a virtual scene is expanded by using a target virtual material resource, the method further includes:
and S1, responding to the operation triggered by the target user account in the current client, simulating the object in the real scene in the expanded first virtual space, and building a virtual object.
In this embodiment, for a specific example, reference may be made to the above-described embodiments, which are not described herein again.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiment of the present invention, there is also provided a resource processing apparatus for implementing the resource processing method, which is applied in the terminal device 102 shown in fig. 1. As shown in fig. 9, the apparatus includes:
a first display unit 902, configured to display, in a current client, a first virtual space occupied by a target user account in a virtual scene and a second virtual space occupied by a virtual account in the virtual scene, where the target user account and the virtual account belong to different camps, and an object in a simulated real scene is virtually constructed in the virtual space;
a control unit 904 for controlling the first virtual space to move according to the target trajectory in response to an operation performed on the first virtual space;
a triggering unit 906, configured to trigger a countermeasure task between the target user account and the virtual account when the first virtual space and the second virtual space collide with each other;
the processing unit 908 is configured to, when the task result of the countermeasure task indicates that the camping where the target user account is located is in conflict with the camping where the virtual account is located, allocate a target virtual material resource to the target user account, and display an animation that the first virtual space is expanded by using the target virtual material resource.
As an optional scheme, the method further comprises the following steps:
and the second display unit is used for displaying the animation of the second virtual space disappearing from the virtual scene when displaying the animation of expanding the first virtual space by using the target virtual material resource.
In this embodiment, for a specific example, reference may be made to the above-described embodiments, which are not described herein again.
As an optional scheme, the method further comprises the following steps:
the first determining unit is used for determining candidate virtual material resources from virtual material resources corresponding to the disappearing second virtual space when the animation of the second virtual space disappearing from the virtual scene is displayed, wherein the candidate virtual material resources are part or all of the virtual material resources in the virtual material resources corresponding to the second virtual space;
and the transfer display unit is used for displaying the animation of transferring the candidate virtual material resource to the area where the first virtual space is located so as to prompt that the first virtual space is expanded.
In this embodiment, for a specific example, reference may be made to the above-described embodiments, which are not described herein again.
As an optional scheme, the method further comprises the following steps:
and the maintaining and displaying unit is used for maintaining the current space display state of the first virtual space and the current space display state of the second virtual space under the condition that the task result of the countermeasure task indicates that the virtual account is in the battle competition of the target user account after triggering the countermeasure task between the target user account and the virtual account.
In this embodiment, for a specific example, reference may be made to the above-described embodiments, which are not described herein again.
As an optional scheme, the method further comprises the following steps:
and the second determining unit is used for determining that the first virtual space and the second virtual space collide with each other under the condition that the position of the second virtual space is located on the target track after the first virtual space is controlled to move according to the target track.
In this embodiment, for a specific example, reference may be made to the above-described embodiments, which are not described herein again.
As an alternative, the control unit 904 comprises one of:
the first control module is used for responding to dragging operation executed on the first virtual space and controlling the first virtual space to move according to a dragging track corresponding to the dragging operation, wherein the target track is an operation track generated by the dragging operation;
and the second control module is used for responding to the direction adjustment operation executed on the first virtual space when the first virtual space is selected, and controlling the first virtual space to move according to the adjusted target direction, wherein the target track is generated after the first virtual space is moved according to the target direction.
In this embodiment, for a specific example, reference may be made to the above-described embodiments, which are not described herein again.
As an optional scheme, the method further comprises the following steps:
and the building unit is used for responding to the operation triggered in the current client after the animation for expanding the first virtual space by using the target virtual material resources is displayed, simulating an object in a real scene in the expanded first virtual space, and building a virtual object.
In this embodiment, for a specific example, reference may be made to the above-described embodiments, which are not described herein again.
According to another aspect of the embodiment of the present invention, there is also provided a resource processing apparatus for implementing the resource processing method, which is applied in the server 106 shown in fig. 1. As shown in fig. 10, the apparatus includes:
an obtaining unit 1002, configured to obtain a task result of completing a countermeasure task in a current client by using a target user account, where the countermeasure task is a task between the target user account and a virtual account, and the target user account and the virtual account belong to different camps;
the allocating unit 1004 is configured to allocate virtual material resources to the target user account when the task result indicates that the camp where the target user account is located outranks the camp where the virtual account is located;
the processing unit 1006 is configured to expand a first virtual space occupied by the target user account in the virtual scene by using the virtual material resource, where an object in the simulated real scene is virtually constructed in the first virtual space.
As an alternative, the allocating unit 1004 includes:
the first allocation module is used for allocating virtual material resources for the target user account according to a first quantity under the condition that the task result indicates that the marketing where the target user account is located is in conflict with the marketing where the virtual account is located;
and the deduction module is used for deducting the virtual material resources held by the virtual account according to the second quantity.
In this embodiment, for a specific example, reference may be made to the above-described embodiments, which are not described herein again.
As an optional solution, the deduction module includes:
and the deduction submodule is used for deducting virtual physical resources corresponding to a second virtual space occupied by the virtual account in the virtual scene, wherein the second quantity is greater than or equal to the first quantity.
In this embodiment, for a specific example, reference may be made to the above-described embodiments, which are not described herein again.
As an optional scheme, the method further comprises the following steps:
and the maintaining and displaying unit is used for maintaining the current space display state of the first virtual space and the current space display state of the second virtual space under the condition that the task result indicates that the virtual account is in the battle competition area of the target user account after the task result of completing the confrontation task by using the target user account in the current client is obtained.
In this embodiment, for a specific example, reference may be made to the above-described embodiments, which are not described herein again.
As an alternative, the allocating unit 1004 includes:
the acquisition module is used for acquiring confrontation performance parameters generated by the target user account in the confrontation task;
and the second allocation module is used for allocating target virtual material resources matched with the countermeasure performance parameters to the target user account, wherein the number of the target virtual material resources is related to the countermeasure performance parameters.
In this embodiment, for a specific example, reference may be made to the above-described embodiments, which are not described herein again.
As an alternative, the processing unit 1006 includes:
the system comprises a first extension module, a second extension module and a third extension module, wherein the first extension module is used for extending a first virtual area occupied by a target user account into a second virtual area by using target virtual material resources, and the extension of the first virtual space comprises the extension of the first virtual area;
the second extension module is used for extending a first virtual volume occupied by the target user account into a second virtual volume by using the target virtual material resources, wherein the extending of the first virtual space comprises the extending of the first virtual volume;
and the third extension module is used for extending the first virtual weight occupied by the target user account into a second virtual weight by utilizing the target virtual material resources, wherein the extension of the first virtual space comprises the increase of the first virtual weight.
In this embodiment, for a specific example, reference may be made to the above-described embodiments, which are not described herein again.
As an optional scheme, the method further comprises the following steps:
the building unit is used for responding to the operation triggered by the target user account in the current client after the first virtual space occupied by the target user account in the virtual scene is expanded by using the target virtual material resources, simulating an object in the real scene in the expanded first virtual space, and building a virtual object.
In this embodiment, for a specific example, reference may be made to the above-described embodiments, which are not described herein again.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the resource processing method, where the electronic device may be the terminal device 102 shown in fig. 1. The electronic device comprises a memory having a computer program stored therein and a processor arranged to perform the steps of any of the above method embodiments by means of the computer program.
Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, displaying a first virtual space occupied by a target user account in a virtual scene and a second virtual space occupied by a virtual account in the virtual scene in the current client, wherein the target user account and the virtual account belong to different marketing, and virtually constructing an object in a simulated real scene in the virtual space;
s2, responding to the operation executed on the first virtual space, controlling the first virtual space to move according to the target track;
s3, when the first virtual space collides with the second virtual space, triggering a countermeasure task between the target user account and the virtual account;
s4, under the condition that the task result of the countermeasure task indicates that the target user account is located in the battle camp over the virtual account, allocating target virtual material resources for the target user account, and displaying animation for expanding the first virtual space by using the target virtual material resources.
Alternatively, as will be understood by those skilled in the art, the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc.
The memory may be configured to store software programs and modules, such as program instructions/modules corresponding to the resource processing method and apparatus in the embodiments of the present invention, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, so as to implement the resource processing method. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory may be, but not limited to, specifically configured to store information such as operation data generated in the countermeasure task. In addition, the resource processing apparatus may further include, but is not limited to, other module units in the resource processing apparatus, which are not described in this example again.
Optionally, the transmission device is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device includes a Network adapter (NIC) that can be connected to the router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In addition, the electronic device further includes: the display is used for displaying a virtual scene picture and a task picture of the confrontation task; and a connection bus for connecting the respective module parts in the electronic apparatus.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication. Nodes can form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of computing device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the Peer-To-Peer network.
According to another aspect of the embodiment of the present invention, there is also provided an electronic device for implementing the resource processing method, where the electronic device may be the server 106 shown in fig. 1. The electronic device comprises a memory having a computer program stored therein and a processor arranged to perform the steps of any of the above method embodiments by means of the computer program.
Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring a task result of completing a countermeasure task by using a target user account in the current client, wherein the countermeasure task is a task between the target user account and a virtual account, and the target user account and the virtual account belong to different camps;
s2, distributing target virtual material resources for the target user account under the condition that the task result indicates that the target user account is in a battle camp over the virtual account;
and S3, expanding a first virtual space occupied by the target user account in the virtual scene by using the target virtual material resources, wherein the object simulating the real scene is virtually constructed in the first virtual space.
Alternatively, as will be understood by those skilled in the art, the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc.
The memory may be configured to store software programs and modules, such as program instructions/modules corresponding to the resource processing method and apparatus in the embodiments of the present invention, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, so as to implement the resource processing method. The memory may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the terminal through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory may be specifically but not limited to be used for storing task results of the countermeasure tasks and information such as virtual material resources held by the account numbers. In addition, the resource processing apparatus may further include, but is not limited to, other module units in the resource processing apparatus, which are not described in this example again.
Optionally, the transmission device is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device includes a Network adapter (NIC) that can be connected to the router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In addition, the electronic device further includes: the display is used for displaying the task result of the confrontation task; and a connection bus for connecting the respective module parts in the electronic apparatus.
In other embodiments, the terminal device or the server may be a node in a distributed system, where the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting a plurality of nodes through a network communication. Nodes can form a Peer-To-Peer (P2P, Peer To Peer) network, and any type of computing device, such as a server, a terminal, and other electronic devices, can become a node in the blockchain system by joining the Peer-To-Peer network.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being 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 execute the resource processing method. Wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, displaying a first virtual space occupied by a target user account in a virtual scene and a second virtual space occupied by a virtual account in the virtual scene in the current client, wherein the target user account and the virtual account belong to different marketing, and virtually constructing an object in a simulated real scene in the virtual space;
s2, responding to the operation executed on the first virtual space, controlling the first virtual space to move according to the target track;
s3, when the first virtual space collides with the second virtual space, triggering a countermeasure task between the target user account and the virtual account;
s4, under the condition that the task result of the countermeasure task indicates that the target user account is located in the battle camp over the virtual account, allocating target virtual material resources for the target user account, and displaying animation for expanding the first virtual space by using the target virtual material resources.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring a task result of completing a countermeasure task by using a target user account in the current client, wherein the countermeasure task is a task between the target user account and a virtual account, and the target user account and the virtual account belong to different camps;
s2, distributing target virtual material resources for the target user account under the condition that the task result indicates that the target user account is in a battle camp over the virtual account;
and S3, expanding a first virtual space occupied by the target user account in the virtual scene by using the target virtual material resources, wherein the object simulating the real scene is virtually constructed in the first virtual space.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (18)
1. A method for processing resources, comprising:
displaying a first virtual space occupied by a target user account in a virtual scene and a second virtual space occupied by a virtual account in the virtual scene in a current client, wherein the target user account and the virtual account belong to different camps, and virtually constructing an object in a simulated real scene in the virtual space;
in response to an operation performed on the first virtual space, controlling the first virtual space to move according to a target track;
when the first virtual space collides with the second virtual space, triggering a countermeasure task between the target user account and the virtual account;
and under the condition that the task result of the confrontation task indicates that the battle of the target user account is in conflict with the battle of the virtual account, allocating target virtual material resources to the target user account, and displaying animation for expanding the first virtual space by using the target virtual material resources.
2. The method according to claim 1, wherein when displaying the animation that uses the target virtual material resource to expand the first virtual space, the method further comprises:
displaying an animation of the second virtual space disappearing from the virtual scene.
3. The method of claim 2, wherein in displaying the animation of the second virtual space disappearing from the virtual scene, further comprising:
determining candidate virtual material resources from the virtual material resources corresponding to the second virtual space which are disappearing, wherein the candidate virtual material resources are part or all of the virtual material resources corresponding to the second virtual space;
and displaying animation for transferring the candidate virtual material resource to the area where the first virtual space is located so as to prompt that the first virtual space is expanded.
4. The method of claim 1, further comprising, after triggering the countermeasure task between the target user account and the virtual account:
and under the condition that the task result of the confrontation task indicates that the virtual account is in the battle camp over the target user account, keeping the current space display state of the first virtual space and the current space display state of the second virtual space.
5. The method of claim 1, further comprising, after said controlling the first virtual space to move according to the target trajectory:
and under the condition that the position of the second virtual space is located on the target track, determining that the first virtual space and the second virtual space collide.
6. The method of any of claims 1, wherein controlling the first virtual space to move according to the target trajectory in response to the operation performed on the first virtual space comprises one of:
responding to a dragging operation executed on the first virtual space, and controlling the first virtual space to move according to a dragging track corresponding to the dragging operation, wherein the target track is an operation track generated by the dragging operation;
when the first virtual space is selected, responding to a direction adjusting operation executed on the first virtual space, and controlling the first virtual space to move according to an adjusted target direction, wherein the target track is a track generated after the first virtual space moves according to the target direction.
7. The method according to any one of claim 1, wherein after said displaying the animation that uses the target virtual material resource to expand the first virtual space, further comprising:
simulating an object in the real scene in the first expanded virtual space in response to an operation triggered in the current client, and building a virtual object.
8. A method for processing resources, comprising:
acquiring a task result of completing a countermeasure task by using a target user account in a current client, wherein the countermeasure task is a task between the target user account and a virtual account, and the target user account and the virtual account belong to different camps;
distributing target virtual material resources for the target user account under the condition that the task result indicates that the marketing of the target user account overcomes the marketing of the virtual account;
and expanding a first virtual space occupied by the target user account in the virtual scene by using the target virtual material resources, wherein an object simulating a real scene is virtually constructed in the first virtual space.
9. The method of claim 8, wherein, in the case that the task result indicates that the target user account is in an camp that is in the battle of the virtual account, allocating target virtual material resources to the target user account comprises:
distributing virtual material resources for the target user account according to a first quantity under the condition that the task result indicates that the target user account is in the battle field to overcome the virtual account;
and deducting the virtual material resources held by the virtual account according to the second quantity.
10. The method of claim 9, wherein deducting the virtual material resources held by the virtual account by the second amount comprises:
and deducting virtual physical resources corresponding to a second virtual space occupied by the virtual account in the virtual scene, wherein the second quantity is greater than or equal to the first quantity.
11. The method of claim 10, wherein after obtaining the task result of completing the countermeasure task in the current client using the target user account, further comprising:
and under the condition that the task result indicates that the virtual account is in the battle spot and the target user account is in the battle spot, keeping the current space display state of the first virtual space and the current space display state of the second virtual space.
12. The method of claim 8, wherein, in the case that the task result indicates that the target user account is in an camp that is in the battle of the virtual account, allocating target virtual material resources to the target user account comprises:
acquiring countermeasure performance parameters generated by the target user account in the countermeasure task;
and allocating the target virtual material resources matched with the countermeasure performance parameters to the target user account, wherein the number of the target virtual material resources is related to the countermeasure performance parameters.
13. The method according to any one of claims 8 to 12, wherein the expanding the first virtual space occupied by the target user account in the virtual scene by using the target virtual material resource comprises:
expanding a first virtual area occupied by the target user account to be a second virtual area by using the target virtual material resource, wherein the expansion of the first virtual space comprises the expansion of the first virtual area;
expanding a first virtual volume occupied by the target user account into a second virtual volume by using the target virtual material resource, wherein the expansion of the first virtual space comprises the expansion of the first virtual volume;
and expanding a first virtual weight occupied by the target user account into a second virtual weight by utilizing the target virtual material resources, wherein the expansion of the first virtual space comprises the increase of the first virtual weight.
14. The method according to any one of claims 8 to 12, wherein after the expanding the first virtual space occupied by the target user account in the virtual scene by using the target virtual material resource, the method further includes:
responding to the operation triggered by the target user account in the current client, simulating an object in the real scene in the expanded first virtual space, and building a virtual object.
15. A resource processing apparatus, comprising:
the system comprises a first display unit and a second display unit, wherein the first display unit is used for displaying a first virtual space occupied by a target user account in a virtual scene and a second virtual space occupied by a virtual account in the virtual scene in a current client, the target user account and the virtual account belong to different camps, and an object in a simulated real scene is virtually constructed in the virtual space;
a control unit configured to control the first virtual space to move according to a target trajectory in response to an operation performed on the first virtual space;
the triggering unit is used for triggering a countermeasure task between the target user account and the virtual account when the first virtual space and the second virtual space collide;
and the processing unit is used for distributing target virtual material resources to the target user account and displaying animation for expanding the first virtual space by using the target virtual material resources under the condition that the task result of the confrontation task indicates that the target user account is positioned in the battle camp over the virtual account.
16. A resource processing apparatus, comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a task result of completing a countermeasure task by using a target user account in a current client, the countermeasure task is a task between the target user account and a virtual account, and the target user account and the virtual account belong to different camps;
the allocation unit is used for allocating target virtual material resources to the target user account under the condition that the task result indicates that the marketing of the target user account exceeds the marketing of the virtual account;
and the processing unit is used for expanding a first virtual space occupied by the target user account in the virtual scene by using the target virtual material resources, wherein an object in a simulated real scene is virtually constructed in the first virtual space.
17. A computer-readable storage medium, comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 14.
18. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 14 by means of the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110834163.XA CN113457141B (en) | 2021-07-20 | 2021-07-20 | Resource processing method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110834163.XA CN113457141B (en) | 2021-07-20 | 2021-07-20 | Resource processing method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113457141A true CN113457141A (en) | 2021-10-01 |
CN113457141B CN113457141B (en) | 2024-02-02 |
Family
ID=77882017
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110834163.XA Active CN113457141B (en) | 2021-07-20 | 2021-07-20 | Resource processing method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113457141B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595521A (en) * | 2018-03-26 | 2018-09-28 | 腾讯科技(深圳)有限公司 | Search method, device, storage medium and the electronic device of information |
WO2020000388A1 (en) * | 2018-06-29 | 2020-01-02 | 深圳市大疆创新科技有限公司 | Virtual battle processing method, server, and movable platform |
CN110795232A (en) * | 2019-09-16 | 2020-02-14 | 腾讯科技(深圳)有限公司 | Data processing method, data processing device, computer readable storage medium and computer equipment |
CN111084988A (en) * | 2019-12-17 | 2020-05-01 | 腾讯科技(深圳)有限公司 | Virtual item generation method and device, storage medium and electronic device |
CN111589117A (en) * | 2020-05-07 | 2020-08-28 | 腾讯科技(深圳)有限公司 | Method, device, terminal and storage medium for displaying function options |
CN112569604A (en) * | 2020-12-11 | 2021-03-30 | 北京完美赤金科技有限公司 | Virtual resource processing method, device and storage medium in role playing game |
-
2021
- 2021-07-20 CN CN202110834163.XA patent/CN113457141B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595521A (en) * | 2018-03-26 | 2018-09-28 | 腾讯科技(深圳)有限公司 | Search method, device, storage medium and the electronic device of information |
WO2020000388A1 (en) * | 2018-06-29 | 2020-01-02 | 深圳市大疆创新科技有限公司 | Virtual battle processing method, server, and movable platform |
CN110795232A (en) * | 2019-09-16 | 2020-02-14 | 腾讯科技(深圳)有限公司 | Data processing method, data processing device, computer readable storage medium and computer equipment |
CN111084988A (en) * | 2019-12-17 | 2020-05-01 | 腾讯科技(深圳)有限公司 | Virtual item generation method and device, storage medium and electronic device |
CN111589117A (en) * | 2020-05-07 | 2020-08-28 | 腾讯科技(深圳)有限公司 | Method, device, terminal and storage medium for displaying function options |
CN112569604A (en) * | 2020-12-11 | 2021-03-30 | 北京完美赤金科技有限公司 | Virtual resource processing method, device and storage medium in role playing game |
Also Published As
Publication number | Publication date |
---|---|
CN113457141B (en) | 2024-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111265872B (en) | Virtual object control method, device, terminal and storage medium | |
US20220274021A1 (en) | Display method and apparatus for virtual scene, storage medium, and electronic device | |
CN110898425B (en) | Information synchronization method and device, storage medium and electronic device | |
TWI843042B (en) | Method of placing virtual props, device, terminal, storage medium, and computer program product | |
CN112675543B (en) | Configuration method and device of character attribute, storage medium and electronic device | |
WO2022184128A1 (en) | Skill release method and apparatus for virtual object, and device and storage medium | |
CN110801629B (en) | Method, device, terminal and medium for displaying virtual object life value prompt graph | |
US20120289342A1 (en) | System and method for placing players of a multiplayer game in a virtual world | |
KR20220133279A (en) | Voting result display method and apparatus, device, storage medium and program product | |
CN111265870A (en) | Control method and device of virtual operation object and storage medium | |
US20230321541A1 (en) | Displaying visual field picture based on interaction zone on a virtual map | |
CN114247146A (en) | Game display control method and device, electronic equipment and medium | |
CN111950670A (en) | Virtual interaction task execution method and device, storage medium and electronic device | |
CN113713373B (en) | Information processing method and device in game, electronic equipment and readable storage medium | |
CN106861192B (en) | Event execution method and device | |
CN113244609A (en) | Multi-picture display method and device, storage medium and electronic equipment | |
CN111249732A (en) | Virtual object acquisition method and device, storage medium and electronic device | |
CN114307150B (en) | Method, device, equipment, medium and program product for interaction between virtual objects | |
CN111135566A (en) | Control method and device of virtual prop, storage medium and electronic device | |
CN113457141B (en) | Resource processing method and device, storage medium and electronic equipment | |
CN113893523B (en) | Mark display method and device, storage medium and electronic equipment | |
US10086276B2 (en) | Systems and methods for procedural game content generation via interactive non-player game entities | |
CN113952739A (en) | Game data processing method and device, electronic equipment and readable storage medium | |
CN107185240A (en) | A kind of social method and system of leisure game based on cloud | |
US10668384B2 (en) | System using rule based techniques for handling gameplay restrictions |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |