CN115779405A - Game control method, device, medium and electronic equipment - Google Patents

Game control method, device, medium and electronic equipment Download PDF

Info

Publication number
CN115779405A
CN115779405A CN202211525338.XA CN202211525338A CN115779405A CN 115779405 A CN115779405 A CN 115779405A CN 202211525338 A CN202211525338 A CN 202211525338A CN 115779405 A CN115779405 A CN 115779405A
Authority
CN
China
Prior art keywords
logic
fighting
combat
user interface
graphical user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211525338.XA
Other languages
Chinese (zh)
Inventor
赵显卿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202211525338.XA priority Critical patent/CN115779405A/en
Publication of CN115779405A publication Critical patent/CN115779405A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to the technical field of computers, and provides a game control method, a game control device, a computer-readable storage medium and electronic equipment. Wherein, the method comprises the following steps: when the fighting logic in the virtual game is played on the graphical user interface, a monitor registered for the fighting logic in advance determines a plurality of fighting expression logics associated with the fighting logic in response to a control instruction for acquiring the fighting logic, wherein the fighting expression logics are change logics of a plurality of visual pictures of a fighting expression object in the virtual fighting in the playing process of the fighting logic; and driving a plurality of fighting expression logics to execute the control command and updating the display content in the graphical user interface. The method and the system can improve the visual effect after controlling the fighting logic in the virtual game and improve the processing efficiency of the control instruction of the fighting logic based on updating the monitor control fighting logic registered for the fighting logic in advance.

Description

Game control method, device, medium and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a game control method, a game control apparatus, a computer-readable storage medium, and an electronic device.
Background
Virtual combat in the virtual game is common game experience in most games, and game players can experience various scenarios, stages and various role skill effects in the virtual game through combat logic in the game, so that the interest of the game is increased.
In general, during the process of virtual game playing by a player or debugging or testing the game by a game developer, a need exists for controlling the fighting logic in the virtual game, such as changing the speed or pausing the fighting logic; in this case, the combat logic usually needs to be jointly implemented by the combat performance logics of a plurality of combat performance objects in the virtual combat, and thus, the control of the combat logic is also the control of various combat performance logics for implementing the combat logic.
In the related art, when the fighting logic is controlled, the time consumed for the control processing of the fighting logic is long, and the problem that the visual effect is deviated in the control result is easy to occur.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure is directed to a game control method and apparatus, a computer-readable storage medium, and an electronic device, so as to improve a visual effect after controlling a fighting logic in a virtual game at least to a certain extent and improve processing efficiency of a control command of the fighting logic.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to a first aspect of the present disclosure, there is provided a game control method for providing a graphical user interface by a terminal device, the graphical user interface displaying a game screen of a virtual game, the method comprising:
when the graphical user interface plays the fighting logic in the virtual game, a listener registered for the fighting logic in advance determines a plurality of fighting expression logics associated with the fighting logic in response to the control instruction of the fighting logic, wherein the fighting expression logics are change logics of a plurality of visual images of a fighting expression object in the virtual fighting in the playing process of the fighting logic;
and driving a plurality of the combat performance logics to execute the control instructions and update the display content in the graphical user interface.
Optionally, the driving the plurality of combat performance logics to execute the control command and update the display content in the graphical user interface includes:
if the control instruction is a pause instruction, driving a plurality of the fighting expression logics to execute the pause instruction, and displaying a paused fighting picture in the graphical user interface;
and if the control command is a speed change command, driving a plurality of the battle expression logics to execute the speed change command, and playing the speed-changed battle logics in the graphical user interface.
Optionally, the driving the plurality of battle performance logics to execute the pause instruction and display a paused battle picture in the graphical user interface includes:
driving each combat performance logic to determine a first target visual picture displayed in the combat performance logic at the moment of receiving the pause instruction, so as to obtain a paused combat picture;
and pausing the playing of the combat logic, and displaying the paused combat picture in the graphical user interface.
Optionally, the method further includes:
continuing to play non-combat logic in the virtual game in the graphical user interface.
Optionally, after pausing the playing of the combat logic and displaying the paused combat screen in the graphical user interface, the method further includes:
and in response to the acquired playing instruction of the fighting logic, driving each fighting performance logic to update and display a plurality of second target visual pictures so as to continue playing the fighting logic in the graphical user interface, wherein the second target visual pictures are visual pictures behind the first target visual pictures in the fighting performance logic.
Optionally, after pausing the playing of the combat logic and displaying the paused combat screen in the graphical user interface, the method further includes:
in response to acquiring a reverse playing instruction of the fighting logic, each fighting performance logic is controlled to update and display a plurality of third target visual pictures so as to reverse the fighting logic in the graphical user interface, wherein the third target visual pictures are visual pictures before the first target visual picture in the fighting performance logic.
Optionally, the driving the plurality of combat performance logics to execute the speed change instruction and play the speed-changed combat logic in the graphical user interface includes:
determining the updated frame rate of the visual picture according to the frame rate of the terminal equipment and the combat logic variable speed value in the variable speed instruction;
and controlling each combat performance logic to update and display a fourth target visual picture according to the updated frame rate so as to play the variable-speed combat logic in the graphical user interface, wherein the fourth target visual picture is a visual picture behind the visual picture displayed by the combat performance logic at the receiving moment of the variable-speed instruction.
According to a second aspect of the present disclosure, there is provided a game control apparatus that provides, by a terminal device, a graphical user interface that displays a game screen of a virtual game, the apparatus including:
a trigger module configured to, when the graphical user interface plays the fighting logic in the virtual game, determine, in response to acquiring a control instruction for the fighting logic, a plurality of fighting expression logics associated with the fighting logic by a listener registered in advance for the fighting logic, where the fighting expression logics are change logics of a plurality of visual pictures of a fighting expression object in a virtual fighting during playing of the fighting logic;
and the driving module is configured to drive the plurality of fighting performance logics to execute the control instruction and update the display content in the graphical user interface.
Optionally, the driving module is configured to:
if the control command is a pause command, driving a plurality of the fighting expression logics to execute the pause command, and displaying a paused fighting picture in the graphical user interface;
and if the control command is a speed change command, driving a plurality of the combat presentation logics to execute the speed change command, and playing the speed-changed combat logics in the graphical user interface.
Optionally, the driving module is configured to:
driving each combat performance logic to determine a first target visual picture displayed in the combat performance logic at the moment of receiving the pause instruction, so as to obtain a paused combat picture;
and pausing the playing of the combat logic, and displaying the paused combat picture in the graphical user interface.
Optionally, the apparatus further includes a first playing module configured to:
continuing to play non-combat logic in the virtual game in the graphical user interface.
Optionally, the apparatus further includes a second playing module configured to:
and in response to the acquisition of a playing instruction of the fighting logic, driving each fighting performance logic to update and display a plurality of second target visual pictures so as to continue playing the fighting logic in the graphical user interface, wherein the second target visual pictures are the visual pictures behind the first target visual pictures in the fighting performance logic.
Optionally, the apparatus further includes a third playing module configured to:
in response to acquiring a reverse playing instruction of the fighting logic, each fighting performance logic is controlled to update and display a plurality of third target visual pictures so as to reverse the fighting logic in the graphical user interface, wherein the third target visual pictures are visual pictures before the first target visual picture in the fighting performance logic.
Optionally, the driving module is configured to:
determining the updated frame rate of the visual picture according to the frame rate of the terminal equipment and the combat logic variable speed value in the variable speed instruction;
and controlling each combat expression logic to update and display a fourth target visual picture according to the updated frame rate so as to play the variable-speed combat logic in the graphical user interface, wherein the fourth target visual picture is a visual picture behind the visual picture displayed by the combat expression logic at the receiving moment of the variable-speed instruction.
According to a third aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the game control method according to the first aspect.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the game control method of the first aspect via execution of the processor.
As can be seen from the foregoing technical solutions, the game control method, the game control apparatus, and the computer-readable storage medium and the electronic device for implementing the game control method in the exemplary embodiments of the present disclosure have at least the following advantages and positive effects:
in the technical solutions provided by some embodiments of the present disclosure, a listener may be registered for each fighting logic in a virtual game, and when the virtual game is executed to the fighting logic, the listener associated with the fighting logic may respond to an obtained control instruction of the fighting logic, and simultaneously drive a plurality of fighting expression logics associated with the fighting logic to execute the control instruction, thereby completing control of the fighting logic, on one hand, ensuring that each fighting expression logic associated with the fighting logic updates synchronization of a visual image, and solving a problem that a control result of the fighting logic has a visual effect deviation; on the other hand, in the process of processing the control command of the fighting logic, the broadcasting of the control command is not needed, and because each fighting expression logic associated with the fighting logic can synchronously update the visual picture, the time consumption in the process of processing the control command can be reduced, and the processing efficiency of the control command can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It should be apparent that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived by those of ordinary skill in the art without inventive effort.
FIG. 1 illustrates a system architecture diagram of an application environment in which the game control methods and apparatus of the present disclosure may be applied in an exemplary embodiment;
FIG. 2 illustrates a flow diagram of a method of game control in an exemplary embodiment of the present disclosure;
FIG. 3 shows a schematic diagram of a graphical user interface in an exemplary embodiment of the present disclosure;
FIG. 4 shows a schematic diagram of a game control apparatus in an exemplary embodiment of the present disclosure;
fig. 5 shows a schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the embodiments of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
The terms "a", "an", "the" and "said" are used in this specification to denote the presence of one or more elements/components/parts/etc.; the terms "comprising" and "having" are intended to be inclusive and mean that there may be additional elements/components/etc. other than the listed elements/components/etc.; the terms "first" and "second", etc. are used merely as labels, and are not limiting on the number of their objects.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities.
In the virtual game, the combat logic in the virtual game can be controlled to realize the pause or the speed change of the combat logic.
In the related art, in order to control a fighting logic, listeners need to be respectively registered for various fighting expression logics associated with the fighting logic, after a terminal device acquires a control event of the fighting logic, the control event needs to be broadcast to the listeners of each fighting expression logic, after the monitors of each fighting expression logic monitor the control event, each fighting expression logic is controlled to respectively update a visual picture, and after the terminal device determines that the visual picture of each fighting expression logic is updated, the terminal device displays the updated visual pictures of all the fighting expression logics associated with the fighting logic, so that the control of the fighting logic is completed.
However, the control method of the fighting logic depends on monitoring the control event by the monitor of each fighting expression logic, and in the process, the time for monitoring the control event by the monitor of each fighting expression logic may be different, so that the situation that each fighting expression logic cannot be updated simultaneously occurs, the visual image of each fighting expression logic is updated asynchronously, and the visual effect deviation occurs in the control result of the fighting logic; meanwhile, in the control process of the fighting logic, the monitoring of the control events and the updating of the visual pictures of each fighting performance logic are asynchronous, so that the problem of long processing time of the control events can be solved.
In order to solve the above problem, the present disclosure proposes a game control method and apparatus, which can be applied to the system architecture of the exemplary application environment shown in fig. 1.
As shown in fig. 1, the system architecture 100 may include a terminal device 101 and a server 102. The terminal device 101 may be a terminal device with a display function used by a user or a game developer, such as, but not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, and the like; the server 102 may be a server deployed by a gaming facilitator.
It should be understood that the number of terminal devices and servers in fig. 1 is merely illustrative. There may be any number of terminal devices and servers, as desired for an implementation. For example, the server 102 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a CDN, a big data and artificial intelligence platform, and the like.
It should be noted that the game control method provided in the embodiments of the present disclosure may be executed in a local terminal device or a server. When the game control method is operated on a server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system comprises the server and the client device.
In an optional embodiment, various cloud applications may be run under the cloud interaction system, for example: and (5) cloud games. Taking a cloud game as an example, the cloud game refers to a game mode based on cloud computing. In the cloud game operation mode, the game program operation main body and the game picture presentation main body are separated, the storage and the operation of the game control method are completed on the cloud game server, and the client device is used for receiving and sending data and presenting the game picture, for example, the client device can be a display device with a data transmission function close to a user side, such as a mobile terminal, a television, a computer, a palm computer and the like; but the cloud game server which performs information processing is a cloud. When a game is played, a user operates the client device to send an operation instruction to the cloud game server, the cloud game server runs the game according to the operation instruction, data such as game pictures and the like are coded and compressed, the data are returned to the client device through a network, and finally, the data are decoded through the client device and the game pictures are output.
It can be understood that when a user plays a game through client equipment, when a combat logic in a virtual game is played on a graphical user interface, a combat logic control of the graphical user interface can be triggered, the client equipment responds to the combat logic control to be triggered to generate a control instruction of the combat logic and sends the control instruction to a server, and a monitor registered for the combat logic in advance in a game program in the server responds to the control instruction of the combat logic to determine a plurality of combat performance logics associated with the combat logic; driving a plurality of combat presentation logic to execute the control command and updating the display content in the graphical user interface; sending the updated display content of the graphical user interface to the client equipment for display; the battle expression logic is the change logic of a plurality of visual pictures of the battle expression object in the virtual battle in the playing process of the battle expression logic.
In an optional implementation manner, taking a game as an example, the local terminal device stores a game program and is used for presenting a game screen. The local terminal device is used for interacting with the player through a graphical user interface, namely, a game program is downloaded and installed and operated through an electronic device conventionally. The manner in which the local terminal device provides the graphical user interface to the player may include a variety of ways, for example, it may be rendered for display on a display screen of the terminal or provided to the player through holographic projection. For example, the local terminal device may include a display screen for presenting a graphical user interface including a game screen and a processor for running the game, generating the graphical user interface, and controlling display of the graphical user interface on the display screen.
It can be understood that, when a user plays a game through a terminal device, when a combat logic in a virtual game is played on a graphical user interface, a combat logic control of the graphical user interface can be triggered, the terminal device generates a control instruction of the combat logic in response to the trigger of the combat logic control, and a plurality of combat presentation logics associated with the combat logic are determined by a listener registered for the combat logic in advance in a game program of the terminal device in response to the control instruction of the combat logic; driving a plurality of combat expression logics to execute the control command and updating the display content in the graphical user interface; the battle expression logic is the change logic of a plurality of visual pictures of the battle expression object in the virtual battle in the playing process of the battle expression logic.
In a possible implementation manner, an embodiment of the present invention provides a game control method, which is implemented by providing a graphical user interface through a terminal device, where the terminal device may be the aforementioned local terminal device, and may also be the aforementioned client device in a cloud interaction system.
However, it is easily understood by those skilled in the art that the foregoing application scenarios are only used for example, and the exemplary embodiment is not limited thereto.
Fig. 2 is a schematic flow chart of a game control method provided in an exemplary embodiment of the present disclosure, where the game control method provided in this embodiment is applied to a terminal device. And displaying a game picture of the virtual game through a graphical user interface of the terminal equipment. Referring to fig. 2, the method includes:
step S201, when a combat logic in a virtual game is played on a graphical user interface, a plurality of combat expression logics associated with the combat logic are determined by a listener registered for the combat logic in advance in response to a control instruction of the combat logic;
in the embodiment of the disclosure, the combat presentation logic is a change logic of a plurality of visual pictures of a combat presentation object in a virtual combat during the playing process of the combat logic, wherein the combat presentation object may include a virtual character, a virtual prop, a virtual special effect, a virtual game scene, and the like in a virtual game;
step S202, driving a plurality of fighting expression logics to execute the control command, and updating the display content in the graphical user interface.
In summary, in the game control method provided in the embodiment of the present disclosure, a listener may be registered for each fighting logic in the virtual game, and when the virtual game executes the fighting logic, the listener associated with the fighting logic may respond to the control instruction of the obtained fighting logic, and simultaneously drive a plurality of fighting expression logics associated with the fighting logic to execute the control instruction, thereby completing the control of the fighting logic, on one hand, ensuring that each fighting expression logic associated with the fighting logic updates the synchronization of the visual image, and solving the problem of the visual effect deviation of the control result of the fighting logic; on the other hand, in the process of processing the control command of the fighting logic, the broadcast of the control command is not needed, and because each fighting expression logic associated with the fighting logic can synchronously update the visual picture, the time consumption in the process of processing the control command can be reduced, and the processing efficiency of the control command can be improved.
The following detailed description of the various steps in the example shown in fig. 2:
in step S201, when the graphical user interface plays the fighting logic in the virtual game, the listener registered in advance for the fighting logic determines a plurality of fighting performance logics associated with the fighting logic in response to acquiring the control instruction for the fighting logic.
In the embodiment of the present disclosure, a virtual battle may be included in the virtual game, and the battle logic refers to a change logic of a battle picture in a process from the start of the virtual battle to the end of the virtual battle; the virtual battle generally includes various battle expression objects, such as virtual characters, virtual props, virtual special effects, virtual game scenes and the like in a virtual game, and the battle expression logic is a change logic of a plurality of visual pictures of the battle expression objects in the virtual battle in playing of battle logic.
It should be further noted that, in the embodiment of the present disclosure, in a development link of a game program, a listener may be registered for each fighting logic in a virtual game, so that each fighting performance logic associated with the fighting logic is driven uniformly by the listener, so as to drive each fighting performance logic to execute a control instruction to perform screen update of a fighting performance object, thereby implementing update of the fighting logic.
In an alternative embodiment, when the terminal device plays the fighting logic in the virtual game on the graphical user interface, the process of determining the plurality of fighting performance logics associated with the fighting logic by the listener registered for the fighting logic in advance in response to acquiring the control instruction to the fighting logic may include:
the terminal equipment responds to the virtual game starting instruction to play the virtual game in the graphical user interface, when the combat logic in the virtual game is played on the graphical user interface, the control instruction of the combat logic can be generated in response to the control operation of the combat logic, and the monitor which is registered for the combat logic in advance in the virtual game can respond to the acquired control instruction of the combat logic and determine a plurality of combat expression logics which are associated with the combat logic. The combat logic control operation can be a trigger operation of a game player on a combat logic control in a graphical user interface or a trigger operation of a combat logic control key in an input device (for example, a keyboard) in the terminal equipment by a game developer.
It should be noted that, for a developed game program, the data packet of the game program includes information of a plurality of fighting performance logics associated with each fighting logic in the virtual game, and the process of the terminal device determining the plurality of fighting performance logics associated with the fighting logics may include: in a data packet of a game program, a plurality of fighting expression logics associated with a fighting logic currently played in a graphical user interface when a control instruction is received are acquired.
In step S202, the plurality of combat presentation logic is driven to execute the control command, and display contents in the graphical user interface are updated.
In the embodiment of the disclosure, the control instruction is used to instruct the playing effect of the fighting logic to be controlled, for example, the control instruction is used to instruct the fighting logic to pause, or the control instruction is used to instruct the fighting logic to shift, where the shifting may be acceleration or deceleration. The control command may include a pause command, a shift command, or a reverse command.
In an alternative embodiment, the terminal device drives a plurality of combat presentation logics to execute the control instruction, and the process of updating the display content in the graphical user interface may include: if the control command is a pause command, driving the plurality of fighting expression logics to execute the pause command, displaying a fighting picture after pause in the graphical user interface, and driving the plurality of fighting expression logics to synchronously execute the pause command, so as to prevent the condition that the pause effect of the fighting logics is abnormal because the plurality of fighting expression logics cannot simultaneously execute the pause command, and improve the visual effect after the fighting logics are paused; if the control command is a speed change command, driving a plurality of combat expression logics to execute the speed change command, and playing the speed-changed combat logics in a graphical user interface; the method can drive a plurality of fighting expression logics to synchronously execute the speed change instruction, prevent the condition that the fighting logic speed change effect is abnormal because the plurality of fighting expression logics cannot simultaneously execute the speed change instruction, and improve the visual effect of the game picture after the fighting logic speed change.
In an alternative embodiment, the control instruction may be a pause instruction, and the terminal device drives the plurality of combat presentation logics to execute the pause instruction and display a paused combat picture in the graphical user interface: driving each fighting performance logic to determine a first target visual picture displayed in the fighting performance logic at the moment of receiving the pause instruction, and obtaining a paused fighting picture; and pausing the playing of the combat logic, and displaying a paused combat picture in the graphical user interface. After the pause instruction is received, each combat expression logic is driven to synchronously determine the first target visual picture displayed in the combat expression logic at the moment of receiving the pause instruction, and the paused combat picture is obtained and displayed, so that the processing efficiency of the pause instruction is improved, and the visual effect of the combat picture displayed after the pause of the control combat logic is improved.
It should be noted that the game control method provided by the embodiment of the present disclosure may be applied to a scenario in which a game developer debugs or tests a combat logic in a virtual game, where the game developer may control the combat logic of the virtual game by triggering a combat logic control key in an input device (e.g., a keyboard) of a terminal device, for example, when the input device is the keyboard, the combat logic control key may include a space key, a left key and a right key, where the input device may generate a pause instruction in response to a trigger operation on the space key, and the input device may generate a play instruction in response to a trigger operation on the right key, or the input device may generate a reverse instruction in response to a trigger operation on the left key. As shown in fig. 3, after the terminal device used by the game developer obtains the control instruction, a progress bar 301 of the virtual game may be displayed in the graphical user interface 300, a game progress prompt icon 302 may be displayed in the progress bar, and after receiving the pause instruction, the game progress prompt icon 302 may pause; after receiving the play instruction, the game progress prompt icon 302 may move to the right; upon receiving the reverse instruction, the game progress prompt icon 302 may move to the left.
In an optional implementation manner, in a scenario of debugging or testing the combat logic in the virtual game, since the playing progress of the combat logic in the virtual game is controlled by the listener registered for the combat logic in advance, the listener does not control other logic of the virtual game, so that after the paused combat screen is displayed in the graphical user interface, the terminal device can continue playing the non-combat logic in the virtual game in the graphical user interface. The method can ensure that the non-combat logic in the virtual game is continuously played without influencing the progress of the non-combat logic, and developers can continuously debug or test the non-combat logic in the virtual game, thereby improving the problem repairing efficiency of the virtual game.
In an optional implementation manner, in a scenario of debugging or testing the combat logic in the virtual game, after playing of the combat logic is paused and the paused combat screen is displayed in the graphical user interface, the terminal device may further drive each of the combat presentation logic to update and display a plurality of second target visual screens in response to obtaining a play instruction for the combat logic, so as to continue playing of the combat logic in the graphical user interface, where the second target visual screens are visual screens subsequent to the first target visual screens in the combat presentation logic. Under a game debugging or testing scene, a screen of the fighting logic does not need to be recorded, in a game environment of the virtual game, a game developer can play or pause the fighting logic in the virtual game according to requirements, so that the visual representation of a fighting picture can be checked at any node of the fighting logic, and the testing or debugging convenience and efficiency of the fighting logic are improved.
In an optional implementation manner, in a scenario of debugging or testing the fighting logic in the virtual game, after playing the fighting logic is paused and the paused fighting pictures are displayed in the graphical user interface, the terminal device may further control each fighting expression logic to update and display a plurality of third target visual pictures in response to acquiring a reverse-playing instruction for the fighting logic, so as to reverse the fighting logic in the graphical user interface; and the third target visual picture is a visual picture before the first target visual picture in the combat presentation logic. Under a game debugging or testing scene, a battle logic does not need to be recorded, in a game environment of the virtual game, a game developer pauses or rewinds the battle logic in the virtual game according to requirements, the visual representation of a battle picture is repeatedly checked at any node of the battle logic, and the control flexibility, the testing or debugging convenience and efficiency of the battle logic are improved.
In an alternative embodiment, the control command may be a speed change command, and the process of the terminal device driving the plurality of combat presentation logics to execute the speed change command and playing the speed-changed combat logics in the graphical user interface includes: determining the updated frame rate of the visual picture according to the frame rate of the terminal equipment and the combat logic variable speed value in the variable speed instruction; and controlling each combat performance logic to update and display a fourth target visual picture according to the updated frame rate so as to play the varied combat logic in the graphical user interface, wherein the fourth target visual picture is a visual picture behind the visual picture displayed by the combat performance logic at the receiving moment of the speed variation instruction. The visual images can be synchronously updated by the plurality of fighting expression logics according to the frame rate after the visual images indicated by the speed change instructions are updated, so that the synchronous updating of the plurality of fighting expression logics during the speed change of the fighting logics is ensured, and the visual effect of the fighting logics after the speed change is improved.
Wherein, according to the frame rate of the terminal device and the combat logic variable speed value in the variable speed command, determining the updated frame rate of the visual image comprises: determining the reciprocal of the frame rate to obtain the display duration of each frame of visual image in the combat expression logic, then determining the ratio of the display duration of each frame of visual image to the variable speed value of the combat logic to obtain the display duration of each frame of visual image after variable speed, and further determining the reciprocal of the display duration of each frame of visual image after variable speed to obtain the updated frame rate of the visual images.
Illustratively, the frame rate of the terminal device is 60 frames/second, the variable speed value of the fighting logic is 2 times speed, the reciprocal of 60 frames/second can be determined, the display duration of each frame of visual image in the fighting presentation logic is 1/60 second, the ratio of 1/60 second to 2 times speed is determined, the display duration of each frame of visual image after variable speed is 1/120 second is obtained, the reciprocal of 1/120 second of the display duration of each frame of visual image after variable speed is determined, and the updated frame rate of the visual image is 120 frames/second.
Fig. 4 is a schematic diagram of a game control apparatus provided in an exemplary embodiment of the present disclosure, where a terminal device provides a graphical user interface that displays a game screen of a virtual game, and as shown in fig. 4, the game control apparatus 400 includes:
the trigger module 401 is configured to, when the graphical user interface plays the battle logic in the virtual game, determine a plurality of battle expression logics associated with the battle logic in response to the acquired control instruction for the battle logic by a listener registered in advance for the battle logic, where the battle expression logics are change logics of a plurality of visual images of a battle expression object in the virtual battle in the playing process of the battle logic;
and a driving module 402 configured to drive the plurality of fighting performance logics to execute the control instruction and update the display content in the graphical user interface.
Optionally, the driving module 402 is configured to:
if the control command is a pause command, driving a plurality of fighting expression logics to execute the pause command, and displaying a paused fighting picture in a graphical user interface;
and if the control command is a speed change command, driving a plurality of fighting expression logics to execute the speed change command, and playing the speed-changed fighting logics in the graphical user interface.
Optionally, the driving module 402 is configured to:
driving each fighting performance logic to determine a first target visual picture displayed in the fighting performance logic at the moment of receiving the pause instruction, and obtaining a paused fighting picture;
and pausing the playing of the combat logic, and displaying a paused combat picture in the graphical user interface.
Optionally, as shown in fig. 4, the game control apparatus 400 further includes a first playing module 403 configured to:
the non-combat logic in the virtual game continues to be played in the graphical user interface.
Optionally, as shown in fig. 4, the game control apparatus 400 further includes a second playing module 404 configured to:
and in response to the acquired playing instruction of the fighting logic, driving each fighting expression logic to update and display a plurality of second target visual pictures so as to continue playing the fighting logic in the graphical user interface, wherein the second target visual pictures are visual pictures behind the first target visual pictures in the fighting expression logic.
Optionally, as shown in fig. 4, the game control apparatus 400 further includes a third playing module 405 configured to:
and in response to the acquired reverse playing instruction of the fighting logic, controlling each fighting performance logic to update and display a plurality of third target visual pictures so as to reverse the fighting logic in the graphical user interface, wherein the third target visual pictures are visual pictures before the first target visual pictures in the fighting performance logic.
Optionally, the driving module 402 is configured to:
determining the updated frame rate of the visual picture according to the frame rate of the terminal equipment and the combat logic variable speed value in the variable speed instruction;
and controlling each combat performance logic to update and display a fourth target visual picture according to the updated frame rate so as to play the variable-speed combat logic in the graphical user interface, wherein the fourth target visual picture is a visual picture behind the visual picture displayed by the combat performance logic at the receiving moment of the variable-speed instruction.
Exemplary embodiments of the present disclosure also provide a computer-readable storage medium, which may be implemented in the form of a program product, including program code for causing an electronic device to perform the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "exemplary method" section of this specification, when the program product is run on the electronic device. In one embodiment, the program product may be embodied as a portable compact disc read only memory (CD-ROM) and include program code, and may be run on an electronic device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Exemplary embodiments of the present disclosure also provide an electronic device, which may be a terminal device. The electronic device is explained below with reference to fig. 5. It should be understood that the electronic device 500 shown in fig. 5 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present disclosure.
As shown in fig. 5, the electronic device 500 is embodied in the form of a general purpose computing device. The components of the electronic device 500 may include, but are not limited to: at least one processing unit 510, at least one memory unit 520, and a bus 530 that couples various system components including the memory unit 520 and the processing unit 510.
Where the storage unit stores program code, which may be executed by the processing unit 510, to cause the processing unit 510 to perform the steps according to various exemplary embodiments of the present invention as described in the above-mentioned "exemplary methods" section of this specification. For example, processing unit 510 may perform method steps, etc., as shown in fig. 2.
The storage unit 520 may include volatile storage units such as a random access memory unit (RAM) 521 and/or a cache memory unit 522, and may further include a read only memory unit (ROM) 523.
The storage unit 520 may also include a program/utility 524 having a set (at least one) of program modules 525, such program modules 525 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 530 may include a data bus, an address bus, and a control bus.
The electronic device 500 may also communicate with one or more external devices 600 (e.g., keyboard, pointing device, bluetooth device, etc.) via an input/output (I/O) interface 540. The electronic device 500 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via a network adapter 550. As shown, the network adapter 550 communicates with the other modules of the electronic device 500 over the bus 530. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, according to exemplary embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Thus, various aspects of the disclosure may be embodied in the following forms,
namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.), 5 or an embodiment combining hardware and software aspects that may be collectively referred to herein as a "circuit" or a "module"
Or "system". Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure
The principles and concepts may include common general knowledge in the art or conventional techniques not disclosed in this disclosure. It is intended that the specification and embodiments be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims
Note that.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the following claims.

Claims (10)

1. A game control method characterized by providing a graphical user interface by a terminal device, the graphical user interface displaying a game screen of a virtual game, the method comprising:
when the graphical user interface plays the fighting logic in the virtual game, a listener registered for the fighting logic in advance determines a plurality of fighting expression logics associated with the fighting logic in response to acquiring a control instruction for the fighting logic, wherein the fighting expression logics are change logics of a plurality of visual pictures of a fighting expression object in the virtual fighting in the playing process of the fighting logic;
and driving a plurality of the combat performance logics to execute the control instructions and update the display content in the graphical user interface.
2. The method of claim 1, wherein said driving a plurality of said combat performance logic to execute said control instructions to update a display in said graphical user interface comprises:
if the control command is a pause command, driving a plurality of the fighting expression logics to execute the pause command, and displaying a paused fighting picture in the graphical user interface;
and if the control command is a speed change command, driving a plurality of the combat presentation logics to execute the speed change command, and playing the speed-changed combat logics in the graphical user interface.
3. The method of claim 2, wherein the driving the plurality of the combat performance logic to execute the pause instruction and display a paused combat screen in the graphical user interface comprises:
driving each combat expression logic to determine a first target visual picture displayed in the combat expression logic at the moment of receiving the pause instruction, so as to obtain a paused combat picture;
and pausing the playing of the combat logic, and displaying the paused combat picture in the graphical user interface.
4. The method of claim 3, further comprising:
continuing to play non-combat logic in the virtual game in the graphical user interface.
5. The method of claim 3, wherein after pausing the playing of the combat logic and displaying the paused combat screen in the graphical user interface, the method further comprises:
and in response to the acquired playing instruction of the fighting logic, driving each fighting performance logic to update and display a plurality of second target visual pictures so as to continue playing the fighting logic in the graphical user interface, wherein the second target visual pictures are visual pictures behind the first target visual pictures in the fighting performance logic.
6. The method of claim 3, wherein after pausing the playing of the combat logic and displaying the paused combat screen in the graphical user interface, the method further comprises:
in response to acquiring a reverse playing instruction of the fighting logic, each fighting performance logic is controlled to update and display a plurality of third target visual pictures so as to reverse the fighting logic in the graphical user interface, wherein the third target visual pictures are visual pictures before the first target visual picture in the fighting performance logic.
7. The method as claimed in claim 2, wherein said driving a plurality of said combat performance logics to execute said speed change command and play the speed-changed combat logic in said graphical user interface comprises:
determining the updated frame rate of the visual picture according to the frame rate of the terminal equipment and the combat logic variable speed value in the variable speed instruction;
and controlling each combat performance logic to update and display a fourth target visual picture according to the updated frame rate so as to play the variable-speed combat logic in the graphical user interface, wherein the fourth target visual picture is a visual picture behind the visual picture displayed by the combat performance logic at the receiving moment of the variable-speed instruction.
8. A game control apparatus that provides a graphical user interface that displays a game screen of a virtual game through a terminal device, the apparatus comprising:
a trigger module configured to determine, when the graphical user interface plays the battle logic in the virtual game, a plurality of battle expression logics associated with the battle logic in response to acquiring a control instruction for the battle logic by a listener registered in advance for the battle logic, where the battle expression logics are change logics of a plurality of visual images of a battle expression object in the virtual battle during playing of the battle logic;
and the driving module is configured to drive the plurality of fighting performance logics to execute the control instruction and update the display content in the graphical user interface.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
10. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any of claims 1 to 7 via execution of the executable instructions.
CN202211525338.XA 2022-11-30 2022-11-30 Game control method, device, medium and electronic equipment Pending CN115779405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211525338.XA CN115779405A (en) 2022-11-30 2022-11-30 Game control method, device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211525338.XA CN115779405A (en) 2022-11-30 2022-11-30 Game control method, device, medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN115779405A true CN115779405A (en) 2023-03-14

Family

ID=85444180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211525338.XA Pending CN115779405A (en) 2022-11-30 2022-11-30 Game control method, device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN115779405A (en)

Similar Documents

Publication Publication Date Title
US10771565B2 (en) Sending application input commands over a network
CN110418151B (en) Bullet screen information sending and processing method, device, equipment and medium in live game
US10143924B2 (en) Enhancing user experience by presenting past application usage
CN107050850A (en) The recording and back method of virtual scene, device and playback system
CN103777999A (en) Android software simulation method and device
CN111760272B (en) Game information display method and device, computer storage medium and electronic equipment
CN113426114A (en) Game information prompting method and device, readable storage medium and electronic equipment
JP2016524730A (en) Information processing apparatus, control method therefor, and program
CN112035046A (en) List information display method and device, electronic equipment and storage medium
CN110784753A (en) Interactive video playing method and device, storage medium and electronic equipment
CN112023402A (en) Game data processing method, device, equipment and medium
CN113827970B (en) Information display method and device, computer readable storage medium and electronic equipment
CN109739648B (en) Animation playing control method, device, equipment and storage medium
CN110362375A (en) Display methods, device, equipment and the storage medium of desktop data
US20150352442A1 (en) Game having a Plurality of Engines
CN111475240B (en) Data processing method and system
CN113163213B (en) Method, device and storage medium for live game
CN115779405A (en) Game control method, device, medium and electronic equipment
CN113825022B (en) Method and device for detecting play control state, storage medium and electronic equipment
CN111773712A (en) Interaction control method and device, electronic equipment and computer readable storage medium
CN113457130B (en) Game content playback method and device, readable storage medium and electronic equipment
CN115643462B (en) Interactive animation display method and device, computer equipment and storage medium
CN115671712B (en) Vibration control method, device, equipment and storage medium
CN115509671B (en) Interactive courseware playing method, device, equipment and storage medium
CN116347144A (en) Special effect rendering method, special effect rendering device, storage medium and equipment

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