Added scale_by to prepare for resolution input later
This commit is contained in:
@ -68,9 +68,8 @@ while running:
|
||||
|
||||
#screen code
|
||||
screen.fill("black")
|
||||
|
||||
MainSurface.blit(gun[spinInc][0],(0,0))#draw the gun
|
||||
screen.blit(MainSurface,(0,yOffset))
|
||||
screen.blit(pygame.transform.scale_by(MainSurface,1),(0,yOffset))#renders the main surface to the screen, while also scaling it for the required display resolution
|
||||
|
||||
pygame.display.flip()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user