#!/usr/bin/env python

import pygame, sys, random, time
from pygame.locals import *

pygame.init()
DISPLAYSURF = pygame.display.set_mode((960, 720))
pygame.display.set_caption('Hello World!')

WHITE = (0, 0, 255)
DISPLAYSURF.fill(WHITE)

backdrop = pygame.image.load('backdrop.png')

chickens = [pygame.image.load('hmc.png'), pygame.image.load('hmc2.png')]
egg = pygame.image.load('egg.png')
chicken_position = (random.randint(0, 960-157), random.randint(0, 720-195))
chicken_number = 0
IMAGE_TIME = 20

egg_positions = []

meow = pygame.mixer.Sound('meow.wav')

clock = pygame.time.Clock()
while True: # main game loop
    clock.tick(60)
    for event in pygame.event.get():
        if event.type == QUIT:
            pygame.quit()
            sys.exit()
        elif event.type == KEYUP:
            if event.key == K_SPACE:
                egg_positions.append(chicken_position)
                chicken_position = (random.randint(0, 960-157), random.randint(0, 720-195))
                meow.play()

    if IMAGE_TIME > 0:
        IMAGE_TIME -= 1
    else:
        IMAGE_TIME = 20
        chicken_number ^= 1

    DISPLAYSURF.blit(backdrop, (0, 0))

    for p in egg_positions:
        DISPLAYSURF.blit(egg, p)

    DISPLAYSURF.blit(chickens[chicken_number], chicken_position)

    font = pygame.font.Font(None, 100)
    count_text = font.render(str(len(egg_positions)), 1, WHITE)
    DISPLAYSURF.blit(count_text, (19,19))

    pygame.display.update()

@@ -14,16 +14,40 @@
 v python
+%0A# -*- coding: utf-8 -*-
 %0A%0Aimport
@@ -198,20 +198,12 @@
 on('
-Hello World!
+%E5%BF%AB%E4%B9%90%E5%B0%8F%E9%B8%A1
 ')%0A%0A

set title