Define switch-case function in javascript

Assignment Help Programming Languages
Reference no: EM13935584

I'm making a game where the user should combine the sound of a bird with the correct picture. In my webpage 20 different birds are represented. While pressing a button the game starts and a random birdsong will sound. Clicking the right bird will achieve 3 points and a little "pling"-sound will be heard. A new bird will sound and the game continues until all birds have been chosen.

Need help with:
- BIrdsound that user competes with should not open a giant window but the user should be able to pause it, rehear it and adjust the volume.
- After clicking the right bird a new random birdsong will sound but not the ones who already have been taken part of the game.
- The "pling"-sound (DingLing.wav) after chosen correct bird.
- Two (or more) players option. (I'm about to make a startpage where the user gets information about the game and selects one och two player, so I need the function.)
- First click generate 3 points. 2 points if the user choose the right bird at second try. 1 point at third try. If user click wrong bird four times a new birdsong will sound and game continues.

Maybe it's not right with a switch-case function. The web page should be written with HTML5 and javascript. I've zipped the files and I hope you can reach the enclosed files. In my soundfile I've excluded 15 birdsongs because of the size of the file, only the first 5 birdsongs of the array is included. If the zipped file isn't there the attached files are seperatly sent but with only two birdsongs.

Attachment:- DingLing.zip

Reference no: EM13935584

Questions Cloud

Find multiple sources where the attractions : This is group assignment presentation speech, Mainly focusing on Desination ( Rio de janerio ) Media representation. In the part one mainly focusing on the Top attractions in Rio which is example ; Christ the redeemer , Sugar loaf ( cable cars). T..
Scholarly activity : Family, marriage, education, and religion are areas that influence our lives daily. Write an essay answering the followingquestions. You must apply one of the following in some capacity-conflict, functionalist, or symbolic interactionist perspective:
Austraria or a major river in another country : students are to write a retter home to their parents expraining the water crises and arguing for or against the use of recycled water.GEOGRAPHY:
Cost-benefit analysis of your team selected event : Use your Event RFP and the pricing guidelines for services at Baderman Island. Prepare a 2,100- to 2,450-word cost-benefit analysis of your team's selected event. Develop and discuss the criteria you would use to measure your event's success and its ..
Define switch-case function in javascript : I'm making a game where the user should combine the sound of a bird with the correct picture. In my webpage 20 different birds are represented. While pressing a button the game starts and a random birdsong will sound. Clicking the right bird will ..
Why prokaryotes tend to be small relative to eukaryotic cell : Discuss why prokaryotes tend to be small relative to eukaryotic cells. Discuss why size may be limited in cells of eukaryotic organisms bases on their function. Provide examples and incorporate resources as necessary.
Determine the net present value of the given project : Determine the net present value of this project. Should Wolverine accept this project? Assume that Wolverine is also considering an alternative financing arrangement.
List the experimental requirements of koch postulates : Cancer patients undergoing chemotherapy are normally more susceptible to infections. However, a patient receiving an antitumor drug that inhibited cell division was resistant to Salmonella. Provide a possible mechanism for the resistance.
Descriptions of beneficial learning strategies : You should seek to present appropriate illustrations and detailed descriptions of beneficial learning strategies that you have encountered and employed.

Reviews

Write a Review

Programming Languages Questions & Answers

  Create a simple command line program

Create a simple command line program that simulates the rolling of a pair of six sided dice a user given number of times. The number of times to roll the pair of dice should be read as input from the argv array on the command line.

  Compute and display number of miles per hour

Once correct data has been entered, the program muts compute and display number of miles per hour over the speed limit that the driver was doing.

  Data set containing an unknown number of integers

The program should use I/O redirection to accept a file defined by the user which is a data set containing an unknown number of integers. The integers should be stored in an array, and printed to an output file - also defined by the user through r..

  Program to manage phonebook contact using binary search tree

Use C++ language to carry out this exercise, BST (Binary Search Trees) template. Write down the program which manage phonebook contact using BST.

  Write program that allow a user to enter stuin thident names

Write a program that would allow a user to enter stuIn thident names and Final grades (e.g. A,B,C,D,F) from their courses. You do not know how many students need to be entered.

  Develop logic for program to read customer records

Develop the logic for a program that reads in 100 customer records and stores the first and last name and total purchases in three parallel arrays.

  Discuss how database design and table design

Discuss how database design, table design, and query design affect database performance.

  Create a simple bank account simulation

Create a new project named "Accounts" and a new source file named "accounts.c". Enter the following skeleton program. The main() function has been implemented for you. There are four functions you will need to implement to complete the lab.

  How might the fetch phase of the von neumann cycle

How might the fetch phase of the Von Neumann cycle have to be changed from what was described in the text?

  Create test-methods for each operations

Write the methods to pass the tests. A significant portion of your score will be based on the effectiveness and thoroughness of your test-methods.

  Create application which gets customer account data

Some interest Credit Company gives loans to customers at 1.5 percent interest per month. Create the application which gets customer account data which includes the account number, customer name, and balance due.

  How many database requests can you identify

Write the complete transaction(s).

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd