Web Games Lab Assignment 1 - Individual HTML5 Game Project

Assignment 1 — Individual HTML5 Game Project

Weighting: 10% of coursework · Type: Individual · Based on: Weeks 1–6.

The task

Design and build one complete, playable HTML5 game of your own, using only plain HTML5, the Canvas 2D API, CSS and JavaScript (no frameworks or libraries). Your game must bring together the skills from all six weeks.

Choose a game (or propose your own)

Note: Your game must introduce something about yourself while demonstrating the required HTML5, Canvas 2D, CSS, and JavaScript skills covered in Weeks 1–6. You are encouraged to be creative in presenting your personality and life experiences through gameplay.

Required features (each maps to a week)

  1. [W1] A valid HTML5 page (<!DOCTYPE>, <html>, <head>, <title>, <body>) with embedded CSS and comments.
  2. [W2] A <canvas> scene drawn with the 2D context (shapes such as fillRect, arc).
  3. [W2] Randomness (e.g. Math.random()) and at least one image drawn with drawImage.
  4. [W3] Smooth animation: erase-and-redraw each frame with a timer (setInterval).
  5. [W3] Player input from a form (Number()) or buttons, and a wall/edge collision.
  6. [W4] Game objects built with constructor functions, arrays and a draw() method.
  7. [W4] Mouse input (mousedown/mousemove/mouseup) and hit-testing.
  8. [W4] Motion or physics (velocity, gravity, or a projectile arc).
  9. [W5] A game state, score (or matches/moves) and a clear win/lose condition.
  10. [W5] A timed or counted element (e.g. setTimeout, Date, matches counter).
  11. [W6] A media reward: play audio and/or video when the player succeeds.
  12. [W6] Elements created at runtime (createElement / appendChild) and event listeners.

Deliverables

Marking rubric (100 marks)

CriterionBased onMarks
HTML5 document structure & embedded CSS (valid, tidy)Week 110
Canvas 2D drawing (shapes and images)Week 210
Animation (timers, erase-and-redraw each frame)Weeks 2–315
Interaction (mouse / keyboard / form input)Weeks 3–410
Game objects (constructors, arrays, methods)Weeks 4–515
Game logic & physics (collision, gravity, hit-testing)Weeks 3–515
Game state, scoring and win/lose conditionWeeks 2 & 510
Media reward (audio / video)Week 65
Code quality (readable, commented, no errors)All weeks5
Creativity, originality and playabilityAll weeks5
Total100

Marks

Lecturers: log in to add or update Assignment 1 marks for each student in the class list.

Add marks (lecturer login)