Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Lab 10 - The Student Game
- Learn the Combined use of Timer and the tracking of user interactions

Deliverables
app.java, myJFrame.java, myJPanel.java, and other necessary Java files

Contents
The objective of the lab is to create a game in which the player has to click on a moving student-button to score.
1. The student button has to move constantly (using the timer)
2. The application has to keep the score
3. The actual score has to be shown.
4. Implement at least one of the extras listed below (#3 to #7)
- level of difficulty: High
- level of usefulness for the final project: Very High

Suggestion: start with the basic timer Java example and made the necessary changes to it.
Suggested steps:
#1 get the student button moving
you need the get timer started
you need a null layout (https://www.dropbox.com/s/629kis94z9v6p3l/Lab10.zip?dl=0)
you need to set a different position for the button every time the timer ticks
#2 keep the score on a separate button, every click on the student button increases the score by 1.
when these two are working, then:
#3 changes the image of the student button when it is clicked
when #3 is implemented, then:
#4 add a slider to make the button move faster or slower
- you need to use the setDelay() method applied to the timer.
when #4 is implemented, then:
#5 makes the movement smooth instead of jumping from one place to another place very far away.
#6 makes the student-button run faster when the mouse approaches it

Work thus far can be found here:
https://www.dropbox.com/s/629kis94z9v6p3l/Lab10.zip?dl=0

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91241894

Have any Question?


Related Questions in Computer Engineering

A student raises her hand in class and states i can legally

A student raises her hand in class and states, "I can legally copy any DVD I get from Netflix because Netflix purchased the DVD and the copyright only applies to the company who purchased the product." Explain whether th ...

How to design a java program that reads a sentence say s

How to design a Java program that reads a sentence, say s, consisting of lower-case words with .nextLine() method, identifies the words using .indexOf() and .substring() methods and saves them in String variables. Then t ...

Question you have been asked to help promote a new bill in

Question: You have been asked to help promote a new bill in your state, to which there is much opposition to this bill. Discuss what distributive bargaining is. Discuss the pros and cons which might arise toward the pass ...

Nfs allows the file system on one linux computer to be

NFS allows the file system on one Linux computer to be accessed over a network connection by another Linux system. Discuss the security vulnerabilities of NFS in networked Linux systems, and possible mitigation solutions ...

Recall that s-des operates on a block size of 8 bits

Recall that S-DES operates on a block size of 8 bits, producing a ciphertext that is also 8 bits long. a. In this scenario, how many different ciphertexts are there? b. How many different 8-bit block ciphers can there be ...

Salariestask compute the weekly pay for each employee at

Salaries Task: Compute the weekly pay for each employee at the Wahoo Widget Company. For each employee, you will calculate the base pay according to the appropriate salary category, and then subtract taxes and deductions ...

Question monicas reading comprehension score 22nbspmean

Question: Monica's reading comprehension score = 22  Mean fourth grade reading comprehension score = 19  Standard deviation of the fourth grade's reading comprehension = 1.8  Monica's z-score in math = 2.2  Mean fourth g ...

Stepscreate a java project in eclipse called lab 2 next

Steps: Create a Java project in Eclipse, called Lab 2. Next create a java class called Dashboard. It should extend javafx.application.Application. This will be the main GUI for your lab, and it should use a VBox as the r ...

What are some analysis and crime investigative methods that

What are some analysis and crime investigative methods that could be used in identifying gangs and/or gang activities?

Segmentationassume virtual memory hardware that uses

SEGMENTATION Assume virtual memory hardware that uses segmentation, and divides the address space in two by using the top bit of the virtual address. Each segment is thus relocated independently. What we'll be drawing in ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As