GameZero.jl
GameZero.jl copied to clipboard
Game doesn't run without a draw function
it should display an empty frame if a draw function has not been defined
julia> rungame("MyGame.jl")
ERROR: BoundsError: attempt to access 0-element Array{Method,1} at index [1]
Stacktrace:
[1] getindex at .\array.jl:809 [inlined]
[2] getfn(::Module, ::Symbol, ::Int64) at C:\Users\avik\dev\GameZero\src\GameZero.jl:239
[3] initgame(::String) at C:\Users\avik\dev\GameZero\src\GameZero.jl:219
[4] rungame(::String) at C:\Users\avik\dev\GameZero\src\GameZero.jl:183
[5] top-level scope at REPL[32]:1