关闭

To write java code

该项目收到24 来自天才威客的竞标,平均竞标价格为$33 USD

为像这样的项目获取免费报价
雇主工作
项目预算
$10 - $30 USD
全部竞标
24
项目描述

write a Java program named BullsEye as a simple target shooting game. See the screenshot below for an overview of the project.

Your program should meet the following specifications:

The target consists of three rings: a white outer ring 150 pixels in diameter, a black middle ring of 100 pixels and a red inner ring of 50 pixels.

Each mouse click counts as a shot that hits the target (or not) and creates a hole (4 pixels is good), if it does, at the clicked position.

Shots that land in the inner ring are worth 10 points.

Shots that land in the middle ring are worth 5 points.

Shots that land in the outer ring are worth 1 point.

Shots that land outside the target area are not counted.

The player's score should be updated with each click.

Include a simple prompt: "Click to shoot at the target."

Reset the game to the beginning state when the mouse leaves the canvas.

在寻找赚取金钱的机会?

  • 设定您的预算和时间框架
  • 大致描述您的建议方案
  • 为您的工作领取工资

雇用同样在该项目上竞标的威客

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online