© Seth Kenlon 2019
Seth KenlonDeveloping Games on the Raspberry Pihttps://doi.org/10.1007/978-1-4842-4170-7_11

11. Sound

Seth Kenlon1 
(1)
Wellington, New Zealand
 

Real video games have sound effects. Everyone knows that. So if you deliver a game to someone without sound, they immediately notice that it’s missing the audio. This chapter introduces the most important love.audio functions and integrates sound into Battlejack.

Finding Audio

As with any game asset, the first problem with adding sound effects to your game is that you need sound effects. Of course, open culture on the Internet has a few potential solutions, and so does your Raspberry Pi, if you’re up for some manual labor.

Before continuing, create a folder in your project directory for your ...

Get Developing Games on the Raspberry Pi: App Programming with Lua and LÖVE now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.