Hi,
This is my attempt at sending a circle(Sprite) vertically from the
top of the screen to the bottom. Can someone
tell me how to change the code so it works? Currently it is just creating a
white screen. Thanks in advance. Kevin
Attempt at moving a circle(Sprite) from top(of screen)
It's extremely minor. Change the center of your circle from (320, 0) to (25,
25). The coordinates are with respect to self.image, not to screen.
-Christopher
On Mon, Sep 27, 2010 at 4:32 PM, kevin hayes kevino...@gmail.com wrote:
Hi,
This is my attempt at sending a circle(Sprite)
Hey...thank you! I'm now on someone else's computer, so I can't edit the
code, but I trust that you are correct. Thanks again. Kevin
On Mon, Sep 27, 2010 at 1:37 PM, Christopher Night
cosmologi...@gmail.comwrote:
It's extremely minor. Change the center of your circle from (320, 0) to
(25,
Hi, I'm looking into modifying the well-known objloader.py on the pygame
wiki:
http://www.pygame.org/wiki/OBJFileLoader
I would modify it to use vertex arrays. I think this could improve
efficiency of loading and rendering the models, based on some tests I did a
few months ago on the pyweek
Hi,
On Mon, Sep 27, 2010 at 4:49 PM, Christopher Night
cosmologi...@gmail.comwrote:
Hi, I'm looking into modifying the well-known objloader.py on the pygame
wiki:
http://www.pygame.org/wiki/OBJFileLoader
I would modify it to use vertex arrays. I think this could improve
efficiency of
On Mon, Sep 27, 2010 at 7:52 PM, Ian Mallett geometr...@gmail.com wrote:
On Mon, Sep 27, 2010 at 4:49 PM, Christopher Night cosmologi...@gmail.com
wrote:
Hi, I'm looking into modifying the well-known objloader.py on the pygame
wiki:
http://www.pygame.org/wiki/OBJFileLoader
I would
Changing the order might help with procedural images. Then you can make the
rect's attributes work for you.
self.rect = pygame.Rect(0,0,50,50)
self.image = pygame.surface.Surface(self.rect.size)
pygame.draw.circle(self.image, pygame.Color(0, 0, 255),
self.rect.center,