Re: [pygame] pygame missing mouse events

2010-03-17 Thread John Eriksson
Regards /John Eriksson 2010/3/17 René Dudfield ren...@gmail.com: hi, which OS are you using? cheers, On Thu, Mar 18, 2010 at 12:58 AM, Wakefield, Robert rjw03...@engr.uconn.edu wrote: I've been trying to handle mouse support using pygame, and I've found that clicks are being missed

Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-15 Thread John Eriksson
2009/11/13 pierrelafran...@sympatico.ca pierrelafran...@sympatico.ca: Pierre Lafrance Caucasian, French speaking from Québec (Canada) Will we know level associate to our name ? ;-) Good luck Hi Pierre, When the player starts a new Career in the World Series, all AI-players levels will

Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-13 Thread John Eriksson
*smile* I hereby promise to not use your names, nationalities or e-mailaddresses in any other way than to name the AI-players in Power Play (or whatever it might be called whenever it's done). Best Regards /John Eriksson 2009/11/13 d...@amberfisharts.com: Hi again. may I add that I assume

Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-13 Thread John Eriksson
Haha! I guess I didn't read my mail carefully enough before I pressed send. Of course I won't use your e-mail addresses :-) Best Regards /John Eriksson 2009/11/13 Olof Bjarnason olof.bjarna...@gmail.com: 2009/11/13 John Eriksson j...@arainyday.se *smile* I hereby promise to not use your

Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-13 Thread John Eriksson
hope you wont be too angry with me. Best Regards /John Eriksson 2009/11/13 rebus_ r.dav...@gmail.com: Heres one to test your unicode :) Davor Lučić / Croatia

[pygame] Need names and nationalities for AI playes in new sport-game

2009-11-12 Thread John Eriksson
is done. If you wan't your name to apear as a AI-player in the game, please send me your name (first + last) and your nationality. Best Regards /John Eriksson http://arainyday.se

Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-12 Thread John Eriksson
different countris! The PyGame community rocks! Keep 'em comming! Best Regards /John Eriksson

Re: [pygame] tint a surface?

2009-09-21 Thread John Eriksson
Take alook at my PaintBrush project. The PaintBrush class has a feature to set both color and to modify the current alpha values on a brush (wich actually is a surface). Best regards /John http://www.pygame.org/project/1280/?release_id=2230 2009/9/20 Ian Mallett geometr...@gmail.com: On Sat,

Re: [pygame] Strange Error

2009-09-21 Thread John Eriksson
I've seen this some year ago. It occured when another program got hold of all sound resources. Check to see if there is any other program running that might use sound and try to close/terimate that process. /John 2009/9/21 René Dudfield ren...@gmail.com: my guess is it's a weird corruption

Re: [pygame] Re: Hexagonal collision detection?

2009-09-15 Thread John Eriksson
] 0:# Did we click on a none transparent pixel, Then we have clicked on the image. return True return False My five cents /John Eriksson (wmjoers) 2009/9/15 René Dudfield ren...@gmail.com: On Tue, Sep 15, 2009 at 12:05 PM, rygoody rygo...@gmail.com wrote: Where

Re: [pygame] Re: Hexagonal collision detection?

2009-09-15 Thread John Eriksson
Code without comments: if rect.collidepoint(pos): x = pos[0].rect.w y = pos[1].rect.h c = tuple(img.get_at((x,y)) if c[3] 0: return True return False /John 2009/9/15 John Eriksson j...@arainyday.se: Hi, I allways use the alpha value of an button image to accomplish

Re: [pygame] Re: Hexagonal collision detection?

2009-09-15 Thread John Eriksson
Ouch...a bug(!!!): This lines: x = pos[0].rect.w y = pos[1].rect.h Should be: x = pos[0] - rect.w y = pos[1] - rect.h 2009/9/15 John Eriksson j...@arainyday.se: Code without comments: if rect.collidepoint(pos):  x = pos[0].rect.w  y = pos[1].rect.h  c = tuple(img.get_at((x,y

[pygame] Problem with py2exe and font.pyd

2009-08-18 Thread John Eriksson
Windows7, Python 2.6 and Pygame 1.9.1 Please advice! Best Regards /John Eriksson

Re: [pygame] Problem with py2exe and font.pyd

2009-08-18 Thread John Eriksson
Hi, I found a solution. I had to copy the following DLL's manualy: SDL_ttf.dll libfreetype-6.dll Why arn't those included automaticly? Is there a way of telling py2exe to include those? Best Regards /John Eriksson 2009/8/18 René Dudfield ren...@gmail.com: Hi, this post seems to have

Re: [pygame] pygame mixer problem upgrading to ubuntu intrepid

2008-11-19 Thread John Eriksson
I have the same problem on Ubuntu 8.10. Did you install Pygame from the ubuntu repository or from the source? /John Eriksson sön 2008-11-16 klockan 16:37 -0600 skrev pymike: Re-installed and re-booted, and it's still not working. On Sun, Nov 16, 2008 at 4:23 PM, pymike [EMAIL PROTECTED

[pygame] Guidelines for sound?

2008-07-08 Thread John Eriksson
Hi, Are there any guidelines on how to use/configure soundfx/music in pygame without getting crack n' pops or lag. I know this is probably an SDL-issue but I know that several people has looked at this problem. Are there any best practices for choosing Sampling rate, Sample size, Buffer size

[pygame] Need help with CashTrainer!

2008-04-22 Thread John Eriksson
(especially the English translation) * If some one could help me find some more currencies it would be great (for exmaple USD and GBP)! * It would be greate if someone could help me translate Cash Trainer to other laguages as well. Thanks in advance! John Eriksson http://arainyday.se

[pygame] Odd size circles?

2007-08-17 Thread John Eriksson
Hi, It doesn't seem to be possible to draw circles with a uneven diameter. I tried to use pygame.draw.ellipse but that couldn't draw circles with an uneven diameter either. Is this a limit in pygame or sdl?? Best Regards /John

Re: [pygame] Odd size circles?

2007-08-17 Thread John Eriksson
*smile* What I ment with an uneven diameter was that I would like to draw circles with the diameter set to, for example, 3 - 9 - 17 - 33 etc. Maybe my English isn't all that understandable ;-) /John fre 2007-08-17 klockan 13:57 +0100 skrev Adam Bark: On 17/08/07, John Eriksson [EMAIL

[pygame] Questions about surface with alpha channel

2007-06-20 Thread John Eriksson
Hi, I have a couple of questions regarding surfaces with an alpha channel. 1. Is this the correct way of creating an surface with an alhpa-per-pixel channel? surface = pygame.Surface((w, h), pygame.SRCALPHA) 2. How do you clear an alpha channel surface? I guesss you can't use the fill method?

Re: [pygame] Questions about surface with alpha channel

2007-06-20 Thread John Eriksson
Hi, Thanks for your answer. But can you pass an RGBA value to the fill method? In the document it says RGB I think. Best Regards /John ons 2007-06-20 klockan 22:14 -0700 skrev Peter Shinners: John Eriksson wrote: 1. Is this the correct way of creating an surface with an alhpa-per-pixel

Re: [pygame] Slingshot 1.0

2007-06-01 Thread John Eriksson
fre 2007-06-01 klockan 10:07 +0200 skrev Rikard Bosnjakovic: On 5/30/07, John Eriksson [EMAIL PROTECTED] wrote: If you could help me test it I would be very happy! I would be happy to do so, if only you could provide an URL for it. http://www.pygame.org/projects/20/428/?release_id=734

[pygame] Fixed aspect ratio scaling

2007-05-31 Thread John Eriksson
Hi, Does anyone know about a good solution on the stretching problem when running in fullscreen mode on a widescreen monitor? For windows users having an nvidia driver it's possible to set Fixed aspect ratio scaling as an option for the display causing the widescreen to have black borders at the

[pygame] MIDI files in Games?

2007-05-31 Thread John Eriksson
Hi, I know PyGame can play midi-files but how about performance and portability? Will playing a midi-file be slower than playing an ogg or a wav? Will midi-music work on Linux, Windows and Mac? I guess a midi-file will sound different on different platforms. But will it be a huge difference or

Re: [pygame] Slingshot 1.0

2007-05-31 Thread John Eriksson
in the 60's...and...you would be right. But they didn't have the highly advanced Aiming Assistance Technology that you get when hitting an A-bonus!!! Ha, got you there! ;-) Best Regards /John Eriksson tor 2007-05-31 klockan 10:14 -0700 skrev Lenard Lindstrom: John Eriksson wrote: Hi, Finally

[pygame] Fullscreen perfomance problems

2007-05-30 Thread John Eriksson
. There are no problems on Linux. All ideas are welcome! Best Regards /John Eriksson

SV: [pygame] Fullscreen perfomance problems

2007-05-30 Thread John Eriksson
images are PNG with alpha-channel. Is there anything I can do or is it impossible to get alpha-blitting perfomance in fullscreen mode. Oh, yeah...I only have this problems on Windows XP. There are no problems on Linux. All ideas are welcome! Best Regards /John Eriksson

[pygame] Slingshot 1.0

2007-05-30 Thread John Eriksson
/John Eriksson

Re: [pygame] Website move

2007-05-30 Thread John Eriksson
trouble. Thanks! Phil John Eriksson [EMAIL PROTECTED] wrote: Hi, Still getting SQL-error when trying to add a new releas for one of my projects. Best Regerdas /John lör 2007-05-26 klockan 15:29 -0700

Re: [pygame] Mouse and Fullscreen

2007-05-29 Thread John Eriksson
Andrew Pape: Hi John, - Original Message From: John Eriksson [EMAIL PROTECTED] To: pygame-users@seul.org Sent: Tuesday, 29 May, 2007 3:19:26 PM Subject: [pygame] Mouse and Fullscreen Hi, I'm having some troubles using the mouse pointer when setting the display

[pygame] Mouse and Fullscreen

2007-05-28 Thread John Eriksson
Hi, I'm having some troubles using the mouse pointer when setting the display to fullscreen. I have no problems on Linux but in Windows the mouse doesnät show up. (Maybe just some occasional flicker.) Is this known problem or am I doing something wrong. I'm trying to set the resolution to

Re: [pygame] Website move

2007-05-27 Thread John Eriksson
Hi, Still getting SQL-error when trying to add a new releas for one of my projects. Best Regerdas /John lör 2007-05-26 klockan 15:29 -0700 skrev Phil Hassey: The pygame.org website was recently moved to a new server and had some troubles ... Sorry it took me a few days to get to fixing it - I

Re: [pygame] Need help testing Slingshot rc2

2007-05-25 Thread John Eriksson
Hi, Thanks for checking the spelling (English is not my main language)! You can use the Up and Down keys for setting the torpedo speed. Best Regards /John fre 2007-05-25 klockan 13:06 +0300 skrev Marius Gedminas: On Thu, May 24, 2007 at 09:04:48PM +0200, John Eriksson wrote: Please, help me

Re: [pygame] Need help testing Slingshot rc2

2007-05-25 Thread John Eriksson
On Thu, 2007-05-24 at 21:04 +0200, John Eriksson wrote: Hi, Hopefully this new version of Slingshot will work on more platforms. I've removed the surfarray dependency which caused problems on several platforms. I've also changed the behaviour of the force fields used on some

Re: [pygame] Need feed back on new game!

2007-05-24 Thread John Eriksson
Hi, This might be an surfarray issue as well. In the next release (4-5 hours away) I have removed the surfarray dependency and includes prerendered subpixel-images instead of generating them runtime. Best Regards /John Eriksson tor 2007-05-24 klockan 09:13 -0400 skrev Charles Joseph Christie

Re: [pygame] Need help testing Slingshot rc2

2007-05-24 Thread John Eriksson
Hi Ethan, Thanks for your excellent suggestions! I'll add them to the next release. Best Regards /John tor 2007-05-24 klockan 15:58 -0400 skrev Ethan Glasser-Camp: John Eriksson wrote: Please, help me test Slingshot once more and tell me what you think. Really cool! When you beat

RE: [pygame] Need help testing Slingshot rc2

2007-05-24 Thread John Eriksson
level one of the moons did not seem to have any gravity effect just straight shots worked. Don't know if that was intentional or not, didn't make playing any less fun regardless. great job. Dennis --- On Thu 05/24, John Eriksson [EMAIL PROTECTED] wrote: From: John Eriksson

Re: [pygame] Need feed back on new game!

2007-05-23 Thread John Eriksson
, John Eriksson [EMAIL PROTECTED] wrote: Could you try downloading it again? (I can't for some reason start my vmware windows right now.) pygame.org seems to be dead at the moment.

Re: [pygame] Need feed back on new game!

2007-05-23 Thread John Eriksson
Hi, There seems to be problems with the surfarray module on several platforms. I'll try to release Slingshot with pre-rendered subpixel-images to get rid of the surfarray dependency. Best Regards /John ons 2007-05-23 klockan 21:58 -0400 skrev John Cabral: Hi, I was trying out the game and

[pygame] Need feed back on new game!

2007-05-22 Thread John Eriksson
Hi, After several weeks of coding I'm finally releasing my latest project (at least the first release candidate), the space game Slingshot. http://www.pygame.org/projects/20/428/?release_id=724 It all started when I found the vec2d class in PyGames cookbook and after I played around a little

Re: [pygame] Need feed back on new game!

2007-05-22 Thread John Eriksson
Ah, yeah. I haven't tried it on windows yet. Sorry! A little bit to eager to release it. I'll have a look at it right now. Thanks! /John tis 2007-05-22 klockan 20:53 +0200 skrev DR0ID: John Eriksson schrieb: Hi, After several weeks of coding I'm finally releasing my latest project

Re: [pygame] Need feed back on new game!

2007-05-22 Thread John Eriksson
I should have remebered that MP3 and pygame doesn't mix well on Windows. Could you try downloading it again? (I can't for some reason start my vmware windows right now.) Best Regards /John tis 2007-05-22 klockan 20:53 +0200 skrev DR0ID: John Eriksson schrieb: Hi, After several weeks

Re: [pygame] Can't get clean sound!

2007-05-11 Thread John Eriksson
Finally I got it working! First I uppgraded to ALSA 1.0.14rc4. Then I changed the SDL-buffert size. Before the uppgrade the buffert sizing trick did not work. Best Regards /John tor 2007-05-10 klockan 08:17 -0700 skrev James Paige: On Thu, May 10, 2007 at 10:18:44AM +0200, John Eriksson

Re: [pygame] Can't get clean sound!

2007-05-10 Thread John Eriksson
Tried that (again) but still no luck. :-( Best Regards /John tor 2007-05-10 klockan 18:30 +1000 skrev René Dudfield: try: pygame.mixer.pre_init(44100,-16,2, 1024 * 3) except: pygame.mixer.pre_init() pygame.init() On 5/10/07, John Eriksson [EMAIL PROTECTED] wrote

Re: [pygame] Choppy sound playback

2007-05-10 Thread John Eriksson
What program? I'd like to test it on my machine!!! Best Regards /John tor 2007-05-10 klockan 10:53 +0100 skrev Chris Smith: Yes, I am using Linux, so I'll just follow the other thread. What I find strange though is that another program written in PyGame (although the sound code is a bit

Re: [pygame] Choppy sound playback

2007-05-10 Thread John Eriksson
The best result I get by using ESD and setting a the buffer size to 512 and the sampeleling rate to 11025. /John tor 2007-05-10 klockan 12:11 +0200 skrev John Eriksson: What program? I'd like to test it on my machine!!! Best Regards /John tor 2007-05-10 klockan 10:53 +0100 skrev Chris

Re: [pygame] Rotate image around another point?

2007-04-19 Thread John Eriksson
Well, no. I'm looking for a way to rotate the imagedata (like pygame.transform.rotate(...)) but your example rotates the image location. Right? /John tor 2007-04-19 klockan 10:36 +0200 skrev altern: hi john John Eriksson(e)k dio: Hi, The rotate function in the transform module

Re: [pygame] Rotate image around another point?

2007-04-19 Thread John Eriksson
-04-19 klockan 11:02 +0200 skrev Ulf Ekström: On 4/19/07, John Eriksson [EMAIL PROTECTED] wrote: Well, no. I'm looking for a way to rotate the imagedata (like pygame.transform.rotate(...)) but your example rotates the image location. Right? It is actually the same thing. Rotation around

Re: [pygame] Rotate image around another point?

2007-04-19 Thread John Eriksson
Wher reading Ulfs answer a little more carefully I thinks that it's just what he is sugesting. *smile* /John tor 2007-04-19 klockan 12:31 +0200 skrev John Eriksson: But maybe it'll work if you first rotate the imagedata around the centerpoint using pygame.transform.rotate(...) and then rotate

[pygame] 3D/2D sound?

2007-02-13 Thread John Eriksson
Hi, Is there a way to control the volume of different speakers using pygame (or a python package that can be used together with pygame)? 3D placement would be great but just to be able to set different volume for two speakers would be sufficient. I found Soya...but can that be used without

Re: [pygame] Pixel Perfect collision suggestion.

2007-01-30 Thread John Eriksson
and an example to show how to use it. The algorithm was used in one of the Second Pyweek Challenge winners! Trip on the Funny Boat - http://www.pygame.org/projects/20/235/ Best Regards /John Eriksson tis 2007-01-30 klockan 06:30 -0800 skrev Kamilche: V. Karthik Kumar wrote: I happened to read

Re: [pygame] Pixel Perfect collision suggestion.

2007-01-30 Thread John Eriksson
pixel width/height collision rectangles (when reduced to 1 x h ow w x 1 ), which I'll modify. Regards John Eriksson wrote: Hi, If you're looking for a pixel perfect collision detection algorithm, there is a project at pygame which contains an even faster one. PixelPerfect - http

[pygame] GP2X and PyGame

2006-12-13 Thread John Eriksson
Hi, I'm going to get my hands on a GP2X soon and was wondering if anyone is using pygame on that device. I've seen some pygame beta 1 release somewhere..but that project looked kind of dead?? But then I also saw a gp2x package in the latest pygame release. Are there anyone out that that could

Re: [pygame] Racing game Physics

2006-11-05 Thread John Eriksson
Hi, A neat trick is to use billiard-ball-physics and use circles for the cars collision detection. This will at least give you some collision responses to start with. And it might even be good enough for a arcade racing game. Best Regards /John sön 2006-11-05 klockan 16:53 -0300 skrev Pica:

[pygame] Sound format

2006-10-30 Thread John Eriksson
Hi, Which music formats can pygame.mixer play? I know there are some issues with MP3 on windows but how about Linux? Any more formats than MP3 and OGG?? Best Regards /John

Re: [pygame] Random Terrain Generator

2006-10-25 Thread John Eriksson
Hey Kris, Why don't register this at http://www.pygame.org ? /John ons 2006-10-25 klockan 19:21 -0400 skrev Kris Schnee: The code is at: http://kschnee.xepher.net/code/Terragens.py.txt A screenshot is at: http://kschnee.xepher.net/pics/061025skygold2.jpg Have fun! Kris

[pygame] Python 2.5

2006-10-17 Thread John Eriksson
Hi, Surly this is a silly question...but can i safely use python 2.5 with pygame 1.7.1? Best Regards /John Eriksson

[pygame] Current screen size

2006-09-25 Thread John Eriksson
Hi, Is there a way to determine the desktops current screen resolution? Best Regards /John

Re: [pygame] Pygame's future beyond 1.8

2006-08-22 Thread John Eriksson
implementing the very same API and just competing for the best performance?!?! Personally I will support which ever project implementing pixel perfect collision detection first ;-) Just my five cents... Best Regards /John Eriksson - http://arainyday.se