jdf / processing-py-site

Site for processing.py.
MIT License
197 stars 52 forks source link

Just a little typo #221

Open PineJam opened 4 months ago

PineJam commented 4 months ago

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:

  1. A classis different from an object.
  2. real world instancesof the idea
  3. Indent error in front of the code "x = 0" def move(): global x x = x + speed if x > width: x = 0
  4. car can driveand it can be displayed.
  5. All classes must include four elements: name, data initialization, and methods. --> 3 elements, maybe?
  6. No matter how many cookies we make, only one cookie cutter is needed. class Car(object): --> class Car:

    1. rect(self.xpos, self.ypos, 20, 10); --> rect(self.xpos, self.ypos, 20, 10)
    2. self.xpos = self.xpos + self.xspeed; --> self.xpos = self.xpos + self.xspeed
    3. class PlaceSetting(object): --> class PlaceSetting: