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

in STEMGeeks4 years ago

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).





Mathematics & Digital Technologies Education

Videos, quizzes, and other learning resources

Eddie the Magic Monk has 16 years teaching experience as a high school teacher in Australia. He will explain things to you in the simplest way possible to help you fully understand high school mathematics and computer science concepts.

Eddie began his tutorial channel on Youtube in 2012. His videos have been well received all over the world and now has 22+ million views! He sees the benefit in multidisciplinary learning hence his tutorials cover topics ranging from maths to dance.


Sort:  

Math drives me crazy, but I like sudoku and dancing ✌️✌️

nice

[WhereIn Android] (http://www.wherein.io)

👍!shop

[WhereIn Android] (http://www.wherein.io)

你好鸭,magicmonk!

@adyiron给您叫了一份外卖!

虾条

吃饱了吗?跟我猜拳吧! 石头,剪刀,布~

如果您对我的服务满意,请不要吝啬您的点赞~

吃了吗?你好!家中可愛的寵物照想要跟大家分享嗎?或是出去玩拍到一些可愛的動物,別忘了到@dpet分享,可以得到@dpet的獎勵喔!感谢支持。

Coin Marketplace

STEEM 0.28
TRX 0.11
JST 0.030
BTC 67629.08
ETH 3788.09
USDT 1.00
SBD 3.56