Commit 7e451193 by BellCodeEditor

auto save

parent 1821376f
apple.png

2.05 KB

bg.png

22.5 KB

body.png

1.4 KB

down.png

2.01 KB

from random import randint
a = randint(1,10000)
print(a)
\ No newline at end of file
left.png

2.07 KB

File added
right.png

2.05 KB

import pygame
from pygame import locals
pygame.init()
bg = pygame.image.load('bg.png')
head = pygame.image.load('right.png')
apple = pygame.image.load('apple.png')
body = pygame.image.load('body.png')
screen = pygame.display.set_mode((660,480))
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
screen.blit(bg,(0,0))
screen.blit(head,(270,150))
screen.blit(apple,(360,300))
screen.blit(body,(240,150))
screen.blit(body,(210,150))
screen.blit(body,(180,150))
screen.blit(body,(150,150))
pygame.display.update()
\ No newline at end of file
up.png

2.05 KB

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