Game playback method and device, electronic equipment and storage medium

文档序号:1438207 发布日期:2020-03-24 浏览:23次 中文

阅读说明:本技术 一种游戏回放方法、装置、电子设备及存储介质 (Game playback method and device, electronic equipment and storage medium ) 是由 黄鑫 于 2019-11-26 设计创作,主要内容包括:本公开实施例公开了一种游戏回放方法、装置、电子设备及存储介质,该方法包括:在游戏过程中实时记录设定关键信息;当进入游戏回放模式时,基于所述设定关键信息对关联的游戏过程进行回放;基于所述设定关键信息确定聚焦事件;当回放至所述聚焦事件的发生时刻时,依据所述设定关键信息确定虚拟摄像机的位置以及摄像视角,以转换所述聚焦事件的显示角度。本公开实施例的技术方案,实现了对关键游戏细节的清楚回放,提升了玩家的观看体验。(The embodiment of the disclosure discloses a game playback method, a game playback device, electronic equipment and a storage medium, wherein the method comprises the following steps: recording set key information in real time in the game process; when a game playback mode is entered, playing back the associated game process based on the set key information; determining a focusing event based on the set key information; and when the occurrence time of the focusing event is played back, determining the position and the camera angle of the virtual camera according to the set key information so as to convert the display angle of the focusing event. According to the technical scheme of the embodiment of the disclosure, the clear playback of the key game details is realized, and the viewing experience of the player is improved.)

1. A game playback method, comprising:

recording set key information in real time in the game process;

when a game playback mode is entered, playing back the associated game process based on the set key information;

determining a focusing event based on the set key information;

and when the occurrence time of the focusing event is played back, determining the position and the camera angle of the virtual camera according to the set key information so as to convert the display angle of the focusing event.

2. The method of claim 1, wherein the setting key information comprises at least one of:

input information of each game character and time when the information is input;

enemy energy information and my energy information;

skill state values.

3. The method of claim 1, wherein the playing back the associated game process based on the set key information when entering the game playback mode comprises:

and re-executing the game command associated with the set key information to reproduce the game process associated with the set key information.

4. The method of claim 1, wherein determining a focus event based on the set key information comprises:

determining the injury value brought by the first game role to the second game role based on the set key information;

when the injury value reaches an injury threshold, determining the injury event as a focused event.

5. The method according to any one of claims 1 to 4, wherein when the focus event is an attack event, and when the focus event is played back to the occurrence time of the focus event, determining the position and the camera angle of view of a virtual camera according to the set key information to convert the display angle of the focus event comprises:

determining the downward angle position of the virtual camera by launching the downward angle coordinate of the attacking character, the downward angle coordinate of the attacked character, the downward angle coordinate of the position where the attack is generated and the angle of view of the virtual camera when the focusing event occurs;

and determining the position and the camera angle of the virtual camera according to the overlooking angular position of the virtual camera, so that the attack generating position is positioned at the center of a playback picture, and the attack initiating role and the attacked role are positioned at two ends of the playback picture.

6. The method according to any one of claims 1-4, further comprising, after the playback is finished:

and counting the time and frequency information of the occurrence of the focusing event in a chart form.

7. The method according to any one of claims 1-4, further comprising:

visually marking the focusing event.

8. A game playback apparatus, comprising:

the recording module is used for recording the set key information in real time in the game process;

the playback module is used for playing back the associated game process based on the set key information when a game playback mode is entered;

a determination module for determining a focusing event based on the set key information;

and the conversion module is used for determining the position and the camera angle of the virtual camera according to the set key information when the occurrence time of the focusing event is played back so as to convert the display angle of the focusing event.

9. An electronic device, characterized in that the electronic device comprises:

one or more processors;

a storage device for storing one or more programs,

when executed by the one or more processors, cause the one or more processors to implement a game playback method as recited in any of claims 1-7.

10. A storage medium containing computer-executable instructions for performing the game playback method of any one of claims 1-7 when executed by a computer processor.

Technical Field

The embodiment of the disclosure relates to the technical field of computers, and in particular relates to a game playback method and device, an electronic device and a storage medium.

Background

The recording of the game generally means that data (i.e. game playback data) related to the interaction process and the effect of the player in the game scene is saved, so that the interaction process and the effect of the player in the game scene can be reproduced by reloading the game playback data. The recording and playback of games is an important means for players to study the tactics of games and to communicate with each other, especially for strategy games, the playing back of games and the thinking of decisions in games are important ways to improve the game level of players.

Existing game playback includes video playback and programmed playback. The video playback is to record the game process in the form of video, and directly play the video during playback. The programmed playback is mainly realized by recording the input of the player in the game process, restoring the recorded user input according to the corresponding time point during the playback, and running the same game process as before through the same input sequence.

The above game playback mode is usually played back from the perspective of the player character, so that the player cannot view the game playback from other perspective of the player character. Or even if the view angle switching is supported, the player is required to manually switch the view angle, and only the view angle of a specific character can be switched to, but some game effects or key skill effects generally cannot make the player better view and see clearly no matter which character view angle the player plays back.

Disclosure of Invention

The embodiment of the disclosure provides a game playback method and device, an electronic device and a storage medium, which realize clear playback of key game details and improve the viewing experience of a player.

In a first aspect, an embodiment of the present disclosure provides a game playback method, including:

recording set key information in real time in the game process;

when a game playback mode is entered, playing back the associated game process based on the set key information;

determining a focusing event based on the set key information;

and when the occurrence time of the focusing event is played back, determining the position and the camera angle of the virtual camera according to the set key information so as to convert the display angle of the focusing event.

Further, the setting of the key information includes at least one of:

input information of each game character and time when the information is input;

enemy energy information and my energy information;

skill state values.

Further, when the game playback mode is entered, playing back the associated game process based on the set key information includes:

and re-executing the game command associated with the set key information to reproduce the game process associated with the set key information.

Further, the determining a focusing event based on the setting key information includes:

determining the injury value brought by the first game role to the second game role based on the set key information;

when the injury value reaches an injury threshold, determining the injury event as a focused event.

Further, when the focusing event is an attack event, and when the focusing event is played back to the occurrence time of the focusing event, determining the position and the camera angle of the virtual camera according to the set key information to convert the display angle of the focusing event, including:

determining the downward angle position of the virtual camera by launching the downward angle coordinate of the attacking character, the downward angle coordinate of the attacked character, the downward angle coordinate of the position where the attack is generated and the angle of view of the virtual camera when the focusing event occurs;

and determining the position and the camera angle of the virtual camera according to the overlooking angular position of the virtual camera, so that the attack generating position is positioned at the center of a playback picture, and the attack initiating role and the attacked role are positioned at two ends of the playback picture.

Further, after the playback is finished, the method further includes:

and counting the time and frequency information of the occurrence of the focusing event in a chart form.

Further, the method also comprises the following steps:

visually marking the focusing event.

In a second aspect, the disclosed embodiments also provide a game playback apparatus, including:

the recording module is used for recording the set key information in real time in the game process;

the playback module is used for playing back the associated game process based on the set key information when a game playback mode is entered;

a determination module for determining a focusing event based on the set key information;

and the conversion module is used for determining the position and the camera angle of the virtual camera according to the set key information when the occurrence time of the focusing event is played back so as to convert the display angle of the focusing event.

In a third aspect, an embodiment of the present disclosure further provides an apparatus, where the apparatus includes:

one or more processors;

a storage device for storing one or more programs,

when executed by the one or more processors, cause the one or more processors to implement a game playback method as in any of the embodiments of the present disclosure.

In a fourth aspect, the disclosed embodiments also provide a storage medium containing computer-executable instructions for performing the game playback method according to any one of the disclosed embodiments when executed by a computer processor.

According to the technical scheme of the embodiment of the disclosure, the set key information is recorded in real time in the game process; when a game playback mode is entered, playing back the associated game process based on the set key information; determining a focusing event based on the set key information; and when the focusing event occurs, determining the position and the camera angle of the virtual camera according to the set key information so as to convert the display angle of the focusing event, thereby realizing the clear playback of key game details and improving the viewing experience of the player.

Drawings

The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.

Fig. 1 is a schematic flow chart of a game playback method according to an embodiment of the present disclosure;

FIG. 2 is a schematic diagram of determining an angular position of a virtual camera from a top view according to an embodiment of the present disclosure;

fig. 3 is a schematic structural diagram of a game playback apparatus according to a second embodiment of the disclosure;

fig. 4 is a schematic structural diagram of an electronic device according to a third embodiment of the disclosure.

Detailed Description

Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.

It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.

The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.

It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.

It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:多虚拟对象交互的方法、装置、服务器及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类