Open SabeDoesThings opened 10 months ago
Ah, yes, we do want to do that eventually. Initially, I wanted people to be able to use GameZero without worrying about modules, environments or includes -- which most of us consider trivial, but are actually quite a barrier for beginner programmers. I wanted them to get something on screen in five minutes, without having to learn a lot of extraneous stuff.
However, the flip side is that that the design we ended up with makes it difficult to support plain includes now. This is, to be honest, a collateral damage. I am hopeful we can fix it, but it will need some careful thinking and coding. I've just not had the time to do that. We had a PR that attempted to fix that, but unfortunately broke some other functionality.
Can't you for the moment just allow to pass the filenames to the rungame method in order to include these files before the main loop? Is frustrating not having the possibility to import other file into the game.
rungame("mainfile.jl", externals=["lib1.jl", "lib2.jl"])
So I was trying to organize a game and I wanted to split it up in multiple files but then I realized after many errors that GameZero can't do multiple files (I think it can't I am not entirely sure but if it is true it can't do multiple files please consider making it able to because it would make productivity a lot better and less messy).