Write a processing program of a rotating target game

Assignment Help Other Subject
Reference no: EM132334550

Assignment -

INTRODUCTION - Write a Processing program that meets the following requirements of a rotating target game. A template "Assign2Template" is provided as a starting point. A sample output video is also available on iLearn.

SETUP

  • Save a copy of the template zip folder "Assign2Template" in your preferred storage location.
  • To unzip all the contents of the zipped folder, press and hold (or right-click) the folder, select Extract Al!, and then follow the instructions.
  • You will find an "Assign2Template" sketch with six character images (mentioned in task 5) inside the folder.
  • Follow further instructions mentioned under the heading "How to present your assignment".

TASK DESCRIPTIONS -

Task 1: Display Concentric Circles

Display nRings (nRings = 6 in given template) concentric circles centered at the centre of the display window where,

Diameter of the largest ring (green) is ((nRings - 0)/nRings) * 80% of the width

Diameter of the second largest ring (white) is ((nRings - 1)/nRings) * 80% of the width

Diameter of the third largest ring (green) is ((nRings - 2)/nRings) * 80% of the width

Diameter of the fourth largest ring (white) is ((nRings - 3)/nRings) * 80% of the width

Task 2: Draw Black Circle in Each Ring

Draw a black circle of diameter 20 in the middle of each ring that goes around the path of the ring as shown in the video.

A point (x, y) on the circumference of a circle centered at (cx, cy) and radius rad, at an angle of theta, is given by:

x = cx + rad * cos (theta);

y = cy + rad * sin (theta);

Task 3: Score Calculation

When you press the mouse, it detects if a certain ball has been hit, and if so, the score increases by 1 and all balls are re-initialised. The score should be display at the top right side of the display window as shown in the sample video.

The built-in function dist (x1, y1, x2, y2) gives you the distance between points (x1, y1) and (x2, y2). To determine if the mouse is pressed inside a circle, you can check if distance between the mouse location and the circle's centre is less than or equal to the radius of the circle.

Task 4: Time Calculation

You should apply a time limit such as 20 seconds to the game. The number of seconds left should be displayed along with the score on the top right side of the display window. The game goes on as long as the time left is more than 0.

HINT: The built-in function minis° gives you the number of milliseconds past since the beginning of the program.

Task 5: High Distinction Component

Instead of just black circles, specific characters should go around the rings, either clockwise, or anti- clockwise. Each character has a corresponding image, provided for you in the template.

Reference no: EM132334550

Questions Cloud

Personal statement for admission : Need a statement of purpose/personal statement for admission at Rhode Island College. It's a MS in Health Care Administration. Attached resume to ease.
Compare and contrast-restructuring versus reengineering : 1. Matching Structure with Strategy 2. Compare and Contrast - Restructuring versus Reengineering
Describe a single model for vector machines : COM 314 -COMPUTER SYSTEMS ARCHITECTURE -To understand the organization of different bus systems, and their characteristics in a computer system.
Text suggests a number of reasons : Grey in the last chapter of his text suggests a number of reasons "Why Should Studying Organizations Matter to You?"
Write a processing program of a rotating target game : Write a Processing program that meets the following requirements of a rotating target game. Draw a black circle of diameter 20 in the middle of each ring
Tailor building works company modifies : The Tailor Building Works Company modifies and builds portable offices and homes based on customized plans using everything from shipping containers
Impact of this stance and commitment for nike : What has been the financial impact of this stance and commitment for Nike?
What diagnostic tests would be appropriate for the case : What diagnostic tests would be appropriate for this case and how would the results be used to make a diagnosis? Would you reject/accept the current diagnosis?
Explain the various types of operations and data types : COM 313-Computer Programming Using C++-Deliver lecture on the concept of polymorphism, objects and loading.Stating the different types in pictorial form.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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