Hello Processing-Py team,
Thanks a lot for tutorials on "py.processing.org/tutorials/objects/". Just wanted to mention there are a little typo here:
- A classis different from an object.
- real world instancesof the idea
- Indent error in front of the code "x = 0"
def move():
global x
x = x + speed
if x > width:
x = 0
- car can driveand it can be displayed.
- All classes must include four elements: name, data initialization, and methods. --> 3 elements, maybe?
No matter how many cookies we make, only one cookie cutter is needed.
class Car(object): --> class Car:
7. rect(self.xpos, self.ypos, 20, 10); --> rect(self.xpos, self.ypos, 20, 10)
8. self.xpos = self.xpos + self.xspeed**;** --> self.xpos = self.xpos + self.xspeed
9. class PlaceSetting(object): --> class PlaceSetting:
Hello Processing-Py team,
Thanks a lot for tutorials on "py.processing.org/tutorials/objects/". Just wanted to mention there are a little typo here:
def move():
global x
x = x + speed
if x > width:
x = 0
No matter how many cookies we make, only one cookie cutter is needed.
class Car(object): --> class Car:
7. rect(self.xpos, self.ypos, 20, 10); --> rect(self.xpos, self.ypos, 20, 10)
8. self.xpos = self.xpos + self.xspeed**;** --> self.xpos = self.xpos + self.xspeed
9. class PlaceSetting(object): --> class PlaceSetting: