[pygame] Getting input from command line

2008-12-01 Thread Fiona Burrows
I know this isn't directly related to PyGame but I figured there were worse places to ask a question like this. Does anybody know the best way to get input from the command line? Specifically space and escape. I have my program doing things in a thread and constantly reporting information.

Re: [pygame] Getting input from command line

2008-12-01 Thread Knapp
Does anybody know the best way to get input from the command line? Specifically space and escape. I have my program doing things in a thread and constantly reporting information. I'd like the main thread to be able to pause and unpause the other thread on space and to quit program cleanly

Re: [pygame] Getting input from command line

2008-12-01 Thread Fiona Burrows
Knapp wrote: I think I must be missing something. Why don't you just use pygame keys? http://www.pygame.org/docs/ref/key.html I was under the impression that I had to create a window before PyGame would get keys, or is this not the case? I wanted my program to be purely in the terminal.

Re: [pygame] Crazy Machine type game?

2008-12-01 Thread Kris Schnee
On Sun, 30 Nov 2008 22:57:19 -0200, claudio canepa [EMAIL PROTECTED] wrote: On Fri, Nov 28, 2008 at 2:44 PM, Joe Strout [EMAIL PROTECTED] wrote: Hi all, I'm new to pygame, and only recently returned to Python after nearly a decade in the REALbasic world. So I hope you'll speak slowly and

Re: [pygame] Getting input from command line

2008-12-01 Thread Michael George
Perhaps overkill, and not portable, but you could use the curses module. --Mike Fiona Burrows wrote: I know this isn't directly related to PyGame but I figured there were worse places to ask a question like this. Does anybody know the best way to get input from the command line?

Re: [pygame] Getting input from command line

2008-12-01 Thread Michael George
Michael George wrote: Perhaps overkill, and not portable, but you could use the curses module. --Mike Fiona Burrows wrote: I tried using Curses, but it didn't work out too well. I got the input great, but I came across problems when adding strings that went off screen (lol). Rather than

Re: [pygame] Crazy Machine type game?

2008-12-01 Thread Joe Strout
On Dec 1, 2008, at 7:33 AM, Kris Schnee wrote: On Sun, 30 Nov 2008 22:57:19 -0200, claudio canepa [EMAIL PROTECTED] wrote: There is an old clone like in pygame site, look at http://www.pygame.org/projects/21/139/ You might also want to look at Assembly Line:

[pygame] Pygame-Fenix - Using generators as game objects

2008-12-01 Thread Fiona Burrows
Hi all, years ago I used to use a tool to make games called DIV Games Studio, when it eventually died I started using it's successor called Fenix. The language that you used to make games was/is an odd mix of C and Pascal. However they had a novel way of creating and handling game objects.

[pygame] Python pygame in the web

2008-12-01 Thread OsKaR
Is it any way to put python and pygame in a web? I mean to create a game and put it on the web like flash games. Oscar

Re: [pygame] Pygame-Fenix - Using generators as game objects

2008-12-01 Thread Dan Krol
This is something I've thought of as well, but slightly differently. It started with me working on a game framework where your guy would have an __init__ for loading the images, and a FrameAction that gets called by the game loop. The game loop of the framework would handle all of the callbacks.

Re: [pygame] Pygame-Fenix - Using generators as game objects

2008-12-01 Thread Noah Kantrowitz
If you want to look up information about this, the general term is actor-based programming. Existing libraries (neither of which ever seemed that great) include PARLEY and Dramatis. Stackless tasklets are also a very nice way to handle this. --Noah On Dec 1, 2008, at 7:54 AM, Fiona

Re: [pygame] Python pygame in the web

2008-12-01 Thread Noah Kantrowitz
Short answer: No Long answer: Check the ML archives, this is discussed frequently. --Noah On Dec 1, 2008, at 8:07 AM, OsKaR wrote: Is it any way to put python and pygame in a web? I mean to create a game and put it on the web like flash games. Oscar

Re: [pygame] Python pygame in the web

2008-12-01 Thread OsKaR
What about web.py or Django? Make this tools possible to embeed a game in a web? 2008/12/1 Noah Kantrowitz [EMAIL PROTECTED] Short answer: No Long answer: Check the ML archives, this is discussed frequently. --Noah On Dec 1, 2008, at 8:07 AM, OsKaR wrote: Is it any way to put python

Re: [pygame] Python pygame in the web

2008-12-01 Thread Noah Kantrowitz
I don't think you read my answer. Did you read my answer? --Noah On Dec 1, 2008, at 8:51 AM, OsKaR wrote: What about web.py or Django? Make this tools possible to embeed a game in a web? 2008/12/1 Noah Kantrowitz [EMAIL PROTECTED] Short answer: No Long answer: Check the ML archives, this

Re: [pygame] Pygame-Fenix - Using generators as game objects

2008-12-01 Thread Fiona Burrows
Noah Kantrowitz wrote: If you want to look up information about this, the general term is actor-based programming. Existing libraries (neither of which ever seemed that great) include PARLEY and Dramatis. Stackless tasklets are also a very nice way to handle this. Thank you! I knew there

Re: [pygame] Pygame-Fenix - Using generators as game objects

2008-12-01 Thread Knapp
On Mon, Dec 1, 2008 at 6:05 PM, Fiona Burrows [EMAIL PROTECTED] wrote: Noah Kantrowitz wrote: If you want to look up information about this, the general term is actor-based programming. Existing libraries (neither of which ever seemed that great) include PARLEY and Dramatis. Stackless

Re: [pygame] [dev] making fastevents the default event module

2008-12-01 Thread Lenard Lindstrom
fastevent calls SDL locking functions for thread safetly. I don't know how this is superior to CPython's Global Interpreter Lock (GIL) which automatically provides thread locking for extension module functions. The only difference I can see is that fastevent.post() can wait when the message

RE: [pygame] Pygame-Fenix - Using generators as game objects

2008-12-01 Thread Noah Kantrowitz
Panda is more of a hybrid of an actor system and a lot of interlinked state machines (each actor has an FSM, and there are others that are global). I do actually like this model a lot, just not the Panda API. --Noah -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Re: [pygame] Pygame-Fenix - Using generators as game objects

2008-12-01 Thread Knapp
On Mon, Dec 1, 2008 at 7:49 PM, Noah Kantrowitz [EMAIL PROTECTED] wrote: Panda is more of a hybrid of an actor system and a lot of interlinked state machines (each actor has an FSM, and there are others that are global). I do actually like this model a lot, just not the Panda API. --Noah

RE: [pygame] Pygame-Fenix - Using generators as game objects

2008-12-01 Thread Noah Kantrowitz
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Knapp Sent: Monday, December 01, 2008 10:54 AM To: pygame-users@seul.org Subject: Re: [pygame] Pygame-Fenix - Using generators as game objects On Mon, Dec 1, 2008 at 7:49 PM, Noah Kantrowitz [EMAIL

Re: [pygame] Pygame-Fenix - Using generators as game objects

2008-12-01 Thread Michael
On Monday 01 December 2008 17:05:58 Fiona Burrows wrote: Thank you! I knew there would be a term for it. :) Those libraries seem interesting - especially Dramatis. But neither of them seem as well suited for games as mine as I have lots of game-specific things like collision detection going

Re: [pygame] Getting input from command line

2008-12-01 Thread Michael
On Monday 01 December 2008 12:57:15 Fiona Burrows wrote: I know this isn't directly related to PyGame but I figured there were worse places to ask a question like this This page is your friend: http://openbookproject.net/py4fun/lode/lode.html#auto2 In fact the entire site is quite fun...

Re: [pygame] Crazy Machine type game?

2008-12-01 Thread Greg Ewing
Joe Strout wrote: On Dec 1, 2008, at 7:33 AM, Kris Schnee wrote: On Sun, 30 Nov 2008 22:57:19 -0200, claudio canepa [EMAIL PROTECTED] wrote: There is an old clone like in pygame site, look at http://www.pygame.org/projects/21/139/ You might also want to look at Assembly Line: