Codingassignmenthelper | Home Codingassignmenthelper | Samples

Assignment 2

Assignment 2

Assignment 2

		Assignment 2 – Interactive Game
Due: Friday 17 May 2019
Individual assignment

Introduction
For Assignment 2 you will be required to build an interactive game. The purpose of the
assignment is to assess your ability to use arrays, objects, images, sounds, videos, etc. in
JavaScript and p5.js.

Requirements
There is some latitude in the design of the game however it must comply with the following
requirements:

Drawing
The game must draw shapes (2D or 3D) and images. More than one shape type must be
used to draw the game, e.g. lines and ellipses. The game must also use and draw images
and/or videos. The images and videos must be drawn at an appropriate size.

Interactivity
The game must support interaction with the user either via the mouse/trackpad/touch or keys
(or both).

Animation
There must be some animation in the game. At least two objects must move in different
directions. The animation may be at a fixed speed.

Collision Detection
The game must support some kind of collision detection, with a visible and/or audible result
of collision. Collision may be with an object or with the edge of the canvas.

Scoring
The game must have some kind of scoring system, e.g. counting clicks or collisions. The
score must be displayed on the screen using text and a font different to the default font.

Colours and sounds
Custom colours should be used for all drawing, unless the default colours fit the colour
scheme of the game. The game must use at least three audio files as well.

Randomness
The game must include some randomness, such as random positioning of objects, or
random colours.

Marking Scheme

Array

Novice
Points:
0 (0%)

Competent
Points:
.5 (1.67%)

Drawing
shapes

Points:
0 (0%)

Points:
.5 (1.67%)

Drawing
images and
videos

Points:
0 (0%)

Interactivity

Points:
0 (0%)

Animation

Points:
0 (0%)

Points:
1 (3.33%)

Collision
Detection

Points:
0 (0%)

Points:
1.5 (5%)

Scoring

Points:
0 (0%)

Points:
1 (3.33%)

Points:
.5 (1.67%)
Game draws an image
and a video at an
inappropriate size.
Points:
1 (3.33%)

Attempt to score but not
working correctly
Text display

Points:
0 (0%)

Points:
.5 (1.67%)
Only score is displayed
without label, or vice
versa

Proficient
Points:
1 (3.33%)
Program uses an array to
manage a list of objects visible
on the screen.
Points:
1 (3.33%)
Game draws more than one
type of shape
Points:
1 (3.33%)
Game draws at least one image
and one video at an appropriate
size
Points:
2 (6.67%)
Game supports interactivity
either by mouse or keys.
Mouse interaction must use at
least two of mouseX, mouseY,
mouse
button.
Keyboard
interaction must use at least 3
keys.
Points:
2 (6.67%)
Game must support some form
of animation, i.e. an object
moving across the screen or
changing size. Two objects
must animate independently.
Points:
3 (10%)
Game must support some form
of collision detection. This may
also be in the form of detecting
whether the mouse has detect
an object.
Points:
2 (6.67%)
The game must keep track of a
score using a numeric variable.
The highest must be stored in
a file.
Points:
1 (3.33%)
The game must display the
score using a non-standard font
as well as some label text

Randomness

Novice
Points:
0 (0%)

Competent
Points:
1 (3.33%)
Randomness attempted
but
not
working
correctly.

Objects

Points:
0 (0%)

Visual
design

Points:
0 (0%)
Rudimentary visuals
based solely on shape
primitives and loaded
whole images

Originality in
Game
Production

Points:
0 (0%)

Replicates an existing
game’s look and feel

Originality in
Game
Mechanics

Points:
0 (0%)
Replicates the play
mechanics of existing
games

Complexity

Points:
0 (0%)

Code
neatness

Points:
0 (0%)

Points:
1.5 (5%)

Points:
1 (3.33%)
Game
components
consisting of complex
shapes and/or dynamic
image modifications, or
with modified overall
layout
Points:
1 (5%)
Predominantly remakes
an existing game but
with
some
new
components such as
modified visuals, screen
layout, and scoring
Points:
1.5 (5%)
Introduces
some
variations on existing
mechanics
or
an
unusual combination of
existing mechanics
Points:
1.5 (5%)

Points:
0.5 (1.67%)

Proficient
Points:
2 (6.67%)
The
game
must
use
randomness in some way such
as the positioning of objects,
the direction of animation,
colours, timing, etc.
Points:
3 (10%)
The mage must use at least 2
objects.
Points:
2 (6.67%)
Consistently applied aesthetic
using complex visual elements
and appropriate usable layout
Points:
3 (10%)
Exhibits
original
game
concepts or ways of playing,
and with predominantly new
visual elements
Points:
3 (10%)
Predominantly new form of
interactive behaviour or game
response to user
Points:
3 (10%)
These marks are for the overall
complexity of the game as
judged by the marker.
Points:
1 (3.33%)
Code is indented, well
named functions and variables,
all functions, global variables,
objects,
and
algorithms
commented.

Submission
All of the assignment files must be zipped and uploaded to the portal through the
assignment 2 submission link. The zipped folder, once decompressed, must run by
opening the index.html file. Marks will be deducted if the unzipped project cannot be
run successfully.


		
To Download Click Here > Assignment 2.pdf
Codingassignmenthelper | Home Codingassignmenthelper | Home