0

I do know how to load them but dont know how to move the background so it make a illusion that the bird is moving too like in FlappyBird.It would be nice if anybody tell me how could i do it in Pygame!

import pygame
#Starting Point----
pygame.init()
#Display----
display = pygame.display.set_mode((800,450))
#Title----
pygame.display.set_caption("Flappy Bird")
#Icon----
Icon = pygame.image.load('Icon.jpeg')
pygame.display.set_icon('Icon')
#Background----
pygame.image.load('Background.png')
#Running----
running = True
while running:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False

    pygame.display.update()

0 Answers0