def handle_events():
    events = get_events()
    for event in events:
        if event.type == SDL_QUIT:
            FrameWork.quit()
        elif (event.type, event.key) == (SDL_KEYDOWN, SDLK_ESCAPE):
            FrameWork.quit()
        elif (event.type, event.key) == (SDL_KEYDOWN, SDLK_SPACE):
            FrameWork.push_state(Scene_Title)
    pass
def update():
    global logo_time
    global blackopacify, warpopacify, profileopacify

    if 1.5 > logo_time > 0.0:
        blackopacify = max(0, blackopacify - 0.01)
    if logo_time > 1.5:
        warpopacify = max(0, warpopacify - 0.01)
    if logo_time > 3.0:
        blackopacify = min(1, blackopacify + 0.01)
    if logo_time > 4.0:
        logo_time = 0
        FrameWork.push_state(Scene_Title)
    logo_time += 0.01
    pass
Esempio n. 3
0
def update():
    if(LogoCnt == 20):
        #delay(2)
        FrameWork.push_state(Title)
    pass
Esempio n. 4
0
def update():
    if (LogoCnt == 20):
        #delay(2)
        FrameWork.push_state(Title)
    pass