Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Android Game Programming By Example
  • Table Of Contents Toc
  • Feedback & Rating feedback
Android Game Programming By Example

Android Game Programming By Example

By : John Horton
4.4 (9)
close
close
Android Game Programming By Example

Android Game Programming By Example

4.4 (9)
By: John Horton

Overview of this book

The book is best suited for existing Android or Java programmers who want to adapt their skills to make exciting Android games. The book is also for determined readers who might have no Android, game programming or even Java experience, but a reasonable understanding of object oriented programming knowledge is assumed.
Table of Contents (13 chapters)
close
close
7
7. Platformer – Guns, Life, Money, and the Enemy
12
Index

Adding sound FX


Adding sound effects in Android is really straightforward. First, let's look at where we can get our sound FX from. If you just want to get on with the coding, you can use my sound FX in the Chapter4/assets folder.

Generating the FX

We require four sound FX for our Tappy Defender game:

  • The sound for when our player crashes into an alien, which we will call bump.ogg.

  • The sound for when the player is destroyed, which we will call destroyed.ogg.

  • A fun sound for when the game first begins, which we will call start.ogg.

  • Finally, a victory whoop-type sound, which we will call win.ogg.

Here is a very quick guide to make these sound FX using BFXR. Grab a free copy of BFXR from www.bfxr.net.

Follow the simple instructions on the website to set it up. Try out a few of these things to make our cool sound FX.

Note

This is a very condensed tutorial. You can do so much with BFXR. To learn more read the tips on the website at the previous URL.

  1. Run bfxr.exe.

  2. Try out all the preset types, which generate...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Android Game Programming By Example
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon