Commit 26cf63e1 by BellCodeEditor

save project

parent 7f7d4c45
Showing with 37 additions and 0 deletions
import pygame
import pygame
from pygame import locals
pygame.init()
screen = pygame.display.set_mode((660,480))
FPSCLOCK = pygame.time.Clock()
background = pygame.image.load('bg.pog')
right = pygame.image.load('right.pog')
food = pygame.image.load('apple.pog')
body = pygame.image.load('body.pog')
x, y = 240, 120
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
x += 30
screen.blit(background, (0, 0))
screen.blit(right, (x, y))
screen.blit(boby, (210, 120))
screen.blit(boby, (180, 120))
screen.blit(boby, (180, 90))
screen.blit(food, (360, 300))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment