Game special effect display method, device, equipment and medium

文档序号:1633899 发布日期:2020-01-17 浏览:30次 中文

阅读说明:本技术 一种游戏特效显示方法、装置、设备及介质 (Game special effect display method, device, equipment and medium ) 是由 刘智洪 梁超 于 2019-10-30 设计创作,主要内容包括:本申请提供的游戏特效显示方法,可用于射击游戏中的特效显示,包括:获取用户触发的开枪操作,开枪操作为射击游戏中的用于触发游戏角色开枪的操作;当开枪操作所发射的子弹击中第一障碍物时,获取与第一障碍物对应的第一特效;在第一障碍物上显示第一特效。本申请实施例还提供一种装置、设备及介质,能够通过判断游戏中所击中的障碍物来获取与该障碍物对应的特效,从而在被击中的障碍物上显示击打效果,便于玩家在游戏过程中区分武器击打的痕迹。(The game special effect display method provided by the application can be used for special effect display in a shooting game, and comprises the following steps: acquiring a gun opening operation triggered by a user, wherein the gun opening operation is an operation for triggering a game role to open a gun in a shooting game; when a bullet shot by the gun opening operation hits a first obstacle, acquiring a first special effect corresponding to the first obstacle; a first effect is displayed on the first obstacle. The embodiment of the application also provides a device, equipment and a medium, which can obtain the special effect corresponding to the barrier by judging the barrier hit in the game, so that the hitting effect is displayed on the hit barrier, and the player can distinguish the traces of weapon hitting in the game process conveniently.)

1. A game effect display method for use in a shooting game, comprising:

acquiring a gun firing operation triggered by a user, wherein the gun firing operation is an operation for triggering a game role to fire a gun in the shooting game;

when a bullet shot by the gun opening operation hits a first obstacle, acquiring a first special effect corresponding to the first obstacle;

and displaying the first special effect on the first barrier, wherein the first special effect is used for displaying a bullet hole effect and a fragment effect of the first barrier hit by the gun opening operation.

2. The method of claim 1, wherein obtaining a first special effect corresponding to the first obstacle comprises:

acquiring first material information of the first barrier, wherein the first material information is used for recording the material of the first barrier;

acquiring first bullet hole special effect information corresponding to the first material information according to the first material information;

the displaying the first effect on the first obstacle includes:

and displaying a first bullet hole special effect on the first barrier according to the first bullet hole special effect information.

3. The method of claim 2, wherein said obtaining a user-triggered fire operation comprises:

acquiring a first track of a bullet fired by the gun firing operation;

the displaying a first bullet hole special effect on the first barrier according to the first bullet hole special effect information includes:

and displaying the first bullet hole special effect on the intersection point of the first track and the first obstacle.

4. The method according to claim 3, wherein when the first material information includes a fragment special effect, the displaying a first bullet hole special effect on the first obstacle according to the first bullet hole special effect information includes:

and displaying the fragment special effect on the first bullet hole special effect, wherein the fragment special effect is used for simulating the fragment splashing effect.

5. The method of claim 4, wherein prior to obtaining a first special effect corresponding to a first obstacle when a bullet fired by the firing operation hits the first obstacle, further comprising:

acquiring a first included angle between the first track and the first obstacle;

the fragment special effect is displayed on the first bullet hole special effect. The method comprises the following steps:

and displaying the splashing direction of the fragments with the fragment special effect on the first bullet hole special effect according to the first included angle.

6. The method of claim 5, wherein when the thickness of the first obstacle is less than a threshold value, before obtaining a first special effect corresponding to the first obstacle when a bullet fired by the firing operation hits the first obstacle, further comprising:

acquiring a penetrating track and a penetrating track of the first track in the first barrier, wherein the surface of the penetrating track, which is intersected with the first barrier, is a penetrating surface, and the surface of the penetrating track, which is intersected with the first barrier, is a penetrating surface;

the obtaining a first special effect corresponding to the first obstacle includes:

acquiring a first sub-special effect corresponding to the penetration surface;

acquiring a second sub-special effect corresponding to the penetrating surface;

the displaying the first effect on the first obstacle includes:

and displaying the first sub-special effect on the penetration surface, and displaying the second sub-special effect on the penetration surface.

7. The method of any of claims 1 to 6, wherein after displaying the first effect on the first obstacle, further comprising:

and canceling the display of the first special effect after a preset time period.

8. A game effect display device for use in a shooting game, comprising:

the shooting game system comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring a gun shooting operation triggered by a user, and the gun shooting operation is used for triggering a game role to shoot in the shooting game;

a second acquisition unit configured to acquire a first special effect corresponding to a first obstacle when the bullet fired by the gun firing operation acquired by the first acquisition unit hits the first obstacle;

a display unit configured to display the first special effect acquired by the second acquisition unit on the first obstacle.

9. A computer device, characterized in that the computer device comprises: an interaction device, an input/output (I/O) interface, a processor, and a memory having program instructions stored therein;

the interaction device is used for acquiring an operation instruction input by a user;

the processor is configured to execute program instructions stored in the memory to perform the method of any of claims 1-7.

10. A computer-readable storage medium comprising instructions that, when executed on a computer device, cause the computer device to perform the method of any one of claims 1-7.

Technical Field

The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a medium for displaying a game effect.

Background

In a shooting game in the field of electronic games, a player plays a game by controlling characters to shoot weapons, wherein when the weapons shoot most objects, a special effect is given back to show a target point hit by the player, for example, when another game character hits, a special effect similar to red blood is played on the hit game character to prompt the player to hit the shooting.

Disclosure of Invention

In view of the above, in order to solve the above problems, the present invention provides the following technical solutions:

a game effect display method for use in a shooting game, comprising:

acquiring a gun firing operation triggered by a user, wherein the gun firing operation is an operation for triggering a game role to fire a gun in the shooting game;

when a bullet shot by the gun opening operation hits a first obstacle, acquiring a first special effect corresponding to the first obstacle;

displaying the first effect on the first obstacle.

A game effect display apparatus for use in a shooting game, comprising:

the shooting game system comprises a first acquisition unit, a second acquisition unit and a control unit, wherein the first acquisition unit is used for acquiring a gun shooting operation triggered by a user, and the gun shooting operation is used for triggering a game role to shoot in the shooting game;

a second acquisition unit configured to acquire a first special effect corresponding to a first obstacle when the bullet fired by the gun firing operation acquired by the first acquisition unit hits the first obstacle;

a display unit configured to display the first special effect acquired by the second acquisition unit on the first obstacle.

Optionally, the second obtaining unit is further configured to:

acquiring first material information of the first barrier, wherein the first material information is used for recording the material of the first barrier;

acquiring first bullet hole special effect information corresponding to the first material information according to the first material information;

the displaying the first effect on the first obstacle includes:

and displaying a first bullet hole special effect on the first barrier according to the first bullet hole special effect information.

Optionally, the first obtaining unit is further configured to:

acquiring a first track of a bullet fired by the gun firing operation;

the displaying a first bullet hole special effect on the first barrier according to the first bullet hole special effect information includes:

and displaying the first bullet hole special effect on the intersection point of the first track and the first obstacle.

Optionally, when the first material information includes a fragment special effect, the display unit is further configured to:

and displaying the fragment special effect on the first bullet hole special effect, wherein the fragment special effect is used for simulating the fragment splashing effect.

Optionally, the apparatus further includes a third obtaining unit, where the third obtaining unit is configured to:

acquiring a first included angle between the first track and the first obstacle;

the display unit is further configured to:

and displaying the splashing direction of the fragments with the fragment special effect on the first bullet hole special effect according to the first included angle.

Optionally, when the thickness of the first obstacle is smaller than a threshold, the apparatus further includes a fourth acquiring unit, configured to:

acquiring a penetrating track and a penetrating track of the first track in the first barrier, wherein the surface of the penetrating track, which is intersected with the first barrier, is a penetrating surface, and the surface of the penetrating track, which is intersected with the first barrier, is a penetrating surface;

the second obtaining unit is further configured to:

acquiring a first sub-special effect corresponding to the penetration surface;

acquiring a second sub-special effect corresponding to the penetrating surface;

the display unit is further configured to:

and displaying the first sub-special effect on the penetration surface, and displaying the second sub-special effect on the penetration surface.

Optionally, the apparatus further comprises a timing unit, the timing unit is configured to:

and canceling the display of the first special effect after a preset time period.

A computer storage medium comprising instructions which, when executed on a computer device, cause the computer device to perform the method of any one of the preceding claims.

A computer-readable storage medium comprising instructions that, when executed on a computer device, cause the computer device to perform the method of any of the above.

The game special effect display method provided by the application can be used for special effect display in a shooting game, and comprises the following steps: acquiring a gun firing operation triggered by a user, wherein the gun firing operation is an operation for triggering a game role to fire a gun in the shooting game; when a bullet shot by the gun opening operation hits a first obstacle, acquiring a first special effect corresponding to the first obstacle; displaying the first effect on the first obstacle. The embodiment of the application also provides a device, equipment and a medium, which can obtain the special effect corresponding to the barrier by judging the barrier hit in the game, thereby displaying the accurate hitting effect on the barrier and being convenient for a player to distinguish the traces of weapon hitting in the game process.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.

FIG. 1 is a flow diagram of one embodiment of a game effect display method provided by embodiments of the present application;

FIG. 2 is a flow chart of another embodiment of a game effect display method provided by an embodiment of the present application;

fig. 3 is a schematic diagram illustrating a method for displaying a game effect according to an embodiment of the present application, where material information is queried according to a first obstacle;

FIG. 4 is a flow chart of another embodiment of a game effect display method provided by an embodiment of the present application;

FIG. 5 is a flow chart of another embodiment of a game effect display method provided by an embodiment of the present application;

FIG. 6 is a diagram illustrating a fragment effect display in a game effect display method according to an embodiment of the present disclosure;

FIG. 7 is a flowchart of another embodiment of a game effect display method provided by an embodiment of the present application;

FIG. 8 is a flow chart of another embodiment of a game effect display method provided by an embodiment of the present application;

fig. 9 is a schematic diagram of obtaining a penetration track and a penetration track in the game special effect display method according to the embodiment of the present application;

FIG. 10 is a diagram illustrating a penetration display effect in a method for displaying a game effect according to an embodiment of the present application;

fig. 11 is a schematic diagram of a wear-out-surface effect display in a game effect display method according to an embodiment of the present application;

FIG. 12 is a flow chart of another embodiment of a game effect display method provided by an embodiment of the present application;

FIG. 13 is a schematic diagram of a computer device provided by an embodiment of the present application;

fig. 14 is a schematic diagram of a game effect display device according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the above-described drawings (if any) are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.

In a shooting game in the field of electronic games, a player plays a game by controlling characters to shoot weapons, wherein when the weapons shoot most objects, a special effect is given back to show a target point hit by the player, for example, when another game character hits, a special effect similar to red blood is played on the hit game character to prompt the player to hit the shooting.

When a player shoots a barrier in the strike through a weapon, the surface of the barrier hit shows a special shot hole effect to prompt the player that the barrier was hit by the weapon, but the special shot hole effect may not be obvious enough, and particularly when the player attacks a distant target, the player has difficulty in distinguishing where to hit, so that a special hit effect display of the barrier needs to be added.

Therefore, in view of the above problems, the embodiments of the present application provide a game special effect display method, which can be applied to a shooting game, and it should be noted that the game special effect display method provided by the embodiments of the present application can also be applied to various special effect displays with a striking effect, and the embodiments of the present application are not limited thereto. For ease of understanding, the methods provided in the examples of the present application are described in detail below.

Referring to fig. 1, as shown in fig. 1, a game effect display method provided by the embodiment of the present application includes the following steps.

101. And acquiring the gun opening operation triggered by the user.

In this embodiment, the gun firing operation is an operation for triggering a game character to fire a gun in a shooting game, for example, a gun firing operation triggered by a user clicking a mouse in a PC-side game, or an operation triggered by a user touching a gun firing button in a game such as a mobile terminal (e.g., a smart phone or a tablet computer).

102. When a bullet fired by a firing operation hits a first obstacle, a first special effect corresponding to the first obstacle is acquired.

In this embodiment, the first obstacle may be a unit of a non-game character in the game, such as a wall, a stone, a floor, or the like; the game system is pre-stored with a table, the table records the corresponding relation between different obstacles and special effects, and when a bullet fired by the gun firing operation hits a first obstacle, a first special effect corresponding to the first obstacle is obtained according to the table.

103. A first effect is displayed on the first obstacle.

In this embodiment, when the first obstacle is hit by the gun firing operation, the first special effect corresponding to the first obstacle is displayed on the first obstacle.

In the embodiment, according to the preset corresponding relation between the barrier and the special effect, when the barrier is judged to be hit by the gun-firing operation triggered by the user, the special effect corresponding to the barrier is displayed on the barrier, so that the user can know the hitting point of the gun-firing operation according to the special effect in the game process, and the reality of the game special effect is improved.

It should be noted that, for the display of the special effects, different special effect display contents may be included, and optionally, the display of the special effects may be specifically detailed as: firstly, refining a special effect display effect according to different barrier materials; secondly, adding the fragment splash display effect to the special effect, and for the convenience of understanding, the following description will be made for the two cases respectively with reference to the attached drawings.

Firstly, the special effect display effect is refined according to different barrier materials.

In this embodiment, different obstacles in the game correspond to different material information, and different special effect display effects are distinguished according to the material information in the display process, so that the game special effect has more real experience, please refer to fig. 2, which is shown in fig. 2.

201. And acquiring the gun opening operation triggered by the user.

In this embodiment, this step may refer to step 101 described above, and is not described herein again.

202. When a bullet shot by the gun-firing operation hits a first obstacle, first material information of the first obstacle is acquired.

In this embodiment, the first material information is used to record the material of the first obstacle, and optionally, the game system records the corresponding relationship between various obstacles and the material information, for example, as shown in fig. 3, if the first obstacle 301 is a tile, the game system 302 records the texture material information of the tile.

203. And acquiring first bullet hole special effect information corresponding to the first material information according to the first material information.

In this embodiment, different material information corresponds there is different bullet hole special effect information, for example, when the material is wooden, bullet hole area is great, and when the material was stone, bullet hole area is less to make the demonstration of the special effect in bullet hole can be according to the difference of material to some extent difference, promoted the sense of reality of recreation special effect.

204. And displaying the first bullet hole special effect on the first barrier according to the first bullet hole special effect information.

In this embodiment, according to the acquired first bullet hole special effect information corresponding to the first obstacle, the bullet hole special effect is displayed on the first obstacle, so that the effect of hitting the obstacle can be accurately displayed according to the difference of materials.

It should be noted that, in the process of the above work, the specific position of the first obstacle hit by the gun opening operation needs to be calculated, so that the user can judge the trajectory of the gun opening operation according to the bullet hole special effect. As shown in fig. 4, the method specifically includes the following steps.

401. A first trajectory of a bullet fired by a firing operation is acquired.

In this embodiment, the first trajectory may be obtained by obtaining a straight line of the direction pointed by the muzzle at the moment of opening the gun as the first trajectory, and further, for some optimized schemes, the direction pointed by the muzzle may be moved down properly according to the distance of the shooting range, so as to simulate the effect of bullet dropping.

The steps 402 to 403 can refer to the steps 202 to 203, which are not described herein again.

404. And displaying a first bullet hole special effect on the intersection point of the first track and the first obstacle.

In this embodiment, reference may be made to step 204 for a specific manner of obtaining and displaying the first bullet hole special effect, and the difference is that the display position of the first bullet hole special effect is located at an intersection of the first track and the first obstacle, so that a game user may determine a shooting trajectory according to the display of the bullet hole special effect.

Secondly, adding fragment splash display effect into the special effect.

In the above steps 201 to 204 and 401 to 404, when the barrier is hit by the bullet, the bullet hole effect is added, and on this basis, in the process that the bullet hits the barrier, the fragment splashing effect can be further added, so that the hitting feeling of the bullet on the barrier is simulated, and meanwhile, the user can know the hit position of the gun opening operation through the fragment splashing effect. Referring to fig. 5, as shown in fig. 5, the method specifically includes the following steps.

501. A first trajectory of a bullet fired by a firing operation is acquired.

In this embodiment, this step may refer to step 401 described above, and is not described herein again.

502. When a bullet shot by the gun-firing operation hits a first obstacle, first material information of the first obstacle is acquired.

In this embodiment, this step may refer to step 202, which is not described herein again.

503. And acquiring a fragment special effect corresponding to the first material information according to the first material information.

In this embodiment, the first material information further includes a fragment special effect, for example, for an obstacle of a stone material, a splashed stone fragment may be displayed when the obstacle is hit, for a grass obstacle, a fragment flying when hitting on a grass, and the like, and the fragment special effect may enhance a display effect that the material is hit.

504. And displaying the fragment special effect on the intersection point of the first track and the first obstacle.

In this embodiment, at the intersection point of the first trajectory and the first barrier, in addition to the bullet hole special effect, the fragment special effect is further displayed, so that the effect of fragment splashing when the barrier is struck by a bullet can be simulated, and the specific effect is as shown in fig. 6.

It should be noted that, in order to simulate the fragment splashing effect more truly, the included angle of the bullet flight trajectory hitting the obstacle can be further detected, and then the fragment splashing trajectory is adjusted according to the included angle, so that the fragment splashing effect is simulated more truly, and the user can judge the position of the bullet hitting the obstacle according to the fragment special effect. Referring to fig. 7, as shown in fig. 7, the method for adjusting the fragment splashing effect according to the bullet flight trajectory specifically includes the following steps.

701. A first trajectory of a bullet fired by a firing operation is acquired.

In this embodiment, this step may refer to step 401 described above, and is not described herein again.

702. When a bullet shot by the gun-firing operation hits a first obstacle, a first included angle between a first track and the first obstacle is obtained.

In this embodiment, a first included angle between the first track and the first obstacle is an incident angle of the bullet fired by the gun-firing operation hitting the first obstacle.

The steps 703 and 704 can refer to the steps 502 and 503, which are not described herein again.

705. And displaying the splashing direction of the fragments with the fragment special effect on the first bullet hole special effect according to the first included angle.

In this embodiment, the included angle between the splashing direction and the obstacle may be equal to the first included angle, or the fragments may be splashed vertically in the space where the first included angle intersects with the obstacle.

It should be noted that, for the above-mentioned displaying of the fragment special effect, it is necessary to determine whether the current obstacle can display the fragment special effect after the display of the bullet hole special effect, and after the material of the current obstacle has the fragment special effect, the above-mentioned steps 501 to 504 or steps 701 to 705 are performed. The display effect of the fragment special effect is obtained through calculation, the special effect playing is controlled by a special effect particle system, a program does not need to write logic control, and the special effect is only created and displayed.

It should be noted that, for some obstacles with a small thickness, such as a wall, in reality, if a bullet hits the wall, the bullet will pass through the other side of the wall, and there is a game mechanism for hitting other game characters through the wall in the shooting game, so that the through-wall special effect needs to be displayed in the special effect display link to simulate the display effect. Referring to fig. 8, as shown in fig. 8, the specific operation of the wall-through effect includes the following steps.

801. A first trajectory of a bullet fired by a firing operation is acquired.

In this embodiment, this step may refer to step 401 described above, and is not described herein again.

802. When the bullet shot by the gun-firing operation hits the first obstacle, the thickness of the first obstacle is judged.

In this embodiment, only when the thickness of the first obstacle is lower than a threshold value, which is a numerical value preset by a developer as needed, the subsequent steps are performed.

803. When the thickness of the first obstacle is smaller than the threshold value, a penetration track and a penetration track of the first track in the first obstacle are acquired.

In this embodiment, a plane where the penetration track intersects with the first obstacle is a penetration plane, and a plane where the penetration track intersects with the first obstacle is a penetration plane, that is, the bullet enters the first obstacle from the penetration plane and then penetrates out of the first obstacle from the penetration plane, as shown in fig. 9, for the first obstacle: the wall 901, OA is the entry trajectory of the bullet and OB is the exit trajectory of the bullet.

804. And acquiring a first sub-special effect corresponding to the penetration surface.

In this embodiment, the manner of obtaining the first sub-special effect may be any one of the above methods, and details are not described here.

805. And acquiring a second sub-special effect corresponding to the through surface.

In this embodiment, the manner of obtaining the second sub-special effect may be any one of the above methods, and details are not described here.

806. And displaying a first sub-special effect on the penetration surface.

In this embodiment, as shown in fig. 10, for an obstacle hit by a user through a gun opening operation, a special effect 1002 is displayed on a penetration surface 1001, and a specific special effect mode display may be the above-mentioned bullet hole special effect and/or fragment special effect, and specifically refer to any one of the above-mentioned methods, which is not described herein again.

807. And displaying the second sub-special effect on the through surface.

In this embodiment, as shown in fig. 11, for an obstacle hit by a user through a gun opening operation, a special effect 1102 is displayed on a penetration surface 1101, and a specific special effect manner display may be the above-mentioned bullet hole special effect and/or fragment special effect, which may specifically refer to any one of the above-mentioned methods, and details thereof are not described here.

In the above steps 801 to 807, for obstacles whose thickness is smaller than the threshold value, at both ends of the entry face and the exit face. The display of special effects is carried out respectively, so that the display effect of the special effects is more practical, furthermore, different bullet hole special effects and fragment special effects can be displayed respectively according to the difference of the information of the penetrating face and the penetrating face material, and the specific implementation mode can refer to the above records and is not described again here.

It should be noted that, in any of the above manners, the display time of the special effect is limited, and after the gun-opening operation is finished for a certain period of time, the special effect is finished to keep the integrity of the game picture.

For any one of the above-described embodiments of the game effect display method, the embodiments of the present application further provide a specific implementation, and for easy understanding, the following detailed description is made with reference to the accompanying drawings.

Referring to fig. 12, as shown in fig. 12, a specific implementation manner of the game effect display method according to the embodiment of the present application includes.

1201. When a user triggers a firing operation, a first trajectory of a bullet shot is acquired.

In this embodiment, in the game process, whether the user triggers the gun firing operation or not is continuously monitored, and when the user triggers the gun firing operation, a first trajectory of bullet firing is obtained. The specific manner of this step may refer to step 401, which is not described herein again.

1202. And judging whether the first track intersects with the obstacle.

In this embodiment, it is determined whether the first trajectory intersects the obstacle, and it is determined whether the bullet fired by the gun-opening operation hits the obstacle.

1203. And when the first track is intersected with the barrier, displaying the bullet hole special effect on the intersection point.

In this embodiment, the generation manner of the bullet hole special effect can refer to the description of the above steps, for example, the above step 103, steps 202 to 204, and the like.

1204. And judging whether the hit barrier can generate the fragment special effect.

In this embodiment, different obstacles have different material information, and in order to simulate a real situation as much as possible in a game, some obstacles need to generate a special fragment effect when being hit, and some obstacles do not display the special fragment effect when being hit, so that the judgment needs to be performed according to a preset situation.

1205. If the hit barrier can generate the fragment special effect, the fragment special effect is generated on the intersection point.

In this embodiment, the fragment special effect is displayed on the obstacle which can display the fragment special effect after being hit so as to simulate a real shooting situation, and the specific manner of generating the fragment special effect can refer to the above description, and is not described herein again.

To sum up, the game special effect display method provided by the present application can be used for special effect display in a shooting game, and includes: acquiring a gun firing operation triggered by a user, wherein the gun firing operation is an operation for triggering a game role to fire a gun in the shooting game; when a bullet shot by the gun opening operation hits a first obstacle, acquiring a first special effect corresponding to the first obstacle; displaying the first effect on the first obstacle. The embodiment of the application also provides a device, equipment and a medium, which can obtain the special effect corresponding to the barrier by judging the barrier hit in the game, thereby displaying the accurate hitting effect on the barrier and being convenient for a player to distinguish the traces of weapon hitting in the game process.

The above description is directed to the solutions provided in the embodiments of the present application. It will be appreciated that the computer device, in order to implement the above-described functions, comprises corresponding hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.

Described in terms of hardware structures, the method may be implemented by one entity device, may also be implemented by multiple entity devices together, and may also be a logic function module in one entity device, which is not specifically limited in this embodiment of the present application.

For example, the above methods may each be implemented by the computer device in fig. 13. Fig. 13 is a schematic hardware structure diagram of a computer device according to an embodiment of the present application. The computer device includes at least one processor 1301, communication lines 1302, memory 1303 and at least one communication interface 1304.

The processor 1301 may be a general processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more ASICs for controlling the execution of programs in accordance with the present invention.

The communication link 1302 may include a path to communicate information between the aforementioned components.

Communication interface 1304, using any transceiver or the like, is used to communicate with other devices or communication networks, such as ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), etc.

The memory 1303 may be, but is not limited to, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, optical disk storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be separate and coupled to the processor via a communication line 1302. The memory may also be integral to the processor.

The memory 1303 is used for storing computer-executable instructions for executing the scheme of the present application, and is controlled by the processor 1301 to execute the instructions. The processor 1301 is configured to execute the computer execution instructions stored in the memory 1303, so as to implement the method provided by the above-described embodiment of the present application.

Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application program codes, which are not specifically limited in the embodiments of the present application.

In particular implementations, processor 1301 may include one or more CPUs, such as CPU0 and CPU1 in fig. 13, as one embodiment.

In particular implementations, a computer device may include multiple processors, such as processor 1301 and processor 1307 in fig. 13, as an example. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).

In particular implementations, computer device may also include an output device 1305 and an input device 1306, as an embodiment. The output device 1305, which is in communication with the processor 1301, may display information in a variety of ways. For example, the output device 1305 may be a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display device, a Cathode Ray Tube (CRT) display device, a projector (projector), or the like. Input device 1306 is in communication with processor 1301 and may receive user input in a variety of ways. For example, the input device 1306 may be a mouse, a keyboard, a touch screen device, or a sensing device, among others.

The computer device may be a general purpose device or a special purpose device. In a specific implementation, the computer device may be a desktop computer, a laptop computer, a web server, a Personal Digital Assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, an embedded device, or a device with a similar structure as in fig. 13. The embodiment of the application does not limit the type of the computer equipment.

In the embodiment of the present application, the storage device may be divided into the functional units according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.

For example, in the case where the respective functional units are divided in an integrated manner, fig. 14 shows a schematic diagram of a game effect display device.

As shown in fig. 14, the game effect display device provided in the embodiment of the present application includes:

a first acquiring unit 1401, wherein the first acquiring unit 1401 is used for acquiring a gun firing operation triggered by a user, and the gun firing operation is used for triggering the gun firing of a game role in the shooting game;

a second acquiring unit 1402, the second acquiring unit 1402 being configured to acquire a first special effect corresponding to a first obstacle when the bullet fired by the gun firing operation acquired by the first acquiring unit 1401 hits the first obstacle;

a display unit 1403, wherein the display unit 1403 is used for displaying the first special effect acquired by the second acquisition unit 1402 on the first obstacle.

Optionally, the second obtaining unit 1402 is further configured to:

acquiring first material information of the first barrier, wherein the first material information is used for recording the material of the first barrier;

acquiring first bullet hole special effect information corresponding to the first material information according to the first material information;

the displaying the first effect on the first obstacle includes:

and displaying a first bullet hole special effect on the first barrier according to the first bullet hole special effect information.

Optionally, the first obtaining unit 1401 is further configured to:

acquiring a first track of a bullet fired by the gun firing operation;

the displaying a first bullet hole special effect on the first barrier according to the first bullet hole special effect information includes:

and displaying the first bullet hole special effect on the intersection point of the first track and the first obstacle.

Optionally, when the first material information includes a fragment special effect, the display unit 1403 is further configured to:

and displaying the fragment special effect on the first bullet hole special effect, wherein the fragment special effect is used for simulating the fragment splashing effect.

Optionally, the apparatus further includes a third obtaining unit 1404, where the third obtaining unit 1404 is configured to:

acquiring a first included angle between the first track and the first obstacle;

the display unit 1403 is further configured to:

and displaying the splashing direction of the fragments with the fragment special effect on the first bullet hole special effect according to the first included angle.

Optionally, when the thickness of the first obstacle is smaller than a threshold, the apparatus further includes a fourth obtaining unit 1406, where the fourth obtaining unit 1406 is configured to:

acquiring a penetrating track and a penetrating track of the first track in the first barrier, wherein the surface of the penetrating track, which is intersected with the first barrier, is a penetrating surface, and the surface of the penetrating track, which is intersected with the first barrier, is a penetrating surface;

the second obtaining unit 1402 is further configured to:

acquiring a first sub-special effect corresponding to the penetration surface;

acquiring a second sub-special effect corresponding to the penetrating surface;

the display unit 1403 is further configured to:

and displaying the first sub-special effect on the penetration surface, and displaying the second sub-special effect on the penetration surface.

Optionally, the apparatus further comprises a timing unit 1405, the timing unit 1405 being configured to:

and canceling the display of the first special effect after a preset time period.

Further, an embodiment of the present invention also provides a computer storage medium, which includes instructions that, when executed on a computer device, cause the computer device to execute the above method.

For a detailed description of the program stored in the computer storage medium provided in the embodiments of the present application, reference may be made to the above embodiments, which are not described herein again.

The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.

Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:可时序穿越障碍门的旋转木马

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!

技术分类