- Godot Engine Game Development Projects
- Chris Bradfield
- 137字
- 2021-06-18 18:51:32
Sound
Sound is one of the most important but often neglected pieces of game design. Good sound design can add a huge amount of juice to your game for a very small amount of effort. Sounds can give the player feedback, connect them emotionally to the characters, or even be a part of the gameplay.
For this game, you're going to add three sound effects. In the Main scene, add three AudioStreamPlayer nodes and name them CoinSound, LevelSound, and EndSound. Drag each sound from the audio folder (you can find it under assets in the FileSystem dock) into the corresponding Stream property of each node.
To play a sound, you call the play() function on it. Add $CoinSound.play() to the _on_Player_pickup() function, $EndSound.play() to the game_over() function, and $LevelSound.play() to the spawn_coins() function.
- Canvas LMS Course Design
- Circos Data Visualization How-to
- Blockchain Quick Start Guide
- 網(wǎng)上生活必備
- Visual C# 2008開發(fā)技術(shù)實例詳解
- Hands-On Cybersecurity with Blockchain
- JSF2和RichFaces4使用指南
- 21天學(xué)通Java
- Windows 7寶典
- 系統(tǒng)安裝與重裝
- Embedded Programming with Modern C++ Cookbook
- 嵌入式GUI開發(fā)設(shè)計
- Mastering Text Mining with R
- 大數(shù)據(jù)導(dǎo)論
- 30天學(xué)通Java Web項目案例開發(fā)