I have used Pygame to create a simple program that plays a list of music files
contained in a folder but for some reason when the music is played it has
static noise mixed with the music. I know the music does not contain the
static noise (it is commercial music which plays perfectly fine in a
I've been working at this for some time now and I can't figure out what the
problem is. What i'm trying to do is when the mouse is clicked, it saves the
mouse x,y then when the mouse clicks again at a different location it saves
the new mouse x,y then transforms.scale a image of a box with those
import pygame
from pygame.locals import *
import os, sys
pygame.init()
surface = pygame.display.set_mode((800,600))
mouse1x = 0
mouse1y = 0
mouse2x = 0
mouse2y = 0
point_drawing = 1
can_click = 1
def main():
global mouse1x, mouse1y, mouse2x, mouse2y
global point_drawing
global
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Eric Hunter wrote:
if event.type == pygame.MOUSEBUTTONDOWN:
mouseX1, mouseY1 = pygame.mouse.get_pos ()
print Mouse 1, mouseX1, mouseY1
clear = pygame.event.clear()
while not
On 7/28/07, Ian Mallett [EMAIL PROTECTED] wrote:
I also assumed that yellow_block is a single yellow block of color. I
think it would be faster to draw a rectangle of a single color than to load
a image of one.
...but in case you are using an image:
import pygame
from pygame.locals import