CSCI 2447 Columbus State College JavaScript & Jquery Project 5 Report – Assignment Help

I’m studying for my Computer Science class and don’t understand how to answer this. Can you help me study?

Don't use plagiarized sources. Get Your Custom Essay on
CSCI 2447 Columbus State College JavaScript & Jquery Project 5 Report – Assignment Help
Just from $13/Page
Order Essay

Hello I need help with fixing my project for JavaScript and Jquery and I also need help with questions 2-8 for project 5 as well.

This is what I need to correct for the project here was the issue

as soon as I click start, the timer starts at 29 seconds, not 30 seconds. This is where you will need to adjust your counter in the timer function, and place it after the script that updates the phrase on your page.

function decrementSeconds() {               
         if(remaining_seconds < 0){
              clearTimeout(clock);
              clearTimeout(t);
              alert("Game is over");
          }
          else{
            $('#spTimeLeft').text(remaining_seconds);
            remaining_seconds -= 1;      
            clock = setTimeout("updateTimer()", 1000);  
          }
}

For your setTimeouts, you will want to assign it to a variable. That way you can clear it (stop it) in the last project. If you do not assign it to a variable, you will not have a way to stop it. Thus will cause it to run dynamically after the game is over.

clock <span class="token operator">=</span> <span class="token function">setTimeout</span><span class="token punctuation">(</span><span class="token string">"decrementSeconds()"</span><span class="token punctuation">,</span> <span class="token number">1000</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

Your gamespace is a little too small compared to the size of bubble. I would make the gamespace around 600px width and height of 350px.

Not sure about using a soccerball for the cursor. It does not fit the overall theme. Maybe a cursor that looks like a target. https://encrypted-tbn0.gstatic.com/images?q=tbn%3AANd9GcR61leTxKEg7AzYlOyl2NvsjItDePz6ChDWwg&usqp=CAU

Project 5 questions 2-8

2. In the last project, you created an addImage() function which added the image to
#gamespace. This worked well but each time it is called, it replaced the image which
was already in there with a new one. We want to preserve the images already in the
#gamespace. Change your use of .html() in addImage() to .append(). If already using
.append(), no need to make a change.
3. Now we will try to make the images appear randomly around the gamespace. To do so,
you will need to utilize the position style. For more info on position, check out:
https://www.w3schools.com/css/css_positioning.asp First, add the following code to
your game.css file. This will allow us to use the “top” and “left” CSS styles on the IMG
tag.
div#gamespace img { position: absolute; }
And add the following property to div#gamespace:
div#gamespace { position: relative; }
4. To randomly move each image, you will need to call your random number functions!
Call each function once in the addImage() function and save the returned value to a
variable (eg. xPos and yPos). Now that you have two random values, you will need to
add a “style” attribute to the IMG tag. For example:

In this “style” attribute, you will need to add a “left” and “top” property. The values for
each property will be your random numbers. Most students will have issues placing the
quotation marks. To help you, a website to help better understand this:
https://www.digitalocean.com/community/tutorials/h…
Tweak the values of your random function to make the images stay within the
#gamespace.
Hint: The actual value would be stored within a variable. You will call the function to
run, and have the value stored within a variable. You will place the variable within the
line of code where the value is to be added.
5. When the image is clicked, it should disappear. To do this, add a line of code to your
.on() function that makes image disappear when clicked. Note: There are a variety of
methods that will allow you to do so in jQuery, and jQuery UI.
6. Turn off the click of the start button once it has been clicked. You can use the .off()
function to turn off the click. Once the game has started, you do not want the gamer to
be able to click on the start button again.
7. Randomize the time interval in which new images appear. Currently, it is set to a static
2000 (2 seconds). The interval should vary between 0 and 2000 at random. You may
create a new random function like your random x and y functions, if you like. Images
should now appear at random intervals!
8. Incorporate at least one widget, or effects from jQueryUI. Make sure to document which
area by adding a comment within the script. Example: You might create a tab widget.
One tab will have the game and the other tab will have the instructions.

Then when it comes to project 5 it should do the following after it is completed

By then end of this project, the game should do the following:

  • An image should disappear when clicked.
  • Multiple images should appear at a timed interval randomly around #gamespace.
  • The timing of the images appearing should be randomized now. Interval varies between 0 and 2000 milliseconds.
  • The start button click is turned off once the game is started.
  • A jQueryUI widget or effect has been added to the page.

I would need it to be completed by Friday before midnight.

Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.