aviks / GameZero.jl

Zero overhead game development library for the Julia programming language
Other
184 stars 23 forks source link

Fix `schedule_unique` and `unschedule` #54

Closed ginkulv closed 2 years ago

ginkulv commented 2 years ago

Right now these two functions are straight up broken. Code to reproduce:

using GameZero 
using Colors 

function draw() end 
function update() end 

function test() end 

schedule_unique(test, 1)
# or
unschedule(test)
aviks commented 2 years ago

Thanks. Yes, this bit is not very well tested. I'll add an example to exercise this.