Pd.display.flush() in pd.gameWillTerminate does not update simulator screen

,

@stuffbyrae was adding a fancy exit animation and was able to test it on the simulator for mac. The dev for Swap Machina said their exit animation didn’t work in the simulator, and it also doesn’t seem to work on mine (Linux). The function is run and I can do whatever I want, just the screen never refreshes when it’s flushed.

Example code:

function pd.gameWillTerminate()
    local timer = gfx.animator.new(350, 0, 1)
    while not timer:ended() do
        gfx.getWorkingImage():vcrPauseFilterImage():draw(0, 0)
        pd.display.flush()
    end
end

Here’s kinda what the vcr exit looks like, credit to rae for getting a gif

image