Skip to content
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

Changed the way games are run. #38

Merged
merged 5 commits into from
Jul 20, 2021
Merged

Conversation

scottbigbrain
Copy link
Contributor

This PR changes the way that rungame and initgame work so that a programmer can run their game with the command julia game.jl instead of rungame("game.jl"). This approach allows file inclusion and does not conflict with the way games are currently run. All existing games will work as they are now. This new approach does require the user to import GameZero, Colors, and GameZero.draw at the script's beginning, and put rungame() at the end of the script if they want to run the game in the new way. This PR includes the functionality of #22 and resolves #9.

@aviks aviks merged commit 0155d6b into aviks:master Jul 20, 2021
@aviks
Copy link
Owner

aviks commented Jul 20, 2021

Thanks. Sorry it took so long to look at it, but this seems like a good improvement. I'm glad you were able to navigate this code, which is admittedly a bit hacky.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better way to run game
2 participants