Added background image
This commit is contained in:
parent
165588e1c3
commit
56803f3dfb
Binary file not shown.
@ -48,6 +48,7 @@ def draw_debug_text():
|
|||||||
boundary=pygame.sprite.Group()
|
boundary=pygame.sprite.Group()
|
||||||
boundary.add=Hitbox(int(WINDOW_WIDTH/2), 0, WINDOW_WIDTH, 10)
|
boundary.add=Hitbox(int(WINDOW_WIDTH/2), 0, WINDOW_WIDTH, 10)
|
||||||
|
|
||||||
|
bg, bg_rect=load_img("bg.png")
|
||||||
# game loop
|
# game loop
|
||||||
|
|
||||||
while events.running:
|
while events.running:
|
||||||
@ -59,6 +60,7 @@ while events.running:
|
|||||||
all_sprites.update()
|
all_sprites.update()
|
||||||
screen.fill(BLACK)
|
screen.fill(BLACK)
|
||||||
# draw
|
# draw
|
||||||
|
screen.blit(bg,(0,0))
|
||||||
draw_debug_text()
|
draw_debug_text()
|
||||||
all_sprites.draw(screen)
|
all_sprites.draw(screen)
|
||||||
pygame.display.flip()
|
pygame.display.flip()
|
||||||
|
Loading…
Reference in New Issue
Block a user