Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Game Development Tutorial - 11 - Line Drawing Program

Loading...

Sign in or sign up now!
11,191
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 10, 2009

A simple program in how to draw lines using pygame.

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 4 dislikes

Link to this comment:

Share to:

Top Comments

  • thanks man this is EPIC =)

  • pygame.draw.lines(screen, color, False, points, 2)

    Lines not line ;)

see all

All Comments (46)

Sign In or Sign Up now to post a comment!
  • @plflorence My questions exactly xD

  • just wondering....

    1. why are we not using lock()/unlock() in this case?

    2. does pygame.draw.lines draw the whole line every time? or only draw the new part that was added to points variable?

    thanks a lot for the tutorial!

  • Make sure to try turning it to "True." It's cool.

  • EPIC!!!

  • lol...I liked how he mumbled "thats what she said" very quaintly lol

  • doesn't it technically draw the lines each time

    like if you have 3 lines and then you click again then it draws the new line and the other lines again

  • 1:45 Thats what she said!! PMSL

  • When I run my program it doesn't start (i.e. it won't even show my background, but it will show the bordr of the screen) and when I close it it says "sys.exit() SystemExit"

    can anyone help?

  • Every time I exit with the red X, it says:

    "Pythonw.exe has encountered a problem and needs to close. We are -"etc.

    Not that big of a deal, though i would appreciate it if it didn't pop up every time...

Loading...

0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more