From 5f3877aa453ac48a9eedce6bc7478e646745df6a Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 14 May 2023 10:13:03 +0800 Subject: [PATCH] save project --- OGC.gif | Bin 0 -> 833035 bytes R-C.jpg | Bin 0 -> 136505 bytes my_game.py | 11 ++++++++--- v2-40e8be963f91e761181432aa6065d3a3_b.webp | Bin 0 -> 501892 bytes 4 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 OGC.gif create mode 100644 R-C.jpg create mode 100644 v2-40e8be963f91e761181432aa6065d3a3_b.webp diff --git a/OGC.gif b/OGC.gif new file mode 100644 index 0000000..d8be3a9 Binary files /dev/null and b/OGC.gif differ diff --git a/R-C.jpg b/R-C.jpg new file mode 100644 index 0000000..6cf554c Binary files /dev/null and b/R-C.jpg differ diff --git a/my_game.py b/my_game.py index 53f76a3..589e8dd 100644 --- a/my_game.py +++ b/my_game.py @@ -8,10 +8,15 @@ FPS = pygame.time.Clock() # pygame时钟,控制游戏速度(帧数) # 载入图片 background = pygame.image.load('bg.png') # 背景 road = pygame.image.load('road.png') # 路 -stone = pygame.image.load('stone.png') # 石头 +stone = pygame.image.load('stone.png') # 石头 cacti = pygame.image.load('cacti.png') # 仙人掌 apple = pygame.image.load('bush.png') # 灌木丛 -hero = pygame.image.load('hero1.png') +hero = [pygame.image.load('hero1.png'), + pygame.image.load('hero2.png'), + pygame.image.load('hero3.png'), + pygame.image.load('hero4.png'), + pygame.image.load('hero5.png'), + pygame.image.load('R-C.jpg'), index = 0 while True: @@ -23,7 +28,7 @@ while True: # 将背景图画上去 screen.blit(background, (0, 0)) screen.blit(road, (0, 500)) - screen.blit(hero, (150, 400)) + screen.blit(wukong, (150, 400)) # 刷新画面 pygame.display.update() FPS.tick(60) \ No newline at end of file diff --git a/v2-40e8be963f91e761181432aa6065d3a3_b.webp b/v2-40e8be963f91e761181432aa6065d3a3_b.webp new file mode 100644 index 0000000..584f00a Binary files /dev/null and b/v2-40e8be963f91e761181432aa6065d3a3_b.webp differ -- libgit2 0.25.0