Re: [pygame] adventure game toolkit released

2010-04-12 Thread 0wl
Thanks, I'll put in a calibrator for those really fast game machines.

Love,tullarisc.

2010/4/11 Dan Ross d...@rosspixelworks.com

 Hey tullarisc-

 When I load the example game it uses 98% of the cpu all the time. That
 seems like a bit much.

 Just an FYI.

 Dan


 On Apr 10, 2010, at 11:16 AM, 0wl wrote:

 Hey,

 I wrote an adventure game toolkit for pygame.
 You can use items from the inventory, move around and talk.

 http://armadilloadventure.xtreemhost.com .

 Take a look at the code for making your own adventure.


 Love, tullarisc.





Re: [pygame] Creating sprites on the fly?

2010-04-12 Thread Thadeus Burgess
Sure

Make a default sprite.

Hold a list of sprites in a dictionary-like class...

def __getattr__(key):
   if self.sprites.has_key(key):
 return self.sprites[key]
   else:
 return self.default_sprite

--
Thadeus





On Mon, Apr 12, 2010 at 7:08 PM, Julian Marchant onp...@gmail.com wrote:
 Hi, I'm somewhat new to Python and very new to Pygame, so please bear with
 me if I sound like an idiot.

 Is it possible to create sprites on-the-fly?

 In my load image function, I would like to add an option to create a simple
 back-up sprite (a black rectangle will suffice) on-the-fly if the requested
 sprite is unavailable, to allow the game to still run.

 --音本
 Website: http://onpon.co.nr/



Re: [pygame] Creating sprites on the fly?

2010-04-12 Thread NBarnes
Julian Marchant onp...@gmail.com wrote:

 Hi, I'm somewhat new to Python and very new to Pygame, so please bear with
 me if I sound like an idiot.

 Is it possible to create sprites on-the-fly?

 In my load image function, I would like to add an option to create a simple
 back-up sprite (a black rectangle will suffice) on-the-fly if the requested
 sprite is unavailable, to allow the game to still run.

Couldn't you just load a black rectangle at startup and use that in
place of whatever sprite failed to load?


Re: [pygame] Creating sprites on the fly?

2010-04-12 Thread Lee Buckingham
sounds like the point would be to have something to display in lieu of files
being in the wrong place or non-existent.

You'd have to do something like:

create a pygame.Surface
do Surface.fill()... etc... or use line drawing or something to create the
sprite
remember it for later, then if you do a try-catch block around your image
load, a fail could then assign the default sprite instead.

On Mon, Apr 12, 2010 at 5:52 PM, NBarnes nbar...@gmail.com wrote:

 Julian Marchant onp...@gmail.com wrote:

  Hi, I'm somewhat new to Python and very new to Pygame, so please bear
 with
  me if I sound like an idiot.
 
  Is it possible to create sprites on-the-fly?
 
  In my load image function, I would like to add an option to create a
 simple
  back-up sprite (a black rectangle will suffice) on-the-fly if the
 requested
  sprite is unavailable, to allow the game to still run.

 Couldn't you just load a black rectangle at startup and use that in
 place of whatever sprite failed to load?



Re: [pygame] Creating sprites on the fly?

2010-04-12 Thread Julian Marchant
OK, thanks!

On Mon, Apr 12, 2010 at 8:58 PM, Lee Buckingham lee.bucking...@gmail.comwrote:

 sounds like the point would be to have something to display in lieu of
 files being in the wrong place or non-existent.

 You'd have to do something like:

 create a pygame.Surface
 do Surface.fill()... etc... or use line drawing or something to create the
 sprite
 remember it for later, then if you do a try-catch block around your image
 load, a fail could then assign the default sprite instead.


 On Mon, Apr 12, 2010 at 5:52 PM, NBarnes nbar...@gmail.com wrote:

 Julian Marchant onp...@gmail.com wrote:

  Hi, I'm somewhat new to Python and very new to Pygame, so please bear
 with
  me if I sound like an idiot.
 
  Is it possible to create sprites on-the-fly?
 
  In my load image function, I would like to add an option to create a
 simple
  back-up sprite (a black rectangle will suffice) on-the-fly if the
 requested
  sprite is unavailable, to allow the game to still run.

 Couldn't you just load a black rectangle at startup and use that in
 place of whatever sprite failed to load?





-- 
Website: http://onpon.co.nr/


[pygame] Multiplayer

2010-04-12 Thread Daniel McNeese
I want to make an open source multiplayer game roughly along the lines of 
M.U.L.E.  I've made games before but never done online multiplayer, so I want 
to ask for a nudge in the right direction.  I'd like to spare players behind 
routers the trouble of dealing with port forwarding (I didn't have to do it 
when hosting Alpha Centauri games, so I know it's possible).  Unless pgreloaded 
is far enough along and tools exist for Python 3 (which I'd prefer), I'll 
probably have to use the older stuff.

What's out there for Python that would be suitable?  Any off-the-shelf 
solutions?