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

in hive-163521 •  4 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.


Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

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

nice

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

  ·  3 years ago 

👍!shop

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

  ·  3 years ago 

你好鸭,magicmonk!

@adyiron给您叫了一份外卖!

虾条

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

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