Systers Community

PowerUp Android: Add Sound for Flipping boxes in Minesweeper Game

Prerequisite:

  • Create a Github Account.
  • Fork and clone PowerUp Android.
  • Run the project in Android Studio.

Steps:

  • Find suitable audio sound for : 1) When the mine opened is green 2) When mine opened is red.
  • Add the above audios in project assets folder.
  • Create a background service class "MinesweeperSound.java" extending Service. Also declare this service class in manifest.
  • Use MediaPlayer class for playing the audio sound.
  • The sounds are played only when mine is opened. Play sound for green mine or red mine according to the color of mine revealed by user.
  • Include ALL links/URLs in the comments to identify where the sound files are from, such as freesound.org or opengameart.org.

Resources:

Work Submission:

Create a PR with the label "Program: GCI" and include the link here.

Task tags

  • sound
  • android
  • java
  • service

Students who completed this task

Fidella, Vatsal Kulshreshtha, Valentun, Mu'aaz Kasker

Task type

  • code Code
close

2017