Skip to content

Sound Effects

aman-86 edited this page Oct 1, 2023 · 14 revisions

Introduction

This page will provide you the information related to the sounds effects which has been implemented in the Game. Sounds effects such as for Player, Enemy, and many other entities.

Player Sound

The player has been implemented with some effects such as walk, dodge, low-health and weapon upgrade sound effects. these sound effects handle by Sound Config and Sound Component and the trigger by the EventHandler

Player Walk Sound

Walking sound of the player is trigger when player starts walking and is implemented in KeyboardPlayerInputComponent. This is how sound is been triggered for Player's walk in the given code Snippet.

Screenshot 2023-10-01 at 6 18 51 PM.

Screenshot 2023-10-01 at 6 19 03 PM.

footstep in given above code snippet is way of mentioning the audio file which is been implemented in .json file and playSound is a way of calling Sound Component which handles the audio file

Player Dodge Sound

Dodging sound of the player is trigger when player press SPACEBAR to Dodge and is implemented in KeyboardPlayerInputComponent. This is how sound is been triggered for Player's Dodge in the given code Snippet.

Screenshot 2023-10-01 at 6 26 25 PM.

dodge in given above code snippet is way of mentioning the audio file which is been implemented in .json file and playSound is a way of calling Sound Component which handles the audio file

Clone this wiki locally