Commit 96a321ce by BellCodeEditor

save project

parent 28af849f
Showing with 13 additions and 3 deletions
a.jpg

114 KB

import pygame import pygame
import sys
from random import randint
x,y = 30,40
pygame.init() pygame.init()
sceen = pygame.display.set_mode((660,480)) sceen = pygame.display.set_mode((1080,572))
background = pygame.image.load('great.png') background = pygame.image.load('a.jpg')
right = pygame.image.load('right.png') right = pygame.image.load('right.png')
apple = pygame.image.load('apple.png') apple = pygame.image.load('apple.png')
body = pygame.image.load('body.png') body = pygame.image.load('body.png')
left = pygame.image.load('left.png')
up = pygame.image.load('up.png')
down = pygame.image.load('down.png')
x,y = 30,40
position = [(90,70),(60,70),(60,40),(x,y)]
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == pygame.QUIT: if event.type == pygame.QUIT:
sys.exet() sys.exet()
position.append((x,y))
sceen.blit(right,(x,y))
sceen.blit(background,(0,0)) sceen.blit(background,(0,0))
sceen.blit(apple,(120,150)) sceen.blit(apple,(120,150))
sceen.blit(right,(120,70)) sceen.blit(right,(120,70))
......
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