Pygame mouse cursor load/unload

Ian Kelly ian.g.kelly at gmail.com
Sun Mar 10 21:26:48 EDT 2013


On Sun, Mar 10, 2013 at 4:25 PM, Alex Gardner <agardner210 at gmail.com> wrote:
> Now the cursor isn't moving at all!
>
> while True:
>         for event in pygame.event.get():
>                 if event.type == QUIT:
>                         sys.exit()
>
>         screen.blit(bpaddle, paddle_rect)
>         # Draw the net
>         pygame.draw.line(screen, game.lineColor, game.net1, game.net2, game.netWidth)
>
>         paddle_rect.clamp_ip(bounds_rect)
>         screen.blit(beeper, paddle_rect)
>
>         clock.tick(50)
>
>         pygame.display.update()

You deleted the line where you update the paddle_rect from the current
mouse position.



More information about the Python-list mailing list