pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
(Remove)

(Remove)

Kyle Marshall (captainmarshall1)

Tags:

Description

remove

Links

Home Page: http://www.pygame.org/

Screenshot


click to view original size

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

December 10, 2010 12:05pm - Robert Leachman - nickname: (quazar)
Found the answer, in another Minesweeper game so easy to test ha ha. http://pygame.org/project-minesweeper-1686-2930.html uses:

< if pygame.mouse.get_pressed()[0]:
> if event.button == 1:

and the important one, since if it's wonky people die:

< if pygame.mouse.get_pressed()[2]:
> if event.button == 3:

Works good here, how about you?
December 5, 2010 9:55pm - Kyle Marshall - nickname: (captainmarshall1)
Thank you very much for the positive feedback! Any thoughts on how to fix the right-clicking issue? And I also think I may add a small menu where you can change all the colors fit your needs :)
December 5, 2010 7:08pm - Robert Leachman - nickname: (quazar)
Good job! For my taste the playfield is too light but that's probably a personal problem. More interesting, on OS X the right-click isn't reliable... sometimes I mean to mark a spot and instead it's processed as a left click and I'm dead. I added a debugger line and it's not just me :)

$ diff python_minesweeper_dist.py python_minesweeper_hacked.py
186a187
> print "LEFT"
189a191
> print "RIGHT"
296c298
< pygame.draw.rect(screen, (215, 230, 225), (x*tilewidth+xoff, y*tilewidth+yoff, tilewidth-2,tilewidth-2))
---
> pygame.draw.rect(screen, (185, 170, 175), (x*tilewidth+xoff, y*tilewidth+yoff, tilewidth-2,tilewidth-2))
303c305
< pygame.draw.rect(screen, (215, 230, 225), (x*tilewidth+xoff, y*tilewidth+yoff, tilewidth-2,tilewidth-2))
---
> pygame.draw.rect(screen, (185, 170, 175), (x*tilewidth+xoff, y*tilewidth+yoff, tilewidth-2,tilewidth-2))

Otherwise yeah impressive stuff!
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
May 24, 2012


May 23, 2012

May 22, 2012


May 20, 2012

May 19, 2012

May 18, 2012

May 17, 2012


May 16, 2012


... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)