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)
- About Me Adventure — Create a game that introduces yourself through interactive gameplay. Players explore your background, hobbies, interests, skills, achievements, favourite things, and future goals. They can collect objects, answer questions, or unlock stages representing your life journey.
- Personality Quiz — Create an interactive quiz where players answer questions about your personality, preferences, hobbies, and interests to discover how well they know you.
- My Life Journey — Develop a game where players progress through different stages of your life, such as childhood, education, hobbies, achievements, and career aspirations. Each stage can contain challenges, questions, or collectible objects.
- Guess Who I Am? — Design a guessing game where players identify facts about you based on clues, pictures, or multiple-choice questions. Players earn points for correct answers.
- My Favourite Things — Create a collection game where players catch or collect objects representing your favourite food, music, games, hobbies, or other personal interests.
- Your Own Idea — Propose another HTML5 game concept that creatively introduces yourself. Get approval from your lecturer before starting development.
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)
- [W1] A valid HTML5 page (
<!DOCTYPE>,<html>,<head>,<title>,<body>) with embedded CSS and comments. - [W2] A
<canvas>scene drawn with the 2D context (shapes such asfillRect,arc). - [W2] Randomness (e.g.
Math.random()) and at least one image drawn withdrawImage. - [W3] Smooth animation: erase-and-redraw each frame with a timer (
setInterval). - [W3] Player input from a form (
Number()) or buttons, and a wall/edge collision. - [W4] Game objects built with constructor functions, arrays and a
draw()method. - [W4] Mouse input (
mousedown/mousemove/mouseup) and hit-testing. - [W4] Motion or physics (velocity, gravity, or a projectile arc).
- [W5] A game state, score (or matches/moves) and a clear win/lose condition.
- [W5] A timed or counted element (e.g.
setTimeout,Date, matches counter). - [W6] A media reward: play audio and/or video when the player succeeds.
- [W6] Elements created at runtime (
createElement/appendChild) and event listeners.
Deliverables
- Create a folder named
Assignment1_yournamecontaining yourindex.htmland all the assets (images, audio, video). - Zip the folder (for example
Assignment1_yourname.zip) and submit it as instructed by your lecturer. - Your game must run by opening
index.htmlin a browser with no console errors. - A short report (1–2 pages) explaining your game, the features above, and the challenges you solved.
Marking rubric (100 marks)
| Criterion | Based on | Marks |
|---|---|---|
| HTML5 document structure & embedded CSS (valid, tidy) | Week 1 | 10 |
| Canvas 2D drawing (shapes and images) | Week 2 | 10 |
| Animation (timers, erase-and-redraw each frame) | Weeks 2–3 | 15 |
| Interaction (mouse / keyboard / form input) | Weeks 3–4 | 10 |
| Game objects (constructors, arrays, methods) | Weeks 4–5 | 15 |
| Game logic & physics (collision, gravity, hit-testing) | Weeks 3–5 | 15 |
| Game state, scoring and win/lose condition | Weeks 2 & 5 | 10 |
| Media reward (audio / video) | Week 6 | 5 |
| Code quality (readable, commented, no errors) | All weeks | 5 |
| Creativity, originality and playability | All weeks | 5 |
| Total | 100 | |
Marks
Lecturers: log in to add or update Assignment 1 marks for each student in the class list.
Add marks (lecturer login)