JonLiuFYI / shovelware

co-op minigame mashup
Other
0 stars 0 forks source link

Stop using that dumb code snippet for timer waiting #1

Closed JonLiuFYI closed 8 years ago

JonLiuFYI commented 8 years ago
if playtime > 0 then
        playtime = playtime - dt
    elseif -999 < playtime and playtime <= 0 then
        playtime = -999
        Gamestate.pop()
    end

Maybe involve callbacks?

JonLiuFYI commented 8 years ago

see hump.timer