© 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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.