- 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.
- 數據展現的藝術
- Splunk 7 Essentials(Third Edition)
- 輕松學C語言
- AutoCAD繪圖實用速查通典
- AutoCAD快速入門與工程制圖
- Visualforce Development Cookbook(Second Edition)
- 手把手教你學AutoCAD 2010
- MCSA Windows Server 2016 Certification Guide:Exam 70-741
- 電腦上網直通車
- 嵌入式Linux上的C語言編程實踐
- PostgreSQL Administration Essentials
- PyTorch Deep Learning Hands-On
- Visual Basic.NET程序設計
- PVCBOT機器人控制技術入門
- 教育機器人的風口:全球發展現狀及趨勢