Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just a little typo #221

Open
PineJam opened this issue May 15, 2024 · 0 comments
Open

Just a little typo #221

PineJam opened this issue May 15, 2024 · 0 comments

Comments

@PineJam
Copy link

PineJam commented May 15, 2024

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant