Free game assets (images and sounds): kenney.nl
clicker checkpoint (July 8): clicker-checkpoint.py
gems clicker images: clicker-images.zip
gems clicker code: clicker-framework.py
sound effects: misc-kenney-sounds.zip
flier code: flier.py
flier graphics: flier_images.zip
fish code: fish.py
fish graphics: fish.zip
arrow icons: arrow_icons_64.zip
Here is code for a basic quitter app (the basis of all pygames):
import pygame
# pygame initialization
pygame.init()
clock = pygame.time.Clock()
window = pygame.display.set_mode((600,600))
window.fill((255,255,255))
# set window title
pygame.display.set_caption("Title")
pygame.display.update()
def redraw():
pygame.display.update()
def run_app():
app_is_running = True
while app_is_running==True:
for event in pygame.event.get():
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_q:
app_is_running = False
elif event.type == pygame.QUIT:
app_is_running = False
redraw()
clock.tick(24)
pygame.quit()
run_app()