Kado Valentine dari New Bie



#CopyLeft : andhika hirlanda putra @ 54v0y @ computer_freak
#Thanks to :
#   Allah SWT, Orang Tua Saya
#   dan semua orang yang gw sayangin
#   mumpung temanya kado valentine jadi gw ucapin kesemuanya y hehehe
background = 'mawar1.gif'
mouse_image = 'face-kiss.png'
from pygame.locals import *
import pygame
import pygame.movie
import pygame.mixer
pygame.mixer.init()
lagu = pygame.mixer.music.load("Mariah_Carrey_My EndLess_Love.mp3")
pygame.mixer.music.set_volume(0.5)
pygame.init()
screen = pygame.display.set_mode((400, 300),0, 32)
title = pygame.display.set_caption("Kado Valentine Dari New bie")
gambar = pygame.image.load(background).convert()
kursor = pygame.image.load(mouse_image).convert_alpha()
while True:
for event in pygame.event.get():
if event.type == pygame.KEYDOWN and event.key == pygame.K_LEFT:
pygame.mixer.music.play()
if event.type == pygame.KEYDOWN and event.key == pygame.K_RIGHT:
pygame.mixer.music.stop()
if event.type == pygame.KEYDOWN and event.key == pygame.K_UP:
pygame.mixer.music.pause()
if event.type == pygame.KEYDOWN and event.key == pygame.K_DOWN:
pygame.mixer.music.music.unpause()
for event in pygame.event.get():
if event.type == QUIT:
exit()
screen.blit(gambar, (0,0))
x, y = pygame.mouse.get_pos()
x-= kursor.get_width() / 2
y-= kursor.get_height() / 2
screen.blit(kursor, (x, y))
pygame.display.update()

nb : lagu, background image, n gambar pada mouse bila di gerakkan itu bisa di sesuaikan dengan kesukaan anda
Kado Valentine dari New Bie Kado Valentine dari New Bie Reviewed by Unknown on 7:10 PM Rating: 5
Editor By 54v0y. Powered by Blogger.