Python Forum
[PyGame] Confused with Pygame documentation. (Newbie here)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Confused with Pygame documentation. (Newbie here)
#2
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:
Quote:move_ip()
moves the rectangle, in place
move_ip(x, y) -> None
Same as the Rect.move() method, but operates in place.
So this code:
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
monkeydesu likes this post
Reply


Messages In This Thread
RE: Confused with Pygame documentation. (Newbie here) - by deanhystad - Sep-10-2022, 04:39 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020