Sep-10-2022, 04:39 AM
(This post was last modified: Sep-10-2022, 04:39 AM by deanhystad.)
There is a section in the forum devoted to writing games. You'll get the best response posting there.
https://python-forum.io/forum-11.html
And here's some pretty good Pygame documentation.
https://www.pygame.org/docs/
From the documentation:
And there is documentation about rectangles here.
https://www.pygame.org/docs/ref/rect.html
https://python-forum.io/forum-11.html
And here's some pretty good Pygame documentation.
https://www.pygame.org/docs/
From the documentation:
Quote:move_ip()So this code:
moves the rectangle, in place
move_ip(x, y) -> None
Same as the Rect.move() method, but operates in place.
self.rect.move_ip(-self.speed, 0)Moves the rectangle, self.rect in the x direction by -self.speed and in the y direction by 0.
And there is documentation about rectangles here.
https://www.pygame.org/docs/ref/rect.html