Re: [pygame] board game

2007-11-16 Thread kschnee
On Fri, 16 Nov 2007 08:49:21 +1030, "David Gowers" <[EMAIL PROTECTED]> wrote: > for x in range (0, numsquares_x): > for y in range (0, numsquares_y): > thissq = pygame.rect (x * square_width, y * square_height,(x+1) * > square_width, (y+1) * square_height) > squares.append (thissq) I th

Re: [pygame] board game

2007-11-16 Thread marta sanz
So the answer is that rects don't have to be asociated to an image,isn't? What I am doing is that you've said, I have two lists of squares in which each square is actually a rect. Thanks alot. El 15/11/2007, a las 23:19, David Gowers escribió: On Nov 15, 2007 11:00 PM, marta sanz <[EMAIL PR

Re: [pygame] board game

2007-11-15 Thread David Gowers
On Nov 15, 2007 11:00 PM, marta sanz <[EMAIL PROTECTED]> wrote: > Hi there, > > I've left the board game for a time, and now that I have time again, > I have returned to it.. > > Can I do new=pygame.rect(10,20,30,40) ? I mean, I do load an entire > image of my game board, that will be the surface,

Re: [pygame] board game

2007-11-15 Thread marta sanz
Hi there, I've left the board game for a time, and now that I have time again, I have returned to it.. Can I do new=pygame.rect(10,20,30,40) ? I mean, I do load an entire image of my game board, that will be the surface, and then, as Samuel said, I've tried to create invisible squares ov

Re: [pygame] board game

2007-09-21 Thread Samuel Mankins
Gameplay wise, you might want to give the other play a turn whether or not the first one got the answer right or wrong. Otherwise Player One has a bug advantage if they know the answers to a few of the questions (Or just know a lot). Have the question/answer come up in a popup. Trust me, it's a

Re: [pygame] board game

2007-09-19 Thread marta
A further description about this game: you have a board, with 3 types of tile/squares, the normal ones that have between 2 and 6 diferent colours -dependig on the configuration you want to have- each colour belongs to a subject (maths, science, history, animals,..), then you have special tiles, tha

Re: [pygame] board game

2007-09-19 Thread Lionel Barret De Nazaris
marta sanz wrote: Hi! I'm a newbie in game programming. I am programming -well, trying to do it.. :D- a board game like Trivial, a board game of questions and answers. In this game, you have a board with many squares, and each one have one question to be answered by the player, there are 6

Re: [pygame] board game

2007-09-19 Thread Marta Sanz
The board has 3 kind of squares: a) Normal ones, that depending on its colour, makes you a question of the area asigned to that colour (i.e. blue:history, red:maths,..) b) special ones, that depending on its colour makes you a question as the normal ones,but if you are correct, you achieve a point

Re: [pygame] board game

2007-09-18 Thread Greg Ewing
marta sanz wrote: don't know if it's better to draw the entire board with a paint program (inkscape, gimp..) and then load it with pygame, or draw each individual squares and the load them one by one making the board, or what. If many of the squares are identical, or have only small differenc

Re: [pygame] board game

2007-09-18 Thread marta
So, Do you mean to draw an entire background -the board in this case- and then define areas? I mean, defining an area of action over a square, so when you click it, the question appears? Sorry for my English, it's being a long time since I used it for the last time :).. El mar, 18-09-2007 a las 11

Re: [pygame] board game

2007-09-18 Thread Samuel Mankins
Ian Mallett wrote: It doesn't really matter which way you do it, but I would recommend making the entire thing all at once, as I see no advantage to having individual squares, and it would make programming less complicated. Ian I would make a square of the appropriate size of one color,

Re: [pygame] board game

2007-09-18 Thread Ian Mallett
It doesn't really matter which way you do it, but I would recommend making the entire thing all at once, as I see no advantage to having individual squares, and it would make programming less complicated. Ian

[pygame] board game

2007-09-18 Thread marta sanz
Hi! I'm a newbie in game programming. I am programming -well, trying to do it.. :D- a board game like Trivial, a board game of questions and answers. In this game, you have a board with many squares, and each one have one question to be answered by the player, there are 6 types of squar