Kod
anoya kopyala
Read more
Kod:
İmport pygame.
İmport random.
From pygame. Locals import *
İmport time.
pygame.init()
# Screen dimensions.
Screen_width = 800.
Screen_height = 600.
# Initialize pygame screen.
Screen = pygame. Display. Set_mode((screen_width, screen_height))
Pygame. Display. Set_caption('simple Game')
# Game variables for the first Game.
Player_width = 50.
Player_height = 50.
Player_pos2 = [screen_width - 100, 270]
Player_pos1 = [screen_width - 100, 430]
Player_speed = 5
Enemy1_width = 50...
Read more
