RE: [pygame] Yeah looks like i'm doing quite well so far, completed my goal for today.

2007-09-10 Thread paris
flip?http://www.pygame.org/docs/ref/display.html#pygame.display.flipbest,p



 Original Message 
Subject: [pygame] Yeah looks like i'm doing quite well so far,
completed my goal for today.
From: "Lamonte Harris" <[EMAIL PROTECTED]>
Date: Mon, September 10, 2007 9:05 pm
To: pygame-users@seul.org


Yeah took some time of thinking and fixing and rethinking.  Pygame is like a strategy puzzle.  I've just mapping script, where in the text file are numbers.  I read the numbers from 1,2 and switch then into rects that I created.  Them I displayed them on the screen.  Its quite nice to make something so cool without asking for help :P.  Check it out and tell me what you think[attachements] My only flaw is, the rects render upside down.  What could I do to fix that? 





RE: [pygame] my tutorials

2007-05-28 Thread paris
Hi Droid,

Looks really good so far! hope you will be able to continue on the other
topics too :-)

Best,
paris



>  Original Message 
> Subject: [pygame] my tutorials
> From: DR0ID <[EMAIL PROTECTED]>
> Date: Sat, May 26, 2007 2:47 am
> To: pygame-users@seul.org
> 
> Hi again
> 
> payback time 2:
> 
> In the past months I have started to write some tutorials for some 
> friends. I think other people might be interested too and they do not 
> help, if they are not published.
> Here they are:
> 
> http://www.mypage.bluewin.ch/DR0ID/pygame_tutorials.html
> 
> As you can see I want write more tutorials. I hope in time I will get 
> there. At the moment its more an introduction on how to use blit. 
> Further tutorials will cover more advanced topics as you can see.
> 
> To stay informed, do not forget to subscribe to the RSS feed.
> 
> I would appreciate some feedback.
> 
> Thanks.
> 
> ~DR0ID



RE: [pygame] [PYGAME] Noob Help.

2007-04-12 Thread paris
Hi,

I can't run the code at the moment - on a machine w/o pygame but... 
launch a cmd window and run the program from there.
e.g. start->run->cmd
that way the window will stay open and you can see the error.

Best,
p



>  Original Message 
> Subject: Re: [pygame] [PYGAME] Noob Help.
> From: [EMAIL PROTECTED]
> Date: Thu, April 12, 2007 11:05 pm
> To: [EMAIL PROTECTED]
> 
> >>
> >> But it doesn't work.
> >>
> >
> > Never say these words as your only explanation when you post code.
> >
> > Say "But when I try running it, I get an error message that says
> > blahblahblah and I don't understand what that means"
> >
> > or "But when I try to run it (detailed description) happens"
> >
> > or "but when I try to run it absolutely nothing happens. How do i et
> > more information about what went wrong?"
> >
> Alright I tried fixing the error so I typed this in notepad:
> 
> import sys, pygame
> 
> pygame.init()
> size = width, height = 320, 240
> speed = [2, 2]
> black = 0, 0, 0
> 
> screen = pygame.display.set_mode(size)
> 
> while 1:
> for event in pygame.event.get():
> if event.type == pygame.QUIT: sys.exit()
> 
> screen.fill(black)
> pygame.display.flip()
> 
> Alright so when I run the "game.py" the console says error syntax then I
> can't read the rest because the console window closes automatically.  I
> have the slightest idea on whats wrong.



RE: [pygame] pygame.transform noob question

2007-03-13 Thread paris
Thanks for the quick reply!

It's a bunch of circles and yeah, this does it just fine now!

Best,
p



>  Original Message 
> Subject: Re: [pygame] pygame.transform noob question
> From: DR0ID <[EMAIL PROTECTED]>
> Date: Tue, March 13, 2007 12:25 pm
> To: pygame-users@seul.org
> 
> hi
> 
> docs say: pygame.transform.rotozoom(Surface, angle, zoom) -> Surface
> 
> so us it like that:
> 
> ---code---
> ...
> new_surface = rotozoom( the_surface_you_want_rotated, angle, zoom)
> screen.blit(new_surface, (posx, posy))
> ...
> ---code---
> 
> the_surface_you_want_rotated is like the original surface which does not 
> change.
> angle is the angle of rotation
> zoom is the zoom factor
> new_surface is what rotozoom returns: the rotated and zoomed image :-)
> 
> I hope, that helps.  Perhaps another image than a circle would be 
> better, because there you would see the rotation ;-) .
> 
> ~DR0ID
> 
> 
> [EMAIL PROTECTED] schrieb:
> > Hi Pygame List,
> >
> > I'm new and excited about possibilities with Pygame.
> > So far, I'm going through the docs trying things out but I'm stuck on
> > pygame.transfom
> >
> > In one of my first experiments, I'm drawing (and redrawing) randomly
> > placed circles on the screen (code below). 
> > I'd like to apply a rotozoom but can't figure out where it goes or maybe
> > the result of pygame.draw.cirle needs to go to some other surface (not
> > the main screen) and that is what needs to be rotozoomed?
> >
> > Any advice would be appreciated!
> >
> > Thanks and best,
> > Paris
> >
> > -
> >
> > import pygame
> > import random
> > from pygame.locals import *
> >
> > pygame.init()
> > screen = pygame.display.set_mode((320,240))
> > screen.fill((0,0,0))
> >
> > points = []
> > for i in range(100):
> > xi = random.random() * 1000
> > yi = random.random() * 1000
> > pointi = (xi,yi)
> > points.append(pointi)
> >
> > for i in range(50):
> > 
> > for p in points:
> > randR = random.randint(0,255)
> > randG = random.randint(0,255)
> > randB = random.randint(0,255)
> > radius = random.randint(1,30)
> > pygame.draw.circle(screen,(randR,randG,randB),p,radius,0)
> > 
> > ###doesn't work
> > #pygame.transform.rotozoom(screen, 45,1.5)
> > pygame.display.flip()
> > 
> >
> > pygame.quit()
> >
> >
> >
> >
> >



[pygame] pygame.transform noob question

2007-03-13 Thread paris
Hi Pygame List,

I'm new and excited about possibilities with Pygame.
So far, I'm going through the docs trying things out but I'm stuck on
pygame.transfom

In one of my first experiments, I'm drawing (and redrawing) randomly
placed circles on the screen (code below). 
I'd like to apply a rotozoom but can't figure out where it goes or maybe
the result of pygame.draw.cirle needs to go to some other surface (not
the main screen) and that is what needs to be rotozoomed?

Any advice would be appreciated!

Thanks and best,
Paris

-

import pygame
import random
from pygame.locals import *

pygame.init()
screen = pygame.display.set_mode((320,240))
screen.fill((0,0,0))

points = []
for i in range(100):
xi = random.random() * 1000
yi = random.random() * 1000
pointi = (xi,yi)
points.append(pointi)

for i in range(50):

for p in points:
randR = random.randint(0,255)
randG = random.randint(0,255)
randB = random.randint(0,255)
radius = random.randint(1,30)
pygame.draw.circle(screen,(randR,randG,randB),p,radius,0)

###doesn't work
#pygame.transform.rotozoom(screen, 45,1.5)
pygame.display.flip()


pygame.quit()