[pygame] PixelArray versus Surfarray + Numeric/NumPy

2009-01-05 Thread Jordan Applewhite
Hi everyone!  I'm a hobby programmer and new to pygame.  This is my first
post to the list.
I've been reading different docs and the the list archives to understand how
best to move forward with experiments in image blending.  The Surfarray
tutorial on the docs page is excellent, but a little outdated.  This seems
to be a transitional period where the documentation and support for NumPy
have not arrived and the pre-built Windows binaries for NumPy and Numeric
don't support the latest python.  As an alternative, can I just use
pygame.PixelArray for all of my realtime blending needs?  Is it too slow?

If not, could anyone point me to some documentation on setting up a Windows
build environment that will work for compiling pygame, python, and numpy
together?

Thanks very much for your help!

Jordan


Re: [pygame] GMArcade.com ~ The Friendly Game Host Community

2009-01-05 Thread Joe Strout

Matt Kremer wrote:


http://GMArcade.com provides Indie game developers with a means to
upload and share their games. Our Play Game Online technology is new
and improved, allowing all of your games to be played online without
saving and keeping them on your computer.


How does that work, exactly?

Thanks,
- Joe




[pygame] Re: PixelArray versus Surfarray + Numeric/NumPy

2009-01-05 Thread Jordan Applewhite
Hello again.  I may have posted prematurely.  It seems that the easiest
thing for me to do is to just set up a Python2.4 + Numeric dev environment
and wait for the incompatibilities to sort themselves out.  I still welcome
any of your suggestions too my previous questions.

Thanks again.

On Mon, Jan 5, 2009 at 12:31 PM, Jordan Applewhite 
jordan.applewh...@gmail.com wrote:

 Hi everyone!  I'm a hobby programmer and new to pygame.  This is my first
 post to the list.
 I've been reading different docs and the the list archives to understand
 how best to move forward with experiments in image blending.  The Surfarray
 tutorial on the docs page is excellent, but a little outdated.  This seems
 to be a transitional period where the documentation and support for NumPy
 have not arrived and the pre-built Windows binaries for NumPy and Numeric
 don't support the latest python.  As an alternative, can I just use
 pygame.PixelArray for all of my realtime blending needs?  Is it too slow?

 If not, could anyone point me to some documentation on setting up a Windows
 build environment that will work for compiling pygame, python, and numpy
 together?

 Thanks very much for your help!

 Jordan







Re: [pygame] Re: How to render japanese characters with font?

2009-01-05 Thread Frozenball
In Python3 'u' is not needed for unicode text but apparently pygame
hasn't been released for it yet (?).

On Sun, Jan 4, 2009 at 8:40 PM, .kiro. kirot...@gmail.com wrote:
 Hi There , i did \o/
  just put u , unicode before text. msg = uきろたわ , really easy.



 On Jan 4, 3:02 pm, leo kirotawa kirot...@gmail.com wrote:
 Hi there,

 I wanna make a game that in screen show japanese characters, but I dont
 wanna make this with image. I wanted just do it with render font.  But, its
 dont work right here, I tried and just show squares and never the
 characters. Already downloaded some fonts to japanese, but show just
 squares.  Anyone have a solution?

 --

 [DesenvolvedorWeb/CEFET/RN]
 [Ciências da Computação/UFRN]
 [Estudante de japonês nível 6]
 [Desenvolvedor em python, pygame]
 blog: corecode.wordpress.com/

 Mais sábio é aquele que sabe que não sabe (Sócrates)



Re: [pygame] Re: PixelArray versus Surfarray + Numeric/NumPy

2009-01-05 Thread Marcus von Appen
On, Mon Jan 05, 2009, Jordan Applewhite wrote:

 Hello again.  I may have posted prematurely.  It seems that the easiest
 thing for me to do is to just set up a Python2.4 + Numeric dev environment
 and wait for the incompatibilities to sort themselves out.  I still welcome
 any of your suggestions too my previous questions.

[...]

Numpy and Numeric have several differences, but are - in their overall
structure - similar. As you might have read, they support 3D access
(R,G,B). In contrast to them, PixelArray supports only 2D access using
the integer RGBA representation.

if 2D access is enough for you, PixelArray should work well in 90
percent of all cases. It is optimised for the direct surface access, so
that no performance loss through a 3rd party library is given.

(Complex) Mathematical operations and manipulation however might perform
better using Numpy and Numeric, especially in conjunction with the
lapack/atlas (a highly efficient math library) bindings of Numpy.

A better advice could be given, if you tell us your individual needs for
the pixel operations you have to do.

Regards
Marcus


pgpzZjFO7XruI.pgp
Description: PGP signature


Re: [pygame] Re: PixelArray versus Surfarray + Numeric/NumPy

2009-01-05 Thread Patrick Mullen
On Mon, Jan 5, 2009 at 10:02 AM, Jordan Applewhite
jordan.applewh...@gmail.com wrote:
 Hello again.  I may have posted prematurely.  It seems that the easiest
 thing for me to do is to just set up a Python2.4 + Numeric dev environment
 and wait for the incompatibilities to sort themselves out.  I still welcome
 any of your suggestions too my previous questions.

 Thanks again.

By the way, you do mean python2.5 right?  Python 2.6 and 3.0 are not
widely supported yet, but 2.5 is.


Re: [pygame] GMArcade.com ~ The Friendly Game Host Community

2009-01-05 Thread Noah Kantrowitz


On Jan 5, 2009, at 9:34 AM, Joe Strout wrote:


Matt Kremer wrote:


http://GMArcade.com provides Indie game developers with a means to
upload and share their games. Our Play Game Online technology is new
and improved, allowing all of your games to be played online without
saving and keeping them on your computer.


How does that work, exactly?


At least as of a little while ago, it was a Java applet that downloads  
the game executable and files to your machine and runs them without  
any form of protection.


--Noah


Re: [pygame] Re: PixelArray versus Surfarray + Numeric/NumPy

2009-01-05 Thread Lenard Lindstrom

Patrick Mullen wrote:

On Mon, Jan 5, 2009 at 10:02 AM, Jordan Applewhite
jordan.applewh...@gmail.com wrote:
  

Hello again.  I may have posted prematurely.  It seems that the easiest
thing for me to do is to just set up a Python2.4 + Numeric dev environment
and wait for the incompatibilities to sort themselves out.  I still welcome
any of your suggestions too my previous questions.

Thanks again.



By the way, you do mean python2.5 right?  Python 2.6 and 3.0 are not
widely supported yet, but 2.5 is.
  
Which platform. On Windows there is a Pygame 1.8.1 installer for Python 
2.6. And at http://www3.telus.net/len_l/pygame/ there are Pygame 1.9.0a0 
and NumPy 1.2.1 installers. NumPy 1.3 should be released soon and it 
will support Python 2.6. As for the choice between Numeric and NumPy, 
NumPy is now preferable. It was decided that Numeric will no longer be 
actively supported.


Lenard

--
Lenard Lindstrom
le...@telus.net



Re: [pygame] GMArcade.com ~ The Friendly Game Host Community

2009-01-05 Thread Matt Kremer

Quoting Noah Kantrowitz n...@coderanger.net:



On Jan 5, 2009, at 9:34 AM, Joe Strout wrote:


Matt Kremer wrote:


http://GMArcade.com provides Indie game developers with a means to
upload and share their games. Our Play Game Online technology is new
and improved, allowing all of your games to be played online without
saving and keeping them on your computer.


How does that work, exactly?


At least as of a little while ago, it was a Java applet that downloads
the game executable and files to your machine and runs them without any
form of protection.

--Noah


It is the same as downloading and running the game yourself. It just  
eliminates clicks and deletes the files when you stop playing.




Re: [pygame] Bundling Pygame documents

2009-01-05 Thread René Dudfield
Hi,

go for it if you like :)


Also, can you please include the test directory to be copied as well
whilst you're there?

(the tests will need to be refactored a little so they work within the
pygame.test. name space... but the first step is to make sure the
files are copied in)


cheers,




On Sun, Jan 4, 2009 at 11:12 AM, Lenard Lindstrom le...@telus.net wrote:
 Hi,

 If the Pygame documents are to be included as part of the Pygame
 installation is there any reason to continue producing document bundles? And
 who is taking responsibility for modifying setup.py to add the documents and
 examples? If it is not on anyone's schedule the I will have a look at it.

 Lenard

 --
 Lenard Lindstrom
 le...@telus.net




Re: [pygame] GMArcade.com ~ The Friendly Game Host Community

2009-01-05 Thread Matt Kremer



Matt Kremer wrote:


http://GMArcade.com provides Indie game developers with a means to
upload and share their games. Our Play Game Online technology is new
and improved, allowing all of your games to be played online without
saving and keeping them on your computer.




James Paige has uploaded his PyGame game StegaVorto to GMArcade. To  
see the Play Game Online technology in action, just visit his game page:


http://gmarcade.com/game/StegaVorto.html

And on the left side of the page there will be a Play Game Online  
button. It will load and run the game just as if you downloaded it and  
ran it, and then delete the game when you are done playing.


Thanks James!
~Matt



Re: [pygame] GMArcade.com ~ The Friendly Game Host Community

2009-01-05 Thread Luke Paireepinart
On Mon, Jan 5, 2009 at 12:06 PM, Noah Kantrowitz n...@coderanger.net wrote:

 On Jan 5, 2009, at 9:34 AM, Joe Strout wrote:

 Matt Kremer wrote:

 http://GMArcade.com provides Indie game developers with a means to
 upload and share their games. Our Play Game Online technology is new
 and improved, allowing all of your games to be played online without
 saving and keeping them on your computer.

 How does that work, exactly?

 At least as of a little while ago, it was a Java applet that downloads the
 game executable and files to your machine and runs them without any form of
 protection.

This isn't so much different than downloading the game yourself and
running it, is it?
You still make the conscious decision to click on a specific game,
with the knowledge that it'll do this.


Re: [pygame] GMArcade.com ~ The Friendly Game Host Community

2009-01-05 Thread Matt Kremer

Quoting Luke Paireepinart rabidpoob...@gmail.com:


On Mon, Jan 5, 2009 at 12:06 PM, Noah Kantrowitz n...@coderanger.net wrote:


On Jan 5, 2009, at 9:34 AM, Joe Strout wrote:


Matt Kremer wrote:


http://GMArcade.com provides Indie game developers with a means to
upload and share their games. Our Play Game Online technology is new
and improved, allowing all of your games to be played online without
saving and keeping them on your computer.


How does that work, exactly?


At least as of a little while ago, it was a Java applet that downloads the
game executable and files to your machine and runs them without any form of
protection.


This isn't so much different than downloading the game yourself and
running it, is it?
You still make the conscious decision to click on a specific game,
with the knowledge that it'll do this.



Exactly =)



Re: [pygame] Re: PixelArray versus Surfarray + Numeric/NumPy

2009-01-05 Thread Jordan Applewhite
Marcus:  Thanks for illuminating the difference between PixelArray and
Surfarray.  I'm trying to learn how use additive blending effectively, so I
think I can use either module.
Patrick  Lenard:   Ok, I understand now that I should just use numpy.
 After I looked in the arraydemo.py example I could see that the the changes
needed to use numpy were not very significant.

Also, I'm finding this tutorial:
http://www.scipy.org/Tentative_NumPy_Tutorial#head-b43db272311d8133ab8ba29b6e8ff921da5e792d
to be very helpful.  It seems like numpy would make it fun and easy to
dynamically operate on tile maps, in addition to pixel surfaces.

Many thanks,

Jordan

On Mon, Jan 5, 2009 at 2:24 PM, Lenard Lindstrom le...@telus.net wrote:

 Patrick Mullen wrote:

 On Mon, Jan 5, 2009 at 10:02 AM, Jordan Applewhite
 jordan.applewh...@gmail.com wrote:


 Hello again.  I may have posted prematurely.  It seems that the easiest
 thing for me to do is to just set up a Python2.4 + Numeric dev
 environment
 and wait for the incompatibilities to sort themselves out.  I still
 welcome
 any of your suggestions too my previous questions.

 Thanks again.



 By the way, you do mean python2.5 right?  Python 2.6 and 3.0 are not
 widely supported yet, but 2.5 is.


 Which platform. On Windows there is a Pygame 1.8.1 installer for Python
 2.6. And at http://www3.telus.net/len_l/pygame/ there are Pygame 1.9.0a0
 and NumPy 1.2.1 installers. NumPy 1.3 should be released soon and it will
 support Python 2.6. As for the choice between Numeric and NumPy, NumPy is
 now preferable. It was decided that Numeric will no longer be actively
 supported.

 Lenard

 --
 Lenard Lindstrom
 le...@telus.net




Re: [pygame] GMArcade.com ~ The Friendly Game Host Community

2009-01-05 Thread Aaron Maupin
I wouldn't want to be the person responsible when a game destroys 
someone's C: directory or even just installs a screensaver utility. 
Advertising Play Game Online gives users a false sense of security. 
Many kids, for example, are not allowed to download games; their parents 
restrict them to browser based games.  You definitely need some sort of 
obvious notice that executables are running outside of a sandbox and can 
do absolutely anything they like to a user's system.


Re: [pygame] GMArcade.com ~ The Friendly Game Host Community

2009-01-05 Thread Matt Kremer

Quoting Aaron Maupin mau...@pastrytech.com:


I wouldn't want to be the person responsible when a game destroys
someone's C: directory or even just installs a screensaver utility.
Advertising Play Game Online gives users a false sense of security.
Many kids, for example, are not allowed to download games; their
parents restrict them to browser based games.  You definitely need some
sort of obvious notice that executables are running outside of a
sandbox and can do absolutely anything they like to a user's system.


In browser games can do the same thing. I could add an About Play  
Game Online link that tells how the system works.




Re: [pygame] GMArcade.com ~ The Friendly Game Host Community

2009-01-05 Thread Matt Kremer

Quoting Aaron Maupin mau...@pastrytech.com:


I wouldn't want to be the person responsible when a game destroys
someone's C: directory or even just installs a screensaver utility.
Advertising Play Game Online gives users a false sense of security.
Many kids, for example, are not allowed to download games; their
parents restrict them to browser based games.  You definitely need some
sort of obvious notice that executables are running outside of a
sandbox and can do absolutely anything they like to a user's system.


Okay, I have added a link About P.G.O. Technology under the PGO  
button. It contains a warning, and information to developers.




Re: [pygame] GMArcade.com ~ The Friendly Game Host Community

2009-01-05 Thread James Paige
On Mon, Jan 05, 2009 at 05:55:01PM -0600, Matt Kremer wrote:
 Quoting Aaron Maupin mau...@pastrytech.com:
 
 I wouldn't want to be the person responsible when a game destroys
 someone's C: directory or even just installs a screensaver utility.
 Advertising Play Game Online gives users a false sense of security.
 Many kids, for example, are not allowed to download games; their
 parents restrict them to browser based games.  You definitely need some
 sort of obvious notice that executables are running outside of a
 sandbox and can do absolutely anything they like to a user's system.
 
 In browser games can do the same thing.

Flash sure can't, I don't know about Java.

 I could add an About Play  
 Game Online link that tells how the system works.

That would be good.

---
James Paige


Re: [pygame] GMArcade.com ~ The Friendly Game Host Community

2009-01-05 Thread Matt Kremer

Quoting James Paige b...@hamsterrepublic.com:


On Mon, Jan 05, 2009 at 05:55:01PM -0600, Matt Kremer wrote:

Quoting Aaron Maupin mau...@pastrytech.com:

I wouldn't want to be the person responsible when a game destroys
someone's C: directory or even just installs a screensaver utility.
Advertising Play Game Online gives users a false sense of security.
Many kids, for example, are not allowed to download games; their
parents restrict them to browser based games.  You definitely need some
sort of obvious notice that executables are running outside of a
sandbox and can do absolutely anything they like to a user's system.

In browser games can do the same thing.


Flash sure can't, I don't know about Java.


I could add an About Play
Game Online link that tells how the system works.


That would be good.

---
James Paige



Java can, as long as the user clicks Allow application to run (Just  
like the PGO technology).


Also, I have added that link James :) You can check it out under the  
PGO button on all game pages.




[pygame] GMArcade.com User Questions You

2009-01-05 Thread Matt Kremer

Hello PyGame,

Well after James Paige made two of his games available on GMArcade,  
one of our more active user alex_pof posted a question in our forums.  
Since James is the only PyGame user that I know of on GMArcade, I  
thought to extend his question to get a little more input for him.  
Here is a link to his topic:


http://gmarcade.com/joomla/index.php?option=com_fireboardfunc=viewItemid=29id=775catid=5#775

Please don't reply here with answers though...I don't want to have to  
copy  paste all of your answers. Just register on GMA, and the rest  
is simple. Doesn't take to long to register, and no verification is  
required.


Thanks!
~Matt



Re: [pygame] GMArcade.com User Questions You

2009-01-05 Thread Aaron Maupin

Matt Kremer wrote:

Please don't reply here with answers though...I don't want to have to 
copy  paste all of your answers. Just register on GMA, and the rest is 
simple. Doesn't take to long to register, and no verification is required.


I appreciate that you'd like to recruit forum members, but the simple 
(polite) solution is just to direct him to this mailing list.


Re: [pygame] GMArcade.com User Questions You

2009-01-05 Thread Matt Kremer

Quoting Aaron Maupin mau...@pastrytech.com:


Matt Kremer wrote:

Please don't reply here with answers though...I don't want to have   
to copy  paste all of your answers. Just register on GMA, and the   
rest is simple. Doesn't take to long to register, and no   
verification is required.


I appreciate that you'd like to recruit forum members, but the simple
(polite) solution is just to direct him to this mailing list.


Sounds good, I'll go post with the link. =)



Re: [pygame] extending pygame masks

2009-01-05 Thread Michael George


Nirav Patel wrote:
Sorry about the very long delay on this, but I finally committed 
Mike's convolve function and tests as revision 1796.


Nirav


Thanks!

--Mike


[pygame] Pygame in Linux without X Windows

2009-01-05 Thread Scott Sumner
Hello all,
 I've got a Debian Linux system that I'm working with and I wondered if
its possible for Pygame to do graphics without X-Windows installed?  The
system is being designed to run on a serial or network console but I'd still
like to output select things to the monitor.  Can Pygame do this without
X-Windows installed?  I thought it might be as simple as selecting the right
mode for the video card and enabling full screen but I haven't had a chance
to sit down and try it.

 Scott