GameZero.jl icon indicating copy to clipboard operation
GameZero.jl copied to clipboard

Game doesn't run without a draw function

Open aviks opened this issue 4 years ago • 0 comments

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

aviks avatar Dec 24 '20 13:12 aviks