- 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.
- Machine Learning for Cybersecurity Cookbook
- Getting Started with Oracle SOA B2B Integration:A Hands-On Tutorial
- Spark大數(shù)據(jù)技術(shù)與應(yīng)用
- Embedded Programming with Modern C++ Cookbook
- Moodle Course Design Best Practices
- 中國戰(zhàn)略性新興產(chǎn)業(yè)研究與發(fā)展·工業(yè)機(jī)器人
- Kubernetes for Serverless Applications
- Windows Server 2008 R2活動(dòng)目錄內(nèi)幕
- 基于神經(jīng)網(wǎng)絡(luò)的監(jiān)督和半監(jiān)督學(xué)習(xí)方法與遙感圖像智能解譯
- 在實(shí)戰(zhàn)中成長:C++開發(fā)之路
- 網(wǎng)絡(luò)信息安全項(xiàng)目教程
- 數(shù)字多媒體技術(shù)與應(yīng)用實(shí)例
- 實(shí)戰(zhàn)突擊
- Mastering Android Game Development with Unity
- Flash CS3動(dòng)畫制作融會(huì)貫通