Ejemplo n.º 1
0
def drawScreen():
    if movie.playing():
        time.sleep(define.playingDelay)
        return
    if not core.lockSurface(core.screen):
        return
    checkAnimation()
    if share.screen_changed:
        SDL_FillRect(core.screen, None, define.defaultBackGround)
        share.img.draw()
        share.label.draw()
        share.anime.draw()
        share.screen_changed = False
    core.unlockSurface(core.screen)
    SDL_Flip(core.screen)  #should not be called while screen is locked ?
Ejemplo n.º 2
0
def drawScreen():
	if movie.playing():
		time.sleep(define.playingDelay)
		return
	if not core.lockSurface(core.screen):
		return
	checkAnimation()
	if share.screen_changed:
		SDL_FillRect(core.screen, None, define.defaultBackGround)
		share.img.draw()
		share.label.draw()
		share.anime.draw()
		share.screen_changed = False
	core.unlockSurface(core.screen)
	SDL_Flip(core.screen) #should not be called while screen is locked ?
Ejemplo n.º 3
0
def keypress_z():
	core.logdebug(music.bgm)
	for channel in music.channel:
		core.logdebug(channel)
	core.logdebug(movie.mpeg, movie.playing())
	keyup("z")
Ejemplo n.º 4
0
def keypress_z():
    core.logdebug(music.bgm)
    for channel in music.channel:
        core.logdebug(channel)
    core.logdebug(movie.mpeg, movie.playing())
    keyup("z")