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

Dynamic levels directory #151

Closed

Conversation

assertivist
Copy link
Member

Fixes #150

Avara now reads the sets available from the levels directory. Additionally, it detects whether a given set is a resource file or the updated format of a directory with JSON and SVGs. That means that the PR also

Fixes #27 🎉

as with these patches Avara supports both resource files and SVGs without the use of a command line switch. There is now a function in LevelLoader that (crudely) gives a version (rsrc or svg) for a given set, and this is used to trigger the alternate level loading code.

I was also able to improve the failure state for both types of sets--instead of causing crashes, loading missing levels should now properly trigger the "level not found" status.

Added two SVG-only sets, 20XX (for testing and template levels) and tyyli (an in-progress Piet Mondrian inspired set that anyone is welcome to contribute to)

If you can bear to read it, please review and give feedback on implementation. I'm open to ideas if you see something particularly bad. This also needs a network play test before it can be merged.

assertivist and others added 30 commits July 27, 2020 06:55
…xt y values on older levels, ryan levels work though
This thing is so dumb that it tried to greet Head who has committed to the repository and made numerous pull requests and comments. If it can't even tell that he doesn't need to be greeted then it sucks
Trying to re-create some hangs.  This might be useful for other tests as well.
This fixes a bug where a client with PACKET_DEBUG on who receives a message from connection that is no longer valid (client was kicked).
The dreaded "Waiting for <Player>" message has ruined many a game.  This fix simply kicks the player who is being waiting on so the game can continue.  The booted player can log in again.
…xt y values on older levels, ryan levels work though
@assertivist
Copy link
Member Author

Closed as this is getting combined with ALF.

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.

Load levels available from directory instead of hard-coded array SVG Levels
3 participants