Thread: Pygame Rect

    #1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2004
    Location
    There where the rabbits jump
    Posts
    556
    Rep Power
    12

    Pygame Rect


    hi

    Em well it has been along time since I really programmed and I want to go back into it, so I have a nice little program with pygame, but since I am not really an expert in pygae I need to ask how to make a simple rectangle on the screen and make another one and make physics, the physics part is really optional for me

    So has anyone ever programmed with pygame, please let me know...
    And especially because there is no proper documentaion that explains how things work and how to make them show... (or I just missed it)
    Those people who think they know everything are a great annoyance to those of us who do.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    53
    Rep Power
    11
    the documentation isn't the greatest on the site, but it sort of explains to you all the important functions you'll need. here is the function to draw a simple rectange:


    http://www.pygame.org/docs/ref/pygame_draw.html#rect
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2004
    Location
    There where the rabbits jump
    Posts
    556
    Rep Power
    12
    Ya i have seen that:P
    Those people who think they know everything are a great annoyance to those of us who do.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Posts
    53
    Rep Power
    11
    and were you able to get your rectangles?
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2004
    Location
    There where the rabbits jump
    Posts
    556
    Rep Power
    12
    lol ya I am really good now:P it just came over me yesterday
    Those people who think they know everything are a great annoyance to those of us who do.
  10. #6
  11. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2005
    Posts
    618
    Rep Power
    65

    Smile


    I can sympathize with monkeyman, an actual example would be great!
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Nov 2004
    Location
    There where the rabbits jump
    Posts
    556
    Rep Power
    12
    from me or someone else

    because there is two different types one with a collision detection with no graphics I think and one where you draw it
    Those people who think they know everything are a great annoyance to those of us who do.

IMN logo majestic logo threadwatch logo seochat tools logo