-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impossible to include other files in the game #52
Comments
See the changes in this PR if it helps: #38 The stuff in that PR should probably be better documented. |
Hello, I have the same issue, everything works well when I have only one file, I face an error when trying to |
You can use |
Thank you for your help, I'll try that ! |
Yeah, that works too |
It would be great to have 1 file that contains the game and include other files that contains the structs created in the game.
I was tring to make a game.jl that had "include(snake.jl)".
In game.jl, all the loops and conditions would be verified, while the snake.jl file would have the definition of the struct snake and its methods. But when i try to do "include(snake.jl)" I get "LoadError: UndefVarError: include not defined".
Apperantly, there's no function "include" in gamezero, or it erases the base function from julia. I don't uderstand exactly
The text was updated successfully, but these errors were encountered: