#controls Screen
#displays this screen after the controls button is clicked from the menu 

from pygame import*

#USE THE ESC KEY AS THE BACK BUTTON TO RETURN TO THE MAIN MENU
#THAT CODE IS FOUND IN CHOOSE HOUSE AND LOADING 

screen = display.set_mode((850,600)) #Game window resolution
display.set_caption("Harry Potter: New Horizons")
mouse.set_cursor(*cursors.tri_left)

controlsScreen = image.load ("controls.jpg")

controlsComplete = False #a flag that controls the scrolling of the page

running = True
while running:

    mb = mouse.get_pressed()
    mx,my = mouse.get_pos()

    for e in event.get():       
        if e.type == QUIT:     
            running = False
            
        #if menu = "controls"
        if controlsComplete == False:
            for i in range (-600,0,10):
                screen.blit(controlsScreen,(0,i+20)) 
                time.wait(2)
                display.flip()
            controlsComplete = True
        #Goes back to the menu when the escape is pressed.
            if e.key == 27: 
    display.flip()
quit()

43aa7b437d43c57695f1c8757c85e3c75e7aedd7
#controls Screen
#displays this screen after the controls button is clicked from the menu 

from pygame import*

#USE THE ESC KEY AS THE BACK BUTTON TO RETURN TO THE MAIN MENU
#THAT CODE IS FOUND IN CHOOSE HOUSE AND LOADING 

screen = display.set_mode((850,600)) #Game window resolution
display.set_caption("Harry Potter: New Horizons")
mouse.set_cursor(*cursors.tri_left)

controlsScreen = image.load ("controls.jpg")

controlsComplete = False #a flag that controls the scrolling of the page

running = True
while running:

    mb = mouse.get_pressed()
    mx,my = mouse.get_pos()

    for e in event.get():       
        if e.type == QUIT:     
            running = False
            
        #if menu = "controls"
        if controlsComplete == False:
            for i in range (-600,0,10):
                screen.blit(controlsScreen,(0,i+20)) 
                time.wait(2)
                display.flip()
            controlsComplete = True
        #Goes back to the menu when the escape is pressed.
            if e.key == 27: 
    display.flip()
quit()
