Re: [pygame] very easy snippets to start: where from i can get?

2008-07-28 Thread Paulo Silva
thanks! On Mon, Jul 28, 2008 at 4:16 AM, Knapp <[EMAIL PROTECTED]> wrote: > On Mon, Jul 28, 2008 at 1:08 AM, Paulo Silva <[EMAIL PROTECTED]> wrote: > >> about oop, i'm really curious about learning it, but i have to see >> examples (smaller than 1kb, please...) explaining clearly where and >> how

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-27 Thread Knapp
On Mon, Jul 28, 2008 at 1:08 AM, Paulo Silva <[EMAIL PROTECTED]> wrote: > about oop, i'm really curious about learning it, but i have to see > examples (smaller than 1kb, please...) explaining clearly where and > how the code gets so improved instead as coding them as procedural > (all of my tryin

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-27 Thread Paulo Silva
those idea-alter examples are really useful for me in the stage i am http://www.geocities.com/ek.bhaaluu/python/ is also very in the way i used to code thanks again! :-) - about oop, i'm really curious about learning it, but i have to see examples (smaller than 1kb, please...) explaining clearly

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-27 Thread bhaaluu
Maybe these examples will help you get an idea of simple Python programming? They are based on ancient line-numbered BASIC code which is in the Text Adventure Game book, linked to on the web page: http://www.geocities.com/ek.bhaaluu/python/index.html There is no PyGame used in those games, but th

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-27 Thread Ian Mallett
On Fri, Jul 25, 2008 at 7:04 AM, Brad Montgomery <[EMAIL PROTECTED]>wrote: > > Also, on the pygame.org home page, there is a link to > > a pygame book for sale. > > I've read McGugan's Beginning PyGame book, and it does a fairly nice > job introducing Python in general (I think the first 2 chapter

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-26 Thread Jake b
You can create subsurfaces, one for each sprite. [ http://www.pygame.org/docs/ref/surface.html#Surface.subsurface ] Have you seen these tutorials? They will get you started learning what classes are and how they work http://docs.python.org/tut/ http://docs.python.org/tut/node11.html -- Jake

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-25 Thread Paulo Silva
well, more ugly code: this is about arrays and how can i get several sprites from just one picture: randomize xed=320:yed=240:sprn=32:maxspd=4:spram=16 dim xdr[sprn],ydr[sprn],xpo[sprn],ypo[sprn],sprid[sprn] for i=0 to sprn:sprid[i]=3:next wdwd=1 setdisplay(xed,yed,32,wdwd) for i=0 to sprn:xdr[i]=

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-25 Thread Paulo Silva
thanks! is exactly like that were what i'm looking for! :-) -- On Fri, Jul 25, 2008 at 4:51 PM, Brad Montgomery <[EMAIL PROTECTED]> wrote: > A! My eyes :) > > On Fri, Jul 25, 2008 at 10:47 AM, Peter Shinners <[EMAIL PROTECTED]> wrote: >> Paulo Silva wrote: >>>

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-25 Thread Brad Montgomery
A! My eyes :) On Fri, Jul 25, 2008 at 10:47 AM, Peter Shinners <[EMAIL PROTECTED]> wrote: > Paulo Silva wrote: >> >> for example, this code, how do it would look like with Python-Pygame? >> >> http://pastebin.com/f5642fd17 >> (runs on sdlBasic) >> > > I have created the ugliest pygame c

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-25 Thread Peter Shinners
Paulo Silva wrote: for example, this code, how do it would look like with Python-Pygame? http://pastebin.com/f5642fd17 (runs on sdlBasic) I have created the ugliest pygame code in the world to match you example. I hope it provides an interest for you to actually learn a bit of Python's el

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-25 Thread Paulo Silva
Thanks Jason and Brad! :-) The reference of the book is interesting (indeed made a del.icio.us bookmark of it! :-) ) My problem were not exactly about the Python itself, since i got really encouraged on started it after seeing some snippets looking like what i were done on wxBasic and sdlBasic (m

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-25 Thread Brad Montgomery
> Also, on the pygame.org home page, there is a link to > a pygame book for sale. I've read McGugan's Beginning PyGame book, and it does a fairly nice job introducing Python in general (I think the first 2 chapters do this). If you're wanting to learn Pygame it's a Great book. If you're just lea

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-25 Thread Jason M. Marshall
Paulo, I can sympathize. I started programing in QBasic. I took one programming class in college which used C. Afterwards, for my job, using Python was required. Python confused and frustrated me for months! I bought O'Reilly's _Learning Python_ first, and it did not help me. I read much of Guido

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-25 Thread Paulo Silva
> 20 PRINT "I think you should read some of the python oo tutorials?" well, up to now i found nothing i could really understand thanks about the code you sent - it shows a flashing red and black background in a 320x200 window - flashing i think because missing a kind of 'waitvbl' (like from s

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-25 Thread René Dudfield
hi, 10 READ Tutorial$ 20 PRINT "I think you should read some of the python oo tutorials?" 30 GOTO 10 Here's a little mostly non oo example(untested). import pygame from pygame.locals import * pygame.init() screen = pygame.display.set_mode((320,200)) r,g,b = (0,0,0) going = True while going:

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-25 Thread Paulo Silva
thanks, but it looks confusing for me, too messy for me... (sorry saying this, but i got really lost with this url...) - it's a bit object oriented (and i know nothing about it), and the code is splitted between comments i don't know what to have in a complete code - On Fri, Jul 25, 2008 at

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-25 Thread René Dudfield
hey, this tutorial kind of covers the basics of python with pygame... http://rene.f0o.com/mywiki/PythonGameProgramming cu, On Fri, Jul 25, 2008 at 9:12 PM, Paulo Silva <[EMAIL PROTECTED]> wrote: > thanks about the urls - btw, i'm stuck on starting, anyway... - the > programs are the links to t

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-25 Thread Paulo Silva
for example, this code, how do it would look like with Python-Pygame? http://pastebin.com/f5642fd17 (runs on sdlBasic) - On Fri, Jul 25, 2008 at 12:12 PM, Paulo Silva <[EMAIL PROTECTED]> wrote: > thanks about the urls - btw, i'm stuck on starting, anyway... - the > programs are t

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-25 Thread Paulo Silva
thanks about the urls - btw, i'm stuck on starting, anyway... - the programs are the links to the zipped files at the top of the webpage. Maybe a good idea is, for example, i posting some or another snippet (very small stuff in sdlBasic) at pastebin.org and asking you how does it can be coded on p

Re: [pygame] very easy snippets to start: where from i can get?

2008-07-25 Thread Jake b
If you have a specific problem you're stuck on, or a program you're trying to re-create in pythin, it'd be easier to give you more help. [ I looked at your site, but didn't see a program. It's hard to read for me on ff3 win32. ] A few links to get you started http://kai.vm.bytemark.co.uk/~piman/

[pygame] very easy snippets to start: where from i can get?

2008-07-25 Thread Paulo Silva
hi! I'm very curious about learning pygame, but having lots of difficulties to start because i can't find simple, small and useful snippets where i can learn from. The problem is mostly of all pygame code i found were too much strong-typed for me For an idea, you can see some of my snippets at: h