diff --git a/__pycache__/events.cpython-37.pyc b/__pycache__/events.cpython-37.pyc index 786baf5..d6af257 100644 Binary files a/__pycache__/events.cpython-37.pyc and b/__pycache__/events.cpython-37.pyc differ diff --git a/mygame.py b/mygame.py index b248a56..2a452f7 100644 --- a/mygame.py +++ b/mygame.py @@ -48,6 +48,7 @@ def draw_debug_text(): boundary=pygame.sprite.Group() boundary.add=Hitbox(int(WINDOW_WIDTH/2), 0, WINDOW_WIDTH, 10) +bg, bg_rect=load_img("bg.png") # game loop while events.running: @@ -59,6 +60,7 @@ while events.running: all_sprites.update() screen.fill(BLACK) # draw + screen.blit(bg,(0,0)) draw_debug_text() all_sprites.draw(screen) pygame.display.flip()