Re: [pygame] Sound not playing at startup

2013-08-30 Thread James Paige
utomatically on one of the virtual consoles, for example, log the "embedded" user in to tty2: 2:2345:respawn:/sbin/rungetty --autologin embedded tty2 Then you can edit /home/embedded/.profile to run your program. --- James Paige

Re: [pygame] playing sound on Windows

2013-06-27 Thread James Paige
ze=-16, channels=2, > >> buffer=1024) > >> #pygame.mixer.get_init() > >> sound=pygame.mixer.Sound(name) > >> > >> print 'playing' > >> sound.play() > >> > >> print 'done' > >> time.sleep(2) > >> return sound > >> > >> if __name__=='__main__': > >> pygame.init() > >> sound=Sound() > >> som.play_file('0.wav') > > > > > > did you mean: > > > > sound.play_file('0.wav') > > > > in the last line? som does not seem to be defined anywhere. > > > > --- > > James Paige > > >

Re: [pygame] playing sound on Windows

2013-06-27 Thread James Paige
__=='__main__': > pygame.init() > sound=Sound() > som.play_file('0.wav') did you mean: sound.play_file('0.wav') in the last line? som does not seem to be defined anywhere. --- James Paige

Re: [pygame] Using Pygame to capture key presses for CLI prgram?

2013-05-29 Thread James Paige
out module handy in combination with reading raw stdin, but whether or not it will be useful for your program I don't know. --- James Paige On Wed, May 29, 2013 at 05:05:59PM -0700, winkleink wrote: > Hi, > > I'm running pygame in a raspberry pi. > The program I am writing has

Re: [pygame] spam on cookbook?

2013-05-14 Thread James Paige
That is definitely spam. Many of the wiki pages on pygame.org are still plagued with it :( On Tue, May 14, 2013 at 04:04:39PM -0500, Jake b wrote: >I found strange links on the bottom of the cookbook. It just says > >http:// >-- >Jake

Re: [pygame] Ongoing Development

2013-04-16 Thread James Paige
that time comes. Other opinions welcome :) --- James Paige On Tue, Apr 16, 2013 at 08:56:32AM +0100, Andrew Barlow wrote: >Yeah, it'd be great to know the differences between PyGame 1 and 2, >advantages, disadvantages, etc. > >My big question (besides all the others I&#

Re: [pygame] How to control the physical size of displayed objects?

2013-02-28 Thread James Paige
covered that The Gimp uses on-screen rulers to calibrate DPI, you might want to look at how it is done there. (Edit->Preferences->Display and then click the calibrate button) --- James Paige

Re: [pygame] How to control the physical size of displayed objects?

2013-02-27 Thread James Paige
On Wed, Feb 27, 2013 at 07:51:57AM -0800, James Paige wrote: > On Wed, Feb 27, 2013 at 04:08:08PM +0100, Mathieu Dubois wrote: > > Hello, > > > > I'm working on a program (written by someone else) to use PyGame to > > display some images for use in a psych

Re: [pygame] How to control the physical size of displayed objects?

2013-02-27 Thread James Paige
On Wed, Feb 27, 2013 at 04:08:08PM +0100, Mathieu Dubois wrote: > Hello, > > I'm working on a program (written by someone else) to use PyGame to > display some images for use in a psychological experiment. I am new to > PyGame. > > For the experiment we need to display circles of a given physic

Re: [pygame] Professional games made with Pygame?

2013-02-16 Thread James Paige
I thought that Nelly's Rooftop Garden felt rather polished and professional. I think that was a pyweek game. --- James Paige On Sat, Feb 16, 2013 at 02:35:24PM -0800, Al Sweigart wrote: >Hi everyone, I'm compiling a list of professional-quality games made using >Pyg

Re: [pygame] Does PyGame 1.9.1 work with Python 3.3.0 on Mac OSX 10.6.8?

2013-02-15 Thread James Paige
game version numbers are different than the version number of python that pygame was compiled for. So what you used on your office windows computer was pygame 1.9.1 compiled for python 3.3.0 --- James Paige

Re: [pygame] Does PyGame 1.9.1 work with Python 3.3.0 on Mac OSX 10.6.8?

2013-02-15 Thread James Paige
On Fri, Feb 15, 2013 at 10:04:16AM -0500, Julian wrote: > On 02/15/2013 02:18 AM, Mt.Rose$TheFerns wrote: >> Yeah I am quite sure. >> >> I have 2.7.3 on my comp and it gives me no error at all. > > I don't know anything about Mac OS X, but I don't think you can use the > same Pygame installation

Re: [pygame] Pygame 1.9.2 source?

2012-10-09 Thread James Paige
I totally agree. Unfortunately many of the wiki pages are so badly spam-blitzed that I think most people have just given up on trying to clean them up :( I tried to fix a few today, but it is just a drop in the bucket :( --- James Paige On Tue, Oct 09, 2012 at 11:39:45AM -0400, Ryan Hope

Re: [pygame] Pygame 1.9.2 source?

2012-10-09 Thread James Paige
On Tue, Oct 09, 2012 at 08:19:48AM -0700, James Paige wrote: > On Tue, Oct 09, 2012 at 11:17:02AM -0400, Ryan Hope wrote: > > Where does the source for the pygame 1.9.2 builds come from? All I can > > find is 1.9.1 source which is over 3 years old. > > Wow. I was going to

Re: [pygame] Pygame 1.9.2 source?

2012-10-09 Thread James Paige
on the left labelled "Mercurial" which leads to a page named "cvs" which talks about Subversion :) It is in version control *somewhere* :) --- James Paige

Re: [pygame] please folks a bit of decency - Yes U Alec Bennett

2012-10-08 Thread James Paige
This is not appropriate for this list. If you want to carry on a personal argument, you can do it off-list. Lets get back to the topic of making games with pygame! :) --- James Paige On Mon, Oct 08, 2012 at 01:08:51PM -0700, SHANE VAN STRAATEN wrote: >No Alec your response to some

Re: [pygame] Importing Graphics

2012-10-07 Thread James Paige
are free to use. A much safer bet is to start at http://opengameart.org/ where virtually everything is designed to allow re-use. --- James Paige

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

2012-10-05 Thread James Paige
But for a beginner, just learning python, it really doesn't matter very much which version you use. The really important part is that your python version has to match your pygame version. I am pretty sure that the vast majority of tutorials will work exactly the same in 2.7 and 3.x ---

Re: [pygame] Problems with reading joystick axis values

2012-08-14 Thread James Paige
I am pretty sure you need to pump the event queue. http://www.pygame.org/docs/ref/event.html#pygame.event.pump --- James Paige On Tue, Aug 14, 2012 at 01:41:13PM -0700, Franky wrote: > Hello! > > I have been playing around with joysticks in pygame a little bit. > This is my most re

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

2012-05-14 Thread James Paige
> I've given up on using SysFont because the results are > too unpredictable cross-platform. I always bundle my > own fonts with my games and use Font to load them > explicitly. YES! This, this, a thousand times THIS! --- James paige

Re: [pygame] Extending OpenGL support in Pygame

2012-04-05 Thread James Paige
port that works the same way as the existing Surface class is the biggest weakness of pygame. Although I would much rather have such a feature as part of pygame, rather than part of a GUI add-on --- James Paige

Re: [pygame] How to close audio file?

2012-03-23 Thread James Paige
Maybe my memory is fuzzy from so much time spent on Linux, but I thought Windows only locked files that you have open for writing. Shouldn't it not be locking a file that is only open for read? Is it possible that mixer.music.load() is opening the music file in the wrong mode? --- James

Re: [pygame] "Making Games with Python & Pygame" free book

2012-03-19 Thread James Paige
Red-Green-Blue is for additive color (light) Red-Blue-Yellow and Cyan-Magenta-Yellow are for subtractive color (paint, ink, etc) On Mon, Mar 19, 2012 at 06:15:15PM +0100, Nick Arnoeyts wrote: >You're probably talking about something else, but isn't it supposed to be >Red-Green-Blue and n

Re: [pygame] Re: pygame sdl_image png/jpeg support

2012-02-14 Thread James Paige
eb 14, 2012 at 09:12:37AM -0800, AntCox wrote: > Thank you James. When I work out where the correct libs have been > installed should those locations be appended to the string assigned to > ORIGLIBDIRS or just replace what Chris has in there? > > On Feb 14, 6:01 pm, Jam

Re: [pygame] Re: pygame sdl_image png/jpeg support

2012-02-14 Thread James Paige
He did already :) > ORIGLIBDIRS="/lib:/lib/`uname -i`-linux-gnu:/lib64:/X11R6/lib" \ >     python setup.py build the first line puts the lib location for your system into the ORIGLIBDIRS environment variable. Then when you run setup.py in the second line, setup.py knows to automatically search

Re: [pygame] Pygame 2.0

2012-02-13 Thread James Paige
omantic in > me. If the next major release of pygame is ready and SDL 2.0 is not out yet, we should be calling it pygame 1.10.0 (but hopefully SDL 2.0 WILL be out by then) --- James Paige

Re: [pygame] SDL 1.2.15 win32 binary is now available

2012-01-30 Thread James Paige
I am not aware of any good reason why pygame would require python2.6 I have been using pygame with python 2.7 for a long time now, and I have not encountered any problems. --- James Paige On Mon, Jan 30, 2012 at 10:10:45PM +0100, Florian Krause wrote: > Good, because I would really like

Re: [pygame] Pygame subset for Android

2012-01-27 Thread James Paige
never run across those issues --- James On Fri, Jan 27, 2012 at 09:56:47PM +0100, Nathan Biagini wrote: >Ho. >Thanks, and everything is supported? I mean, i can use font, mixer etc...? >Because i heard a lot about font module that would not work properly. > >2

Re: [pygame] Pygame subset for Android

2012-01-27 Thread James Paige
id phones and tablets have less processor power than PCs, so I have to be more careful about performance. If you want an example of a pygame game that was ported to android using PGS4A, search the android market for Stegavorto --- James Paige

Re: [pygame] Beginner Question

2012-01-09 Thread James Paige
or we may have a > problem). > > Lenard Lindstrom Doesn't SDL_mixer allow the use of libmad as an alternative to smpeg? --- James Paige

Re: [pygame] dmg files vs .zip files on OSX?

2011-12-29 Thread James Paige
just a disk image in HFS+ format, but the compression and encryption are special somehow. --- James Paige

Re: [pygame] spammity spam on /wiki/patchesandbugs

2011-12-02 Thread James Paige
I have suggested this before, but it bears repeating. Anonymous users, and new users should just not be allowed to make any edit that contains a url. --- James Paige On Fri, Dec 02, 2011 at 11:56:01AM -0430, Ciro Duran wrote: >The wiki is full of them. I tried in the past to edit th

Re: [pygame] pygame4android - does the end user need P4A?

2011-11-10 Thread James Paige
tall the Pygame for Android package, but there is a complete copy of it embedded into your .apk file. Python does indeed run on the android phone. --- James Paige

Re: [pygame] man oh man Java is painful

2011-11-03 Thread James Paige
OT the Java version, it is mostly re-written in C, so I guess this is the exception that proves the rule :) --- James Paige

Re: Re: [pygame] Students Interested in Pygames Community

2011-10-21 Thread James Paige
ogram. --- James Paige On Fri, Oct 21, 2011 at 07:34:44AM -0400, Joe Ranalli wrote: >Besides the programming aspects, one of the great things is that it >teaches about the sciences as well. Even the most trivial games require >use of basic physics concepts like vector math and the

Re: [pygame] pygame on android first impressions

2011-10-20 Thread James Paige
your phone. I tried to do profiling on my Android device. The cProfile module didn't work, but the profile module did, unfortunately it is so much slower than the cProfile module, so it was difficult to test with on the Android device. --- James Paige On Thu, Oct 20, 2011 at 04:28:45PM

Re: [pygame] set new recommendation to which version of pygame?

2011-09-30 Thread James Paige
will only confuse newcomers. Maybe just a link on the downloads page that leads to a separate page titled "How to decided which python+pygame version is best for me" --- James Paige On Fri, Sep 30, 2011 at 11:26:56AM -0500, Jake b wrote: >For the updated website, what versions do

[pygame] pygame download page still reccomends python 2.5

2011-09-29 Thread James Paige
r who I am, the "best" version of pygame is the one that will work on my computer ;) --- James Paige

Re: [pygame] sprite backgrounds saving as white

2011-09-22 Thread James Paige
anks! BMP format has no transparency. If you use BMP, then you have no choice but to use colorkey transparency. http://pygame.org/docs/ref/surface.html#Surface.set_colorkey But what you probably really want is to ise PNG format instead of BMP. PNG actually supports transparency. --- James Paige

Re: transition plan was Re: [pygame] contemplating move to bitbucket(and hg). what do you think?

2011-08-22 Thread James Paige
On Mon, Aug 22, 2011 at 12:07:30PM +0200, René Dudfield wrote: >Hello again, > >http://hg.pygame.org/ > >Is the domain name now for source, issues etc. > >@James > >The urls should map from 3 through to 73, like this: >http://pygame.motherhamster.org/bugzilla/show_bug.cg

Re: transition plan was Re: [pygame] contemplating move to bitbucket(and hg). what do you think?

2011-08-18 Thread James Paige
If, after the conversion is complete, you can give me a file that maps bugzilla bug numbers to bitbucket bug numbers, I can make the old bug urls redirect to the new bitbicket urls. --- James Paige On Thu, Aug 18, 2011 at 06:59:41PM +0200, René Dudfield wrote: >Hi, > >I

Re: [pygame] Articles about game design?

2011-08-17 Thread James Paige
Are you looking for something for yourself, or something for your students? I was pretty impressed with http://inventwithpython.com/ --- James Paige On Wed, Aug 17, 2011 at 08:44:32PM +0200, Hokan LUNDBERG wrote: > Hello! > > I have used Pygame in my classes for a year now, and it i

Re: [pygame] growing out of idle ide

2011-08-11 Thread James Paige
I never mess with the color schemes on them, but I have been very happy with both Scite and Geany. Neither of them has any particularly fancy features. They are simple. --- James On Thu, Aug 11, 2011 at 05:43:04PM -0300, Sean Wolfe wrote: > Hey guys + gals, I am wondering if anybody can recomme

Re: transition plan was Re: [pygame] contemplating move to bitbucket(and hg). what do you think?

2011-08-04 Thread James Paige
in the ass, no matter where you are migrating them to :( --- James Paige

Re: [pygame] trajectory

2011-07-22 Thread James Paige
et is launched that it will always hit the target no matter how it moves. That being said, I don't have any idea if Nathan Biagini wants to make his own tower defense game work that way or not :) --- James Paige On Fri, Jul 22, 2011 at 08:24:51AM -0700, Lee Buckingham wrote: >Unle

Re: [pygame] trajectory

2011-07-20 Thread James Paige
Not built into pygame, but there is a good one on the pygame wiki: http://pygame.org/wiki/2DVectorClass On Wed, Jul 20, 2011 at 04:33:16PM +0200, Nathan BIAGINI wrote: >There is a pygame object to create a 2d vector? > >2011/7/20 Joe Ranalli > > Yes a vector is probably appropriat

[pygame] pygame bug tracking (bugzilla alternative?)

2011-05-18 Thread James Paige
the bugs already filed in it into a different bug tracker? (maybe even a python-based one?) I am not going to suddenly stop hosting it or anything like that, I just want to find out if there is anybody out there who is interested in taking it over and/or making it better. --- James Paige

Re: [pygame] Resolution for a 2d game

2011-05-16 Thread James Paige
A real nuisance. > > Alan Another big advantage of NOT automatically forcing forcing fullscreen, is that it makes it very easy for you as the developer to test various resolutions that are smaller than your desktop size. --- James Paige

Re: [pygame] Frames per seconds

2011-05-02 Thread James Paige
from your game logic fps. Even if you want them both to be 60 fps, it can still be a big advantage to separate them, because a slowdown in one doesn't always have to affect the other. --- James Paige

Re: [pygame] Making UPS smart with Pygame and Joystick input socket

2011-04-13 Thread James Paige
On Wed, Apr 13, 2011 at 10:18 AM, James Paige wrote: > I was assuming that you were talking about a USB joystick or gamepad. > Are you talking about the old midi-port style joysticks? the ones where > the port is usually on the sound card? > > I have no idea if pygame supports th

Re: [pygame] Making UPS smart with Pygame and Joystick input socket

2011-04-13 Thread James Paige
to look at it and wondered why it seemed to be a broken PNG) --- James Paige On Wed, Apr 13, 2011 at 06:49:47PM +0200, slawko.skrzy...@poczta.fm wrote: > No, I do not want to disassemble a Joystick. > I simply want to add a relay that would be connected to existing relay in UPS > that

Re: [pygame] Making UPS smart with Pygame and Joystick input socket

2011-04-13 Thread James Paige
ygame window before you can read joystick events. You said this was a server, so if it is not running a graphical environment, initializing that window could possibly be a problem. Otherwise, sounds like fun :) --- James Paige On Wed, Apr 13, 2011 at 04:55:53PM +0200, slawko.skrzy...@poczta.fm

Re: [pygame] Whoa! Bad slowdown!

2011-04-12 Thread James Paige
Use python's cProfile module to quickly pinpoint the slowest parts of your code. http://docs.python.org/library/profile.html --- James Paige On Tue, Apr 12, 2011 at 04:02:35PM -0700, Julian Marchant wrote: >I have actually mentioned this project of mine on this list before, but it

Re: [pygame] Making UPS smart with Pygame and Joystick input socket

2011-04-12 Thread James Paige
Are you sure your UPS device is actually being read as a Joystick? Exactly what kind of UPS do you have, and how is it connected to the computer? There are probably better tools for doing what you want to do than pygame. --- James Paige On Wed, Apr 13, 2011 at 12:42:18AM +0200, slawko.skrzy

Re: [pygame] Using reStructuredText for document sources

2011-03-04 Thread James Paige
more of a > user's guide then a api reference. > > Lenard Just a thought-- is there any possible interface where volunteers could have a wiki-like interface for contributing updates directly to the reST format docs? --- James Paige

Re: [pygame] Please help!

2010-11-01 Thread James Paige
t; > > Hi René, > > Ok, how do I do that? > > Zach py2exe is a separate project, and is not part of pygame. See http://www.py2exe.org/ I couldn't find a mailing list there, but they do have an IRC channel, and at least one of the py2exe developers has posted his e-mail address there. --- James Paige

Re: [pygame] Re: [Py2exe-users] Error with pygame

2010-10-30 Thread James Paige
nce with having both 32-bit python+pygame+py2exe and 64-bit python+pygame+py2exe installed simultaneously on the same system? That seems ideal for being able to distribute executables for both architechtures --- James Paige

Re: [pygame] frame independant movement

2010-08-27 Thread James Paige
d is fixed size timesteps for >your physical simulation. I seem to remember that one of the Quake games (or was it all of them?) did this /wrong/. The distance your character could jump was affected by your frame rate, making certain hard jumps impossible at certain frame rates. --- James Paige

Re: [pygame] frame independant movement

2010-08-27 Thread James Paige
ly a matter of creating a Pygame Clock object and calling > clock.tick() to delay until the appropriate time to maintain some max > framerate? That only caps a max framerate. What Gumm is talking about is when your framerate and your game simulation rate can be adjusted independantly --- James Paige

Re: [pygame] Re: Keeping a sprite on screen with rect.clamp

2010-08-16 Thread James Paige
step = distance / time On Tue, Aug 17, 2010 at 10:43:30AM +0800, Mark Reed wrote: > I want to calculate a straight path of points between two points and > each frame do: > > sprite.x, sprite.y = sprite.path[step] > step++ > > And have the sprite move along that line. I've lost all basic math >

Re: [pygame] Spam on Tutorials page

2010-08-05 Thread James Paige
that contain urls to a queue for moderation fi you want to get fancy. --- James Paige

Re: [pygame] Spam websites hijacking the wiki

2010-07-07 Thread James Paige
I suggest auto-rejecting any post that contains a url unless the post is from a whitelist of known non-spammer users. --- James Paige On Tue, Jul 06, 2010 at 09:32:19PM -0700, scribbler95 wrote: > Hi, I'm new to this mailing list though I've been using pygame for > about 2 ye

[pygame] informal poll on Windows python version

2010-04-28 Thread James Paige
installed) Reason (optional): Until recently I thought python 2.5 + was the only version to work with pygame and py2exe. Recently switched to 2.6 as my default, but won't removed 2.5 yet until I have tested py2exe on all my projects. --- James Paige

Re: [pygame] Running Python 2.5 alongside 2.6

2010-04-28 Thread James Paige
windows, so we can actually say which is more popular, rather than speculating. (I'll start a separate thread for that) --- James Paige On Wed, Apr 28, 2010 at 05:22:18PM +0100, René Dudfield wrote: >you just go to the url you want to create, then edit it. > >cu. > >

Re: [pygame] Running Python 2.5 alongside 2.6

2010-04-28 Thread James Paige
oint to a wiki page which could outline the pros and cons of each python version as it applies to pygame. ... I just tried to create a wiki page for that purpose, but I can't figure out how to create new pages, only edit existing ones :( --- James Paige

Re: [pygame] Pygame, PyOpenGl, and py2exe, OH MY!

2010-04-22 Thread James Paige
pyopengl 3.0 is notoriously difficult to py2exe. However, I was able to find this page, which suggests a possible solution: http://blog.vrplumber.com/index.php?/archives/325-Got-py2exe-+-PyOpenGL-limping-across-the-line...-Need-to-add-the-.egg-files-to-the-path.html --- James Paige On Thu

Re: [pygame] problems getting python 3.1 to work with pygame 1.9

2010-04-18 Thread James Paige
I have read that book. It starts with Python 3 but when you get to the chapters that use pygame it instructs you to switch to python 2.6. --- James Paige On Sat, Apr 17, 2010 at 11:46:49PM -0400, Khono Hackland wrote: > It is indeed for python 3.1. The book tells the user, on pag

Re: [pygame] newbie

2010-03-29 Thread James Paige
grep is a unix command for searching files. All us cool Linux kids know it :) But the Windows equivalent would just be to search in the pygame examples folder for any files that contain the word SLK_ --- James On Mon, Mar 29, 2010 at 09:24:56PM +0100, sne...@msn.com wrote: >grep -r for "SD

Re: [pygame] Python 2.5.4 or 2.6

2010-03-25 Thread James Paige
IDLE != python On Thu, Mar 25, 2010 at 06:48:27PM -, sne...@msn.com wrote: > I do like 3.1 for learning, if something goes wrong in 2.5.4 it cuts out > and all your work is lost, 3.1, if something doesn't add up you can close > the program but it doesn't close your .py files so you can save

Re: [pygame] pygame.mixer.init(frequency=?)

2010-02-25 Thread James Paige
e better to resample in advance, rather than to expect the library to do it at runtime. --- James Paige

Re: [pygame] Pygame and Enthought

2010-01-07 Thread James Paige
k/Versions/ That leads me to believe that EPD's python is just an ordinary Python framework install. Don't the regular Mac install packages on pygame.org work with that? --- James Paige

Re: [pygame] Bugtracking for the camera module?

2010-01-04 Thread James Paige
e. If there is anything else missing, just say so, and I can fix it. Although Rene is correct, the mailing list does tend to get faster results :) --- James Paige

Re: [pygame] Bug: Python crash after switch to directx fullscreen & quit

2009-12-11 Thread James Paige
On Fri, Dec 11, 2009 at 02:20:33PM -0800, Yanom Mobis wrote: >pygame does directx? that's new. But i suggest you use openGL so your game >is cross-platform. SDL has a directx backend, but it only gets used by default under certain

Re: [pygame] How do you do the sound?

2009-12-10 Thread James Paige
On Thu, Dec 10, 2009 at 09:21:16PM +, Kris Schnee wrote: > On Thu, 10 Dec 2009 21:36:10 +0100, inigo delgado > wrote: > > Hi all: > > > > And sorry but my not to good english > > > > I'm pretty new in pygame, and in my freetime i'm doing a shooter based en > > star wars -sh!!! don't tell

Re: [pygame] Ncurses RTS?

2009-12-06 Thread James Paige
a Windows version last time I checked (*checks again, yep*) There is a wcurses work-alike module that you can find, although IIRC it has some minor differences that you will have to keep in mind if you want your game to work cross-platform. Gosh I love/hate Dwarf Fortress :) --- James Paige

Re: [pygame] Re: loss of rapidly repeated keypresses (from a barcode gun keyboard)

2009-12-03 Thread James Paige
On Thu, Dec 03, 2009 at 09:26:18AM -0800, Brian Fisher wrote: >On Thu, Dec 3, 2009 at 8:54 AM, James Paige >wrote: > > ...Although that still doesn't explain why it has no problem with any of > the non-SDL apps I have tested on Linux. > >pyglet i

Re: [pygame] loss of rapidly repeated keypresses (from a barcode gun keyboard)

2009-12-03 Thread James Paige
On Thu, Dec 03, 2009 at 05:04:05PM +, René Dudfield wrote: >Hi, > >I think this has to do with SDL and xevents. It's possible SDL can lose >events if they come in too fast. Since it tries to prevent flooding of >the event queue. Well it does for mouse events anyway. > >

Re: [pygame] loss of rapidly repeated keypresses (from a barcode gun keyboard)

2009-12-03 Thread James Paige
On Thu, Dec 03, 2009 at 12:12:14AM -0600, Jake b wrote: >Have you tried changing .key.set_repeat(something_small) ? I tried that, but it made no difference. >And how are you polling for the events? Here is my test code: #!/usr/bin/env python import pygame from pygame.locals import *

Re: [pygame] Re: loss of rapidly repeated keypresses (from a barcode gun keyboard)

2009-12-03 Thread James Paige
doesn't explain why it has no problem with any of the non-SDL apps I have tested on Linux. --- James Paige

Re: [pygame] Re: loss of rapidly repeated keypresses (from a barcode gun keyboard)

2009-12-02 Thread James Paige
On Wed, Dec 02, 2009 at 04:39:00PM -0800, Brian Fisher wrote: >On Wed, Dec 2, 2009 at 1:51 PM, James Paige >wrote: > > I did a quick test with Pyglet, and it suffers from the same problem. I > take that to mean that using sdl event callbacks does not work aro

Re: [pygame] Re: loss of rapidly repeated keypresses (from a barcode gun keyboard)

2009-12-02 Thread James Paige
odule. I did a quick test with Pyglet, and it suffers from the same problem. I take that to mean that using sdl event callbacks does not work around this problem. --- James Paige

Re: [pygame] MIDI player selecting wrong instruments

2009-11-17 Thread James Paige
some esoteric ways. --- James Paige

Re: [pygame] Limited Range?

2009-11-04 Thread James Paige
On Wed, Nov 04, 2009 at 10:31:24AM -0800, Ian Mallett wrote: >On Wed, Nov 4, 2009 at 9:21 AM, James Paige >wrote: > > x**0.5 is the same as math.sqrt(x) > >x**0.5 is faster than math.sqrt() >Ian Interesting! You are absolutely right about that. x**0

Re: [pygame] Limited Range?

2009-11-04 Thread James Paige
On Wed, Nov 04, 2009 at 05:23:42PM +, Kris Schnee wrote: > On Wed, 4 Nov 2009 09:21:58 -0800, James Paige > wrote: > > A quick test with the timeit module suggest that the ** operator is not > > slower. > > > Here is how I would write the distance check: > >

Re: [pygame] Limited Range?

2009-11-04 Thread James Paige
) Here is how I would write the distance check: def is_in_range(enemy, tower): return (enemy.x-tower.x)**2 + (enemy.y-tower.y)**2 <= tower.range**2 --- James Paige On Tue, Nov 03, 2009 at 09:24:50PM -0500, Michael George wrote: > If you find this is too slow, you'll get much better per

Re: [pygame] Advice on turning sprite (newbie)

2009-10-26 Thread James Paige
I would put "tank.move_me(x_move, y_move)" right before the "screen.blit(background, (0,0))" --- James Paige

Re: [pygame] Tower Defense game criticism

2009-10-18 Thread James Paige
t out slow, and only get harder slowly. Also, it looked to me as if all the towers had unlimited range. I think limited range is a pretty important gameplay element for a tower defense game. --- James Paige

Re: [pygame] Function Inheritance

2009-10-14 Thread James Paige
hould be fine with it. But perhaps someone else knows some complaints about multiple inheritance that I am not aware of... --- James Paige

Re: [pygame] Function Inheritance

2009-10-14 Thread James Paige
On Wed, Oct 14, 2009 at 05:27:50PM -0400, Kris Schnee wrote: > This is more of a general Python question. > > [clip..] > > Seems cumbersome, doesn't it? I'm basically trying to give my new class > access to the neat functions while putting them into a separate module, > so that the main module

Re: [pygame] Capture tablet pressure?

2009-10-11 Thread James Paige
On Sun, Oct 11, 2009 at 03:21:20PM -0700, Eric Pavey wrote: >Been searching around, and haven't come up with anything: Anyone know how >to capture tablet pressure in Pygame? Pygame recognizes my tablet (Wacom >Bamboo) just fine as a mouse, buttonclicks etc, but no "pressure" based on

Re: [pygame] 10 bits per color

2009-10-01 Thread James Paige
wever, if you do the same thing with an RGB141414 camera, you will still lose color depth, but the end result will still have a heck of a lot more color in it than with the RGB888 camera. I actually did something like this myself. When I was on vacation to Carlsbad Caverns, I took some pictures with no flash, relying only on the ambient light that the Park Service has installed in the cave. I was using an old digital camera. I don't know the color depth but it was probably RGB888 or RGB666 or something like that. On the camera these pictures looked pure-black as if I had taken them with the lenscap on. I thought they were total losses, until I put them on my computer and massively increased the brightness with The Gimp. Those photos became visible again, but their colors were all skewed to greenish hues. You can see a few of them here: http://gilgamesh.hamsterrepublic.com/gallery/CarlsbadCaverns?page=6 The brightness-adjusted photos are really easy to spot in comparison to the flash-photos because of the color-shift. --- James Paige

Re: [pygame] 10 bits per color

2009-10-01 Thread James Paige
e colorblindness. Tetrachromatism (If I recall correctly) happens when a woman gets one different kind of colorblindness on each X. Somehow, sometimes this results in the "Other Red" and "Other Green" cones combining to behave like a population of "Orange" cones, so her vision is effectively Red-Orange-Green-Blue and she can see orange as if it was a primary color, instead of as a secondary color like most of the rest of us do. --- James Paige

Re: [pygame] 10 bits per color

2009-10-01 Thread James Paige
digital color is encoded in pixels, so there may possibly be other reasons why RGB888 might be less that mathematically perfect for human color vision. I would be interested to hear from someone who IS an expert. Do we have any Opticians on-list? :) --- James Paige

Re: [pygame] 10 bits per color

2009-09-30 Thread James Paige
ng list whether or not a future version of SDL will support it. http://www.libsdl.org/mailing-list.php --- James Paige

Re: [pygame] EXE: Narrowing Down the Problem

2009-09-18 Thread James Paige
get a chance to upgrade to 2.6 I'll let you know if your simple text case works for me. --- James Paige

Re: [pygame] Numeric wireless keyboard

2009-09-09 Thread James Paige
Have you asked on the SDL mailing list yet? Since this does indeed seem to be an SDL problem, they are likely to be interested in the problem too. http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org --- James Paige On Wed, Sep 09, 2009 at 08:52:38PM -0400, pierrelafran...@sympatico.ca wrote

Re: [pygame] Picking monitor...

2009-08-30 Thread James Paige
On Sun, Aug 30, 2009 at 11:10:30AM -0700, Gene Buckle wrote: > On Sun, 30 Aug 2009, Brian Fisher wrote: > > >On Fri, Aug 28, 2009 at 10:08 AM, Gene Buckle wrote: > > > >>The main issue is that the avionics computer will have more than a couple > >>of these USB video adapters. Is it possible to d

Re: [pygame] Picking monitor...

2009-08-28 Thread James Paige
renamed SDL 2.0. After that point, maybe pygame will migrate to it (and correct me if I am wrong, but I think somebody is already working on this, right?) --- James Paige

Re: [pygame] Numeric wireless keyboard

2009-08-25 Thread James Paige
On Tue, Aug 25, 2009 at 01:14:52AM -0400, pierrelafran...@sympatico.ca wrote: > James Paige wrote: > > On Thu, Aug 20, 2009 at 08:58:27AM -0400, pierrelafran...@sympatico.ca > > wrote: > >> René Dudfield wrote: > >>> yeah, looks like somewhere the keyboard mapp

Re: [pygame] Pygame Installation problems (Python 2.6.2)

2009-08-20 Thread James Paige
with gcc 4.x since the 64bit cross > compiler is itself a 4.x version. But that is as far as I got. I too > don't have a 64bit machine. > Lenard > > James Paige wrote: > >Has anybody tried to build a 64-bit pygame? (either Windows or Linux?) >

  1   2   3   >