I added some images to my shooter game but i coudnt find how to position them correctly to shoot them from center of spaceships
RED_BULLET_IMG = pygame.image.load(os.path.join("Assets", "02.png"))
RED_BULLET_RECT = RED_BULLET_IMG.get_rect(center = (350, 350))
YELLOW_BULLET_IMG = pygame.image.load(os.path.join("Assets", "10.png"))
YELLOW_BULLET_RECT = YELLOW_BULLET_IMG.get_rect()
I added theese images
for bullet in red_bullets:
WIN.blit(RED_BULLET_IMG, RED_BULLET_RECT)
for bullet in yellow_bullets:
WIN.blit(YELLOW_BULLET_IMG, YELLOW_BULLET_RECT)
And i replace them with bullets its actually working, but it doesnt move on screen