- 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.
- 程序設(shè)計(jì)語(yǔ)言與編譯
- 網(wǎng)絡(luò)綜合布線技術(shù)
- 變頻器、軟啟動(dòng)器及PLC實(shí)用技術(shù)260問(wèn)
- 悟透AutoCAD 2009完全自學(xué)手冊(cè)
- 奇點(diǎn)將至
- Linux系統(tǒng)下C程序開發(fā)詳解
- 工業(yè)機(jī)器人力覺(jué)視覺(jué)控制高級(jí)應(yīng)用
- 設(shè)計(jì)模式
- Hands-On Business Intelligence with Qlik Sense
- Practical Network Automation
- 巧學(xué)活用Linux
- Mastercam X5應(yīng)用技能基本功特訓(xùn)
- 歐姆龍CP1H型PLC編程與應(yīng)用
- 深度學(xué)習(xí)500問(wèn):AI工程師面試寶典
- Python Data Mining Quick Start Guide