Re: Question re: objects and square grids

2013-05-15 Thread Larry Hudson
On 05/15/2013 05:53 PM, Andrew Bradley wrote: I apologize if these questions are too rudimentary--I am trying to wrap my head around how this language works in a more general sense so I can start applying it to things. -Andrew Check out the book "Making Games with Python & Pygame" at http:/

Re: Question re: objects and square grids

2013-05-15 Thread Dave Angel
On 05/15/2013 08:53 PM, Andrew Bradley wrote: So now, how can I utilize this new grid list? Thank you for the help so far, I feel like the entire grid is now being worked out. -Andrew That's a Pygame question, and I told you at the beginning, I can't really help with that. I'd like t

Re: Question re: objects and square grids

2013-05-15 Thread Andrew Bradley
> > > SQUARESIZE = 43 >>> >>> grid = [] >>> for row in range(10): >>> row_squares = [] >>> for column in range(20): >>> rect = Rect(12 + column * SQUARESIZE, 10 + row * SQUARESIZE, >>> SQUARESIZE, SQUARESIZE) >>> row_squares.append(rect) >>> grid.append(row_squares

Re: Question re: objects and square grids

2013-05-15 Thread Dave Angel
Please put new comments AFTER the part you're quoting. In other words, don't top-post. Also please trim off the stuff that's no longer relevant, so people don't have to read through it all wondering where your implied comments are. On 05/15/2013 06:48 PM, Andrew Bradley wrote: ok, now I hav

Re: Question re: objects and square grids

2013-05-15 Thread Andrew Bradley
ok, now I have tested this more thoroughly, and it seems i can only do the grid[x][y] function up to grid[9][9], when i really should be able to be doing up to grid[10][20]. What exactly is the function of this row_squares list? On Wed, May 15, 2013 at 4:35 PM, Andrew Bradley wrote: > Now I wan

Re: Question re: objects and square grids

2013-05-15 Thread Andrew Bradley
Now I want to show you what I have written: row = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10) column = (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20) SQUARESIZE = 43 grid = [] for row in range(10): row_squares = [] for column in range(20): rect = Rect(12 + colum

Re: Question re: objects and square grids

2013-05-15 Thread Dave Angel
On 05/15/2013 02:14 PM, Andrew Bradley wrote: Please reply on the list, not privately, unless it's something like a simple thank-you. Typically, you'd do a reply-all, then delete the people other than the list itself. Or if you're using Thunderbird, you could just reply-list. > Thank you v

Re: Question re: objects and square grids

2013-05-15 Thread Ian Kelly
On Wed, May 15, 2013 at 10:56 AM, Andrew Bradley wrote: > Hello everyone. > > I am having a good time programming with Python 3.3 and Pygame. Pygame seems > like the perfect platform for the kind of simple games that I want to make. > > What I have currently programmed is basically a drawn rectang

Re: Question re: objects and square grids

2013-05-15 Thread Dave Angel
On 05/15/2013 12:56 PM, Andrew Bradley wrote: Hello everyone. I am having a good time programming with Python 3.3 and Pygame. Pygame seems like the perfect platform for the kind of simple games that I want to make. Pygame indeed looks pretty good to me as well. But I haven't done anything w