CST112 Project 5: Chapter 6
-
Design some object of your own (this should be a different object than the ones you
created for any previous project) that moves around the Processing output window.
The sketch should draw the object repeatedly so that multiple objects move around
the output window during the excecution of the
draw()
function.
Any loop structure (for
, while
, or do while
)
may be used to produce this result (there will be a major
deduction in your grade if you do not use a loop structure
in this assignment)
-
The size of the output window should be at least 400 by 400 pixels; nevertheless
the width and height of the window should be the same
-
As usual grading on this assignment will be based on complexity and originality.
Therefore rather than present actual required versions of the assignment, here are
three suggested versions (you may implement the project in any way you want) for either
partial or full credit:
-
Version 1–a sketch of this complexity would receive
partial credit, a maximum possible grade of
8 out of 10 points
:
-
In this version the objects appear in the output window each at different random
locations; the range of locations for the x- and y-coordinates are values between
zero (0) and the width and height of the output window respectively; the screen
redraws at a frame rate of two frames per second
-
Click this Project 5 Version 1
link to view a sample application that demonstrates the animation for this version
-
Version 2–a sketch of this complexity would receive
partial credit, a maximum possible grade of
9 out of 10 points
:
-
In this version the objects move across the output window each one after
another; when the mouse button is clicked, the objects reset back to the
left margin of the output window; objects that are lower in the output
window have one major element darker
-
Click this Project 5 Version 2
link to view a sample application that demonstrates the animation for this version
-
Version 3–a sketch of this complexity could receive
full credit, a maximum possible grade of
10 out of 10 points
:
-
In this version the objects move across the output window from top-left
to right-bottom each one after another; when objects reach the bottom-right
or top-left they "bounce" (reverse directions); as the object gets lower
in the output window one of its major elements gets darker
-
Click this Project 5 Version 3
link to view a sample application that demonstrates the animation for this version
-
Again be reminded that you are not limited to the versions above but may use your own
creativity.
-
Insert the project number, your name, your e-mail address, the submission
due date and one or two sentences that describe the sketch as comments at the
beginning of the program (the same as you did for Projects 1, 2, 3 and 4);
additionally comment each of the groups of variable declarations as well as
as the sections of code
-
Students may work on all projects in teams of two or three,
and, if so, all students in the group must submit the same project to their own dropboxes
in Blackboard. In the text box's dropbox, as well as in the source code documentation
(comments), state the name(s) of the classmate(s) with whom you worked.
-
The completed project archived into a ".ZIP" file submitted
electronically via an attachment to a
Brightspace
dropbox is due to Prof. Struck no later than 11:59 p.m. on the date
listed in the course outline.