Skip to content

Sound Effects

aman-86 edited this page Oct 19, 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 files

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 files.

UpgradeTree Button

Upgrade Tree is a Button on Planet screen plays the sound when player press mouse click on it. This button when click will open the weapon upgrade window to upgrade weapons. This is how sound is been triggered for Upgrade Tree button selection in the given code Snippet.

Screenshot 2023-10-03 at 16 16 53.

upgradeTree 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 files.

UpgradeTree close Button

UpgradeTree close button is inside of UpgradeTree Button on Planet screen which plays the sound when player press mouse click on it. This button when click will close the weapon upgradeTree window. This is how sound is been triggered for Upgrade Tree button selection in the given code Snippet. Screenshot 2023-10-19 at 12 20 28.

The above method in the given code snippet has been implemented in UpgradeTree class which triggers the sound when called in UpgradeDisplay class. below code snippet defines the methods call.

Screenshot 2023-10-19 at 12 19 37.

**Player Weapon's functionality **

Weapon's functionality is to attack the surrounded enemies in the game. The sound effect enhance the functionality of each weapon, and makes the player's experience more interactive. There are different levels of sound effects placed for individual weapons.

Screenshot 2023-10-19 at 12 31 04.

The above code snippet describes the placement and working of sound effects. start in the code snippets define the sound placed for the melee weapons, it will only play once in every attack. and mid in the code snippet define the sound placed for the Ranged Weapons, it will play in a loop of every attack.

Player Weapon Upgrade

Weapon Upgrade sound of the player is trigger when player press mouse click to near by button of each weapon picture in Upgrade tree and is implemented in Upgrade Tree. This is how sound is been triggered for Player's weapon upgrade selection in the given code Snippet.

Screenshot 2023-10-01 at 6 37 37 PM.

upgradeWeapon 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 files.

Structure Place Sound

Sound effect has been implemented for placing structure. This is how sound is been triggered for structure placement in the given code Snippet.

Screenshot 2023-10-19 at 12 47 38.

structurePlace 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 files.

Testing Plan

Player Sound effects such as Walking, Dodging and Weapon Upgrade has been tested in accordance with Player Sound Effects Testing Plan

Clone this wiki locally