[pygame] Pygame crashes reliably when clicking away.

2012-03-17 Thread Dan Uznanski
I've started building a little pygame program. Unfortunately I've been having a huge problem: the second time I click out of the window on another thing that completely obscures the pygame window, using pygame.event.get() crashes with a segfault. I'm running Windows XP/32 latest on 2009 mac pro h

Re: [pygame] Pygame crashes reliably when clicking away.

2012-03-17 Thread Dan Uznanski
After some poking I fixed it. Had to nuke Python /and/ Pygame to do so, which was no fun, and I'm still disappointed because I have no idea what actually went wrong. Dan On Sat, Mar 17, 2012 at 3:51 PM, Dan Uznanski wrote: > > I've started building a little pygame program.  Un

Re: [pygame] [ROOKIE] Best way to manage jump movement

2012-04-20 Thread Dan Uznanski
If you want the merest touch of the jump key to cause a full strength jump, just kick up the vertical component of the character's velocity vector (ensuring of course that the character is not already jumping, etc) and apply gravity normally. If you want a longer keypress to give a higher jump, th

Re: [pygame] Monospaced fonts are meant to be mono-spaced, right?

2012-05-14 Thread Dan Uznanski
Are you accounting correctly for non-integer character width? If it's always the same letter /position/ that's giving you trouble, then it's possible that the width of the character is not an integer in that size, and your text renderer may be accounting for that in ways that your own program is n

Re: [pygame] newbie who is lost asking for rescue party

2012-10-04 Thread Dan Uznanski
get python 2.7.3 32bit and pygame 1.9.1 built against 2.7. On Thu, Oct 4, 2012 at 2:14 PM, SHANE VAN STRAATEN wrote: > Hi > > no just downloaded it did not open it as when i was on site saw all these > other files > > > > > > > > > > pygame-1.9.1.win32-py2.7.msi 3.1MB > pygame-1.9.1release.win32-

Re: [pygame] Importing Graphics

2012-10-07 Thread Dan Uznanski
Pulling out graphics from files for older games can be hard - they're often in hand-rolled compressed formats, depend on palette data that isn't present in the same place as the actual images, etc, etc, etc. I can't give proper general advice, because there are so many ways it was done, but if all

Re: [pygame] encrypt/decrypt zip/unzip

2014-08-25 Thread Dan Uznanski
Why bother? The average user won't care, the skilled users will see through your ruse like it's plastic wrap, and the ones who care but aren't that good will just find out what the skilled users did on the internet. The only thing you do by adding obfuscation is make it a little bit more of a pai

Re: [pygame] encrypt/decrypt zip/unzip

2014-08-26 Thread Dan Uznanski
e components. Also, some open-source licenses prohibit you >>>>>>> from concealing the source or origins of that component. >>>>>>> 2 - Offer significant value. If your stuff is so good -- at a price >>>>>>> that is hard to refuse -