WEEK 13: Project Research: Methods
(April 8 & 10)

To Do This Week:

Map Project DUE Monday March 20th


Overview: API  – Application Programming Interface – & JavasScript & JSON
View Map Projects
Map Projects List 

Audio/Video Projects DUE Monday March 27th 
Upload in a folder “av”
Audio/Video Projects List 

Upcoming Projects:

  • Canvas Project (Game): 5% Due March 29th
  • P5JS Animation Project (Generative Art): 5% Due April 5th
  • Weather App (API & Canvas): 5% Due April 12th

HTML5 Canvas Project (Game) – 5%
Due March 29th
This project is intended to loosen you up with creative applications of JavaScript. Using techniques for generative or interactive animation using the Canvas element, you are to follow your own intuition and creative ideas. Don’t worry about something polished or even practical. The idea is to push your current knowledge of JavaScript, with ChatGPT as a code assistant, towards building an innovative HTML5 Canvas game. The crazier your approach, the better!

This and all class projects can be the sketch of an idea that you develop in the Final Project. The important thing for this project is to have a working script and a solid proof of concept for further development.

You will be graded on:

  1. your effort
  2. the clarity of your idea executed in JavaScript steps
  3. your process of creative discovery
  4. the usability of your game – provide instructions

Your project must have the following:

  1. a title and author name visible
  2. well-commented code to make sure you understand what the script is doing at each stage
  3. in the the <head>, inside HTML comments, you have a statement that includes resources you used to build the game. 
  4. the work is uploaded to the server as an index.html inside a folder called “canvas-game”

Canvas-Game List


Intro to Canvas:

Create a Drawing/Animation with Canvas:

Copy into a new file the source code from this starter file: canvas face. With your pod, change the JavaScript to create your own face animation. See below for some examples from past students.

Here is a Canvas clock –  from w3schools. What are the steps?

Student Pairings

HTML5 Games:

You can, if you want, explore W3schools HTML5 Games Demo to build your own game using Canvas. Try to understand how objects are generated and then animated with speed and gravity properties. Best to start by copying the code or using ChatGPT  for an example at playing around with values. Then you can make changes for your own game. 

Previous Student Canvas Games
Escape the Room
Trip Switch
Cube Game
Space Jam

Student Games:

Other Resources:

In-class Exercise:

Go over a canvas game example from w3shools.

Play with values, what can you change?

Student Pairings