- 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)
- 腦動力:Linux指令速查效率手冊
- 數據中心建設與管理指南
- 數控銑削(加工中心)編程與加工
- Associations and Correlations
- 水晶石精粹:3ds max & ZBrush三維數字靜幀藝術
- 網中之我:何明升網絡社會論稿
- HTML5 Canvas Cookbook
- 電腦日常使用與維護322問
- 人工智能:語言智能處理
- 簡明學中文版Photoshop
- Linux Shell Scripting Cookbook(Third Edition)
- 傳感器原理與工程應用
- Microsoft Dynamics CRM 2013 Marketing Automation
- 納米集成電路制造工藝(第2版)