filmov
tv
Beginner p5.js Lesson 5 - Reorganize code into Objects using Object Oriented Programming

Показать описание
Before our program gets too big, it's important to reorganise the code into objects. We create a player object with a display method and a change colour method. We also change global variables to object properties (variable only exists as part of an object).