{"id":8,"date":"2010-09-24T19:40:03","date_gmt":"2010-09-24T19:40:03","guid":{"rendered":"http:\/\/teaching.vargatron.com\/ccLabFall2010\/?p=8"},"modified":"2010-10-09T00:46:42","modified_gmt":"2010-10-09T00:46:42","slug":"week-4-object-oriented-programming","status":"publish","type":"post","link":"http:\/\/teaching.vargatron.com\/ccLabFall2010\/?p=8","title":{"rendered":"Week 4, Object Oriented Programming"},"content":{"rendered":"<p>This week we went over a lot, so try to look at the examples and play around with them before moving onto your assignment. I also recommend looking at Chapter 5 of the Programming interactivity book for a general overview of everything we went over in class. The section on OOP starts on page 129.<\/p>\n<p><a href=\"http:\/\/teaching.vargatron.com\/ccLabFall2010\/wp-content\/uploads\/2010\/09\/oopExamples.zip\">oopExamples<\/a><\/p>\n<p><strong>Homework Assignment<\/strong><\/p>\n<p>This weeks homework assignment will be similar to last week, but with a concentration on using objects. The requirements are:<\/p>\n<p>-A minimum of 25 objects, which are stored in an array<\/p>\n<p>-Different behaviors for the objects based on input (mouse position, mouse press\/release, key presses, etc)<\/p>\n<p>-All drawing of your object (ellipse(), rect(), etc, any call that directly draws to the screen) should be within your object<\/p>\n<p>-All objects should not look the same, they can be similar but think about how you can use properties (variables) within the class to make them unique. Experiment with RGB, alpha, size, position, etc.<\/p>\n<p><strong>Bonus<\/strong><\/p>\n<p>-Use fonts or images instead of drawing shapes<\/p>\n<p>-Create an object that contains a number of other objects, ie: a CircleGroup class that contains man Circle objects&#8230;<\/p>\n<p>Try to think about what you want to do BEFORE you start to program and think about how it would make sense logically. It may be best to work with your classmates\/ask questions of each other. As usual I am always available for help through email, but please have a specific question and code that shows you have tried to make things work.<\/p>\n<p>Thanks and see you in class Thursday!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week we went over a lot, so try to look at the examples and play around with them before moving onto your assignment. I also recommend looking at Chapter 5 of the Programming interactivity book for a general overview of everything we went over in class. The section on OOP starts on page 129. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-assignments","category-examples"],"_links":{"self":[{"href":"http:\/\/teaching.vargatron.com\/ccLabFall2010\/index.php?rest_route=\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/teaching.vargatron.com\/ccLabFall2010\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/teaching.vargatron.com\/ccLabFall2010\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/teaching.vargatron.com\/ccLabFall2010\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/teaching.vargatron.com\/ccLabFall2010\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8"}],"version-history":[{"count":0,"href":"http:\/\/teaching.vargatron.com\/ccLabFall2010\/index.php?rest_route=\/wp\/v2\/posts\/8\/revisions"}],"wp:attachment":[{"href":"http:\/\/teaching.vargatron.com\/ccLabFall2010\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/teaching.vargatron.com\/ccLabFall2010\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/teaching.vargatron.com\/ccLabFall2010\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}