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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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