Skip to content

Just a little typo #221

@PineJam

Description

@PineJam

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?

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions