Virtual object control method, device, equipment and storage medium
By generating and displaying mobilization controls in the viewing page of the strategy game, the problem of cumbersome troops mobilization operations in the existing technology is solved, and a more intuitive and efficient virtual object mobilization experience is achieved.
Patent Information
- Application Number
- CN202210351687.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-02
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2042-04-02
AI Technical Summary
In the existing strategy games, it is complicated to perform troops mobilization during the battle watching process, and it is necessary to frequently exit the battle watching interface for operations.
Provides a virtual object control method, which generates mobilization controls by obtaining the virtual object information created by the player, and displays mobilization controls on the viewing page, allowing players to directly transfer virtual objects on the viewing page.
It simplifies user operations and improves the intuitiveness and efficiency of virtual object mobilization. Players can mobilize virtual objects in real time without frequently exiting the viewing page.
Smart Images

Figure CN114887329B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of game data processing, and in particular to a virtual object control method, a virtual object control device, an electronic device, and a computer-readable storage medium. Background Art
[0002] Strategy Game (SLG) is a game in which players use strategies to compete with the computer or other players to achieve various forms of victory. One of the themes of strategy games is that in a combat state, the player plays the role of a ruler to manage the country and defeat the enemy. Before the player fights in the game, he needs to deploy his own heroes and soldiers to experience the strategic attributes of strategy games.
[0003] In existing SLG games, heroes lead troops to fight other players / city defenders. If users want to watch the battle process, they need to display an independent battle interface. The battle process is displayed on the battle interface. At this time, if the user wants to mobilize other heroes to participate in the battle, they need to exit the battle interface, return to the sandbox, click on the city, and expand the controls to operate, which is relatively cumbersome. Summary of the invention
[0004] The present application provides a virtual object control method, device, equipment and storage medium to solve the problem of cumbersome operations caused by mobilizing troops during the battle viewing process in current virtual games.
[0005] According to one aspect of the present application, a virtual object control method is provided, the method comprising:
[0006] In response to a player's spectator request, obtaining virtual object information of one or more first virtual objects previously created by the player;
[0007] generating a manipulation control according to the virtual object information of the one or more first virtual objects;
[0008] A viewing page of the strategy game is displayed, and the mobilization control is displayed in a designated area of the viewing page, wherein the mobilization control is used to trigger the mobilization of the first virtual object when being touched.
[0009] According to another aspect of the present application, a virtual object control device is provided, the device comprising:
[0010] An information acquisition module, configured to, in response to a player's spectating request, acquire virtual object information of one or more first virtual objects previously created by the player;
[0011] A manipulation control generation module, configured to generate a manipulation control according to virtual object information of the one or more first virtual objects;
[0012] A viewing page display module is used to display the viewing page of the strategy game and display the mobilization control in a designated area of the viewing page, wherein the mobilization control is used to trigger the mobilization of the first virtual object when touched.
[0013] According to another aspect of the present application, an electronic device is provided, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to the at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a virtual object control method described in any embodiment of the present application.
[0017] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a virtual object control method described in any embodiment of the present application when executed.
[0018] In this embodiment, after the player initiates a watch request, the watch page displayed to the player may include a mobilization control for mobilizing the first virtual object, and the mobilization control is generated based on the virtual object information of one or more first virtual objects previously created by the current player. In this way, the player can directly operate the mobilization control in the watch page, so as to mobilize the first virtual object in real time for the battle scene corresponding to the watch page, without having to exit the watch page and then mobilize the first virtual object, which simplifies the user's operation and improves the intuitiveness and efficiency of mobilizing the first virtual object.
[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flow chart of a virtual object control method provided in Example 1 of the present application;
[0022] Figure 2 It is a schematic diagram of a combat state mobilization control provided in Example 1 of the present application;
[0023] Figure 3 This is a schematic diagram of another combat state mobilization control provided in Embodiment 1 of the present application;
[0024] Figure 4 This is a schematic diagram of another combat state mobilization control provided in the first embodiment of the present application;
[0025] Figure 5 This is a schematic diagram of a control in an idle state provided in Embodiment 1 of the present application;
[0026] Figure 6 This is a schematic diagram of a spectating page provided in Example 1 of the present application;
[0027] Figure 7 This is another schematic diagram of a spectating page provided in Embodiment 1 of the present application;
[0028] Figure 8 is a flow chart of a virtual object control method provided in Embodiment 2 of the present application;
[0029] Fig. 9 This is a schematic diagram of an operation control interface provided in Example 2 of the present application;
[0030] Fig.10 is a structural diagram of a virtual object control device provided in Embodiment 3 of the present application;
[0031] Fig.11 It is a structural schematic diagram of an electronic device that implements a virtual object control method according to an embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0033] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0034] Embodiment 1
[0035] Figure 1 A flowchart of a virtual object control method is provided for the first embodiment of the present application, which may include the following steps:
[0036] Step 110: In response to a player's request to watch a game, obtain virtual object information of one or more first virtual objects previously created by the player.
[0037] This embodiment can be applied to a strategy game with a battle scene, for example, one of the battle scenes is that the player sends his hero to lead troops to attack cities in other countries or regions, and a battle occurs in the city. In this scene, the first virtual object includes troops, and the virtual object information includes troop information.
[0038] During the battle, if the player wants to watch the battle, he can initiate a watch request. In one implementation, a "watch" trigger button can be set in the GUI (Graphical User Interface) of the strategy game, and when the player clicks the "watch" button, the watch request is initiated.
[0039] After the spectating request is captured by the client, the client obtains virtual object information of one or more first virtual objects previously created by the player. In implementation, if the client locally stores virtual object information of one or more first virtual objects previously created by the player, the virtual object information can be directly read locally on the client. If the virtual object information locally stored on the client is not the latest one or no virtual object information is stored locally, the client can request the server for virtual object information of one or more first virtual objects previously created by the player based on the player ID of the player.
[0040] Exemplarily, the virtual object information may include, but is not limited to: a virtual object identifier, a virtual object name, a virtual object state, an identifier of a virtual character leading the first virtual object (such as a hero identifier), an avatar of a virtual character (such as a hero avatar), etc. Among them, the virtual object identifier is used to identify the first virtual object, and its expression form is not limited, and may include, but is not limited to, a virtual object name, a hero avatar, an ID assigned by a server when creating the first virtual object, etc., or a combination thereof. The virtual object name may be a name set by a player when creating the first virtual object or after creating the first virtual object. The virtual object state may include a combat state and an idle state, wherein the combat state indicates that the current first virtual object has been dispatched to fight and has a combat mission; the idle state indicates that the current first virtual object has not been dispatched to fight and has no combat mission. The identifier of the virtual character may be an identifier set by a user, or an identifier assigned to the virtual character by a server, which is not limited here. The avatar of the virtual character may be an avatar set by a user, or an avatar assigned to the virtual character by a server, which is not limited here.
[0041] Step 120: Generate a manipulation control according to the virtual object information of the one or more first virtual objects.
[0042] The corresponding activation control may be generated for each first virtual object, that is, the activation control of each first virtual object is generated using the virtual object information of the first virtual object.
[0043] In one embodiment, step 120 may further include the following steps:
[0044] Step 120-1, traverse the virtual object information of each first virtual object, if the virtual object state of the currently traversed first virtual object is a combat state, add a combat identifier to the current first virtual object, and obtain the current combat battlefield information of the current first virtual object.
[0045] Step 120-2, determine whether the battle battlefield information is the battlefield corresponding to the current viewing page. If yes, execute step 120-3, if not, execute step 120-4.
[0046] Step 120-3, setting a preset battlefield identifier for the current first virtual object, and generating a manipulation control of the first virtual object according to the battle identifier, the preset battlefield identifier and the virtual object identifier.
[0047] Step 120-4, generating a manipulation control of the first virtual object according to the battle identifier, the current battle battlefield information of the first virtual object and the virtual object identifier.
[0048] In this step, each first virtual object owned by the current player is traversed. For the first virtual object currently traversed, it is determined whether its virtual object state is in a combat state. If it is in a combat state, a combat mark is added to the current first virtual object. The combat mark can be a pre-set default mark or a mark set by the player, which is not limited in this embodiment.
[0049] Then, it is further determined whether the battlefield information of the first virtual object is the battlefield requested to be watched by the player. If it is the battlefield currently being watched, a battlefield mark may be added to the first virtual object, and the battlefield mark is used to clearly and concisely indicate to the player whether the first virtual object is fighting in the current battlefield. If the first virtual object is not fighting in the battlefield currently being watched, there is no need to add a battlefield mark, and the battle battlefield of the first virtual object may be directly marked.
[0050] When generating a mobilization control, different parameters can be passed in according to the set control code to generate different mobilization controls. That is, the parameters passed in step 120-3 include the battle identifier, the preset battlefield identifier, and the virtual object identifier. The generated mobilization control can be as follows: Figure 2 As shown, in Figure 2 In step 120-4, the parameters passed in include the battle identifier, the battle battlefield information of the current first virtual object, and the virtual object identifier. The generated mobilization control can be as follows: Figure 3 As shown in Figure 3 In other examples, for the scene of step 120-4, the battle battlefield of the current first virtual object can also be marked in the mobilization control, such as Figure 4 The battlefield D is shown.
[0051] In another embodiment, if the virtual object state is an idle state, step 120 may further include the following steps:
[0052] Step 120 - 5 : if the virtual object state of the currently traversed first virtual object is an idle state, generating a manipulation control of the first virtual object according to the idle state and the virtual object identifier.
[0053] For example, if the virtual object state is idle, when generating a call control, the parameters passed in the control code are the virtual object identifier and the idle state. The generated call control is as follows: Figure 5 As shown, the status can be marked as idle below the mobilization control.
[0054] In other embodiments, the preset virtual object creation control can also be used as a mobilization control, so that the player can directly trigger the control to create the first virtual object in the spectating page, without jumping out of the spectating page to create the first virtual object.
[0055] Step 130, displaying the spectator page of the strategy game, and displaying the mobilization control in a designated area of the spectator page, wherein the mobilization control is used to trigger the mobilization of the first virtual object when being touched.
[0056] The designated area may be an area specifically used to display the activation controls.
[0057] When displaying the spectating page, the designated area can be located at the lower right corner of the spectating page by default, such as Figure 6 As shown in the designated area E. The designated area and the mobilization control in the area can be set to be movable, and the player can move the designated area and the mobilization control in the area according to actual needs.
[0058] In one embodiment, the step of displaying the mobilization control in the designated area of the spectating page in step 130 may further include the following steps:
[0059] Determine the sorting information of each mobilization control; and display each mobilization control in sequence in the designated area according to the sorting information.
[0060] Exemplarily, the sorting information may include the dispatch time of dispatching the first virtual object to the battlefield of the current viewing page, the creation time of the first virtual object, etc. The order strategy of sorting may be: the first virtual object fighting in the battlefield of the current viewing page → the first virtual object fighting in other battlefields → the first virtual object in an idle state. Among them, if there are multiple first virtual objects fighting in the battlefield of the current viewing page, they are sorted from first to last according to the dispatch time of being dispatched to the current battlefield; the first virtual objects fighting in other battlefields can also be sorted from first to last according to their corresponding dispatch time; the first virtual objects in an idle state are sorted from first to last according to the creation time of the first virtual objects.
[0061] Of course, other sorting information and sorting strategies may be set according to actual needs, which is not limited in this embodiment.
[0062] When displaying each mobilization control in the designated area, the sequence number of each mobilization control or the state of the virtual object or other instructions (such as creating a unit) can be displayed below each mobilization control or at other locations. Figure 7 shown.
[0063] In practice, if the number of maneuvering controls exceeds the number that can be displayed in the designated area, the player can display additional maneuvering controls by sliding the designated area.
[0064] like Figure 7 As shown, the viewing page may also include an "Exit Viewing" button, and the player may exit the viewing page by triggering the "Exit Viewing" button.
[0065] In this embodiment, after the player initiates a watch request, the watch page displayed to the player may include a mobilization control for mobilizing the first virtual object, and the mobilization control is generated based on the virtual object information of one or more first virtual objects previously created by the current player. In this way, the player can directly operate the mobilization control in the watch page, so as to mobilize the first virtual object in real time for the battle scene corresponding to the watch page, without having to exit the watch page and then mobilize the first virtual object, which simplifies the user's operation and improves the intuitiveness and efficiency of mobilizing the first virtual object.
[0066] Embodiment 2
[0067] Figure 8 A flowchart of a virtual object control method is provided for Embodiment 2 of the present application. This embodiment is described on the basis of Embodiment 1. As shown in Embodiment 2, after step 130 of Embodiment 1, this embodiment may include the following steps: Step 140, displaying the operation control in response to the player's first trigger operation on the mobilization control.
[0068] For example, the first trigger operation may be an operation in which the player clicks on a manipulation control in a designated area, and the manipulation control is a control for performing a manipulation operation on the first virtual object corresponding to the currently clicked manipulation control.
[0069] Exemplarily, the operation control may include a supplement control and a call control. The supplement control is used to add a second virtual object to the current first virtual object, and the second virtual object may include troops or weapons, etc.; the call control is used to call the first virtual object that is not fighting in the current battlefield to fight in the current battlefield.
[0070] For example, when the player clicks Figure 7 When you use the "Hero Avatar 4" control in the idle state, a pop-up window will appear. Fig. 9 The operation control interface F shown includes a supplement control and a summon control. In practice, if the user clicks on the mobilization control of the first virtual object that is already fighting in the city, since there is no need to perform a summon operation on the first virtual object, the "summon" control can be set to gray in the pop-up operation control interface.
[0071] Step 150, in response to the player's second triggering operation on the operating control, the corresponding first virtual object is mobilized for the battle battlefield corresponding to the viewing page.
[0072] In this step, the corresponding first virtual object can be mobilized according to the operation control clicked by the player. In one embodiment, step 150 can further include the following steps:
[0073] If the operation control corresponding to the second trigger operation is an additional control, the second virtual object is added to the first virtual object corresponding to the first trigger operation; if the operation control corresponding to the second trigger operation is a summon control, the first virtual object corresponding to the first trigger operation is summoned to the battle battlefield corresponding to the viewing page to fight.
[0074] For example, when the player Fig. 9 When the trigger supplement control corresponding to "Hero Portrait 4" in the game is clicked, soldiers can be supplemented to the troops corresponding to "Hero Portrait 4". When implementing, soldier supplement and weapon supplement controls can also be set to meet the needs of soldier supplement or weapon supplement. If the player clicks the summon control, the triggered troops can be summoned to the current battlefield for combat.
[0075] At the data processing level, the processing of adding the second virtual object can be: adding a corresponding number of second virtual objects to the relevant data of the currently triggered first virtual object; the processing of summoning the first virtual object can be: generating an association relationship between the summoned first virtual object and the current battlefield.
[0076] In one embodiment, in the process of summoning the first virtual object to the battle battlefield corresponding to the spectating page, in response to the player's acceleration operation, the moving speed of the first virtual object can also be accelerated.
[0077] Exemplarily, the acceleration operation may be a specific operation triggered by the player on the device, such as pressing the "volume +" button of the mobile terminal, or sliding the screen in a specified direction by the player, which is not limited in this embodiment. One implementation of the acceleration process may be: assuming that the time from the user triggering the "summoning control" to the participation in the battle of the first virtual object summoned is 5 seconds, this time may be shortened to a shorter time, such as 3 seconds. In the interface, it may be shown as speeding up the movement of the summoned first virtual object to the battle scene.
[0078] In this embodiment, by triggering the mobilization control displayed in the viewing page, the operation control can be directly displayed in the viewing page. After the player triggers the operation control, the first virtual object is mobilized. All mobilization operations are performed on the viewing page, avoiding the tedious operations caused by the player switching pages back and forth, thereby improving the player's operating experience.
[0079] Embodiment 3
[0080] Fig.10 A schematic diagram of the structure of a virtual object control device provided in Embodiment 3 of the present application may include the following modules:
[0081] The information acquisition module 210 is used to obtain virtual object information of one or more first virtual objects previously created by the player in response to the player's spectator request;
[0082] A manipulation control generating module 220, configured to generate a manipulation control according to virtual object information of the one or more first virtual objects;
[0083] The viewing page display module 230 is used to display the viewing page of the strategy game and display the mobilization control in a designated area of the viewing page, wherein the mobilization control is used to trigger the mobilization of the first virtual object when touched.
[0084] In one embodiment, the device may further include the following modules:
[0085] An operation control display module, configured to display an operation control in response to a first trigger operation of the player on the mobilization control;
[0086] The mobilization module is used to mobilize the corresponding first virtual object for the battle battlefield corresponding to the viewing page in response to the second trigger operation of the player on the operation control.
[0087] In one embodiment, the virtual object information includes a virtual object identifier and a virtual object state, and the virtual object state includes a combat state;
[0088] The mobilization control generation module 220 is specifically used for:
[0089] Traversing the virtual object information of each first virtual object, if the virtual object state of the currently traversed first virtual object is a combat state, adding a combat identifier to the current first virtual object, and obtaining the current combat battlefield information of the current first virtual object;
[0090] Determine whether the battle battlefield information is the battlefield corresponding to the current battle viewing page;
[0091] If so, setting a preset battlefield identifier for the current first virtual object, and generating a manipulation control of the first virtual object according to the battle identifier, the preset battlefield identifier and the virtual object identifier;
[0092] If not, a manipulation control of the first virtual object is generated according to the battle identifier, the current battle battlefield information of the first virtual object and the virtual object identifier.
[0093] In one embodiment, the virtual object state also includes an idle state; the activation control generation module 220 is further used to:
[0094] If the virtual object state of the currently traversed first virtual object is an idle state, a manipulation control of the first virtual object is generated according to the idle state and the virtual object identifier.
[0095] In one embodiment, the operation control includes at least one of a supplement control and a summon control, the first virtual object includes at least one second virtual object; and the mobilization module is specifically used to:
[0096] If the operation control corresponding to the second trigger operation is a supplementary control, supplementing the second virtual object for the first virtual object corresponding to the first trigger operation;
[0097] If the operation control corresponding to the second trigger operation is a summon control, the first virtual object corresponding to the first trigger operation is summoned to the battle battlefield corresponding to the spectating page to fight.
[0098] In one embodiment, the device may further include the following modules:
[0099] The acceleration module is used to accelerate the moving speed of the first virtual object in response to the player's acceleration operation during the process of summoning the first virtual object to the battle battlefield corresponding to the viewing page.
[0100] In one embodiment, the mobilization control generation module 220 is further used to:
[0101] A preset virtual object creation control is used as the mobilization control.
[0102] In one embodiment, the operation control display module 240 is specifically used to:
[0103] Determine the sorting information of each mobilized control;
[0104] In the designated area, each mobilization control is displayed in sequence according to the sorting information.
[0105] A virtual object control device provided in an embodiment of the present application can execute a virtual object control method provided in any embodiment of the present application, and has functional modules and beneficial effects corresponding to the execution method.
[0106] Embodiment 4
[0107] Fig.11 A schematic diagram of an electronic device 10 that can be used to implement a method embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0108] like Fig.11 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0109] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0110] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a virtual object control method.
[0111] In some embodiments, a virtual object control method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of a virtual object control method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform a virtual object control method in any other appropriate manner (e.g., by means of firmware).
[0112] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0113] The computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer programs are executed by the processor, the functions / operations specified in the flow charts and / or block diagrams are implemented. The computer programs may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0114] In the context of the present application, a computer readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device or equipment. A computer readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer readable storage medium may be a machine readable signal medium. A more specific example of a machine readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0115] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0116] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0117] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0118] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution of this application can be achieved, and this document is not limited here.
[0119] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A virtual object control method, characterized in that: The method comprises: In response to a player's spectator request, obtaining virtual object information of one or more first virtual objects previously created by the player; generating a manipulation control according to the virtual object information of the one or more first virtual objects; Displaying a spectator page of the strategy game, and displaying the mobilization control in a designated area of the spectator page, wherein the mobilization control is used to trigger the mobilization of the first virtual object when being touched; The virtual object information includes a virtual object identifier and a virtual object state, and the virtual object state includes a combat state; The generating a manipulation control according to the virtual object information of the one or more first virtual objects includes: Traversing the virtual object information of each first virtual object, if the virtual object state of the currently traversed first virtual object is a combat state, adding a combat identifier to the current first virtual object, and obtaining the current combat battlefield information of the current first virtual object; Determine whether the battle battlefield information is the battlefield corresponding to the current battle viewing page; If so, setting a preset battlefield identifier for the current first virtual object, and generating a manipulation control of the first virtual object according to the battle identifier, the preset battlefield identifier and the virtual object identifier; If not, a manipulation control of the first virtual object is generated according to the battle identifier, the current battle battlefield information of the first virtual object and the virtual object identifier.
2. The method according to claim 1, characterized in that The method further comprises: In response to a first trigger operation of the player on the mobilization control, displaying the operation control; In response to the second trigger operation of the player on the operation control, the corresponding first virtual object is mobilized for the battle battlefield corresponding to the spectating page.
3. The method according to claim 1, characterized in that The virtual object state also includes an idle state; and generating a manipulation control according to the virtual object information of the one or more first virtual objects includes: If the virtual object state of the currently traversed first virtual object is an idle state, a manipulation control of the first virtual object is generated according to the idle state and the virtual object identifier.
4. The method according to claim 2, characterized in that: The operation control includes at least one of a supplement control and a summon control, and the first virtual object includes at least one second virtual object; In response to the second triggering operation of the player on the operation control, mobilizing the first virtual object corresponding to the battle scene corresponding to the spectating page includes: If the operation control corresponding to the second trigger operation is a supplementary control, supplementing the second virtual object for the first virtual object corresponding to the first trigger operation; If the operation control corresponding to the second trigger operation is a summon control, the first virtual object corresponding to the first trigger operation is summoned to the battle battlefield corresponding to the spectating page to fight.
5. The method according to claim 4, characterized in that The method further comprises: In the process of summoning the first virtual object to the battle battlefield corresponding to the spectating page, in response to the acceleration operation of the player, the moving speed of the first virtual object is accelerated.
6. The method according to claim 1, 2 or 4, characterized in that: The generating a manipulation control according to the virtual object information of the one or more first virtual objects includes: A preset virtual object creation control is used as the mobilization control.
7. The method according to claim 1, 2 or 4, characterized in that: The displaying of the mobilization control in the designated area of the spectating page includes: Determine the sorting information of each mobilized control; In the designated area, each mobilization control is displayed in sequence according to the sorting information.
8. A virtual object control device, characterized in that: The device comprises: An information acquisition module, configured to, in response to a player's spectating request, acquire virtual object information of one or more first virtual objects previously created by the player; A manipulation control generation module, configured to generate a manipulation control according to virtual object information of the one or more first virtual objects; A viewing page display module, used to display a viewing page of the strategy game, and to display the mobilization control in a designated area of the viewing page, wherein the mobilization control is used to trigger the mobilization of the first virtual object when touched; The virtual object information includes a virtual object identifier and a virtual object state, and the virtual object state includes a combat state; The mobilization control generation module is specifically used for: Traversing the virtual object information of each first virtual object, if the virtual object state of the currently traversed first virtual object is a combat state, adding a combat identifier to the current first virtual object, and obtaining the current combat battlefield information of the current first virtual object; Determine whether the battle battlefield information is the battlefield corresponding to the current battle viewing page; If so, setting a preset battlefield identifier for the current first virtual object, and generating a manipulation control of the first virtual object according to the battle identifier, the preset battlefield identifier and the virtual object identifier; If not, a manipulation control of the first virtual object is generated according to the battle identifier, the current battle battlefield information of the first virtual object and the virtual object identifier.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a virtual object control method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a virtual object control method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Interaction method and device, and computer storage medium
CN113713390A
Virtual object control method and device, electronic equipment and computer storage medium
CN113713399A
Information processing method and device, computer equipment and storage medium
CN114225412A