Week 4: Object-Oriented Programming

Agenda:

Weekly Overview
Assignment Review
Functions
JavaScript ES6: let vs var
Object-Oriented Programming
Arrays
Arrays of Objects
Game Template
Assignment 4.0: Game

Overview:

Today we’ll cover the following:

Our in-class Exercises will focus on building a game template with an array of objects.

Resources:

Shiffman - 6.1: Introduction to Object-Oriented Programming with ES6
Shiffman - 6.2 Classes in JavaScript with ES6 - p5.js
Shiffman - 6.3: Constructor Arguments with Classes in JavaScript - p5.js
Shiffman - 7.1: What is an array?
Shiffman - 7.2: Arrays and Loops - p5.js
Shiffman - 7.3: Arrays of Objects - p5.js
Shiffman - 16.1: let vs var - Topics of JavaScript/ES6
Shiffman - 16.4: for...of loop - Topics of JavaScript/ES6