On Tue, May 18, 2010 at 6:13 AM, Alex Hall
<mehgcap@xxxxxxxxx> wrote:
Interesting idea. Is there a way of resizing an image? For example, if
the user has a 10x10 grid, each square will be bigger than on a 15x15
grid. Also, I will need to catch keyboard keys (mostly ctrl-m, space,
enter, and space/enter with modifiers) as well as mouse clicks
(differentiating between left and right) for each square. So maybe you
left click a square, or move to it and press ctrl-m. Can Pygame detect
where on the grid that is with some sort of onImageClick type method,
or do I have to track coordinates?
Looks like I have to do a lot more reading on sprites. I heard the
concept and coding is more difficult than basic Pygame. Oh, you
mentioned using rects even with sprites; I am not sure why, then, I
would not just use colored rects in the first place, maybe define a
blue, red, and white rect and then just overwrite the current rect
with the appropriate color by changing the new rect's left/top
arguments? Again, I am quite new to this; I have not even done it in
another language as I have done with other things, so I am coming at
it with no reference. Thanks!