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

Implement Level Select #61

Open
david-pfx opened this issue Apr 11, 2023 · 4 comments
Open

Implement Level Select #61

david-pfx opened this issue Apr 11, 2023 · 4 comments

Comments

@david-pfx
Copy link

  1. Upward compatible with PS+
  2. Modular, basis for future alternative versions
@ClementSparrow
Copy link
Owner

  1. Use the level-naming features described in https://clementsparrow.github.io/Pattern-Script/src/Documentation/levels.html

@david-pfx
Copy link
Author

  1. On closer inspection, the PS+ model is heavily dependent on SECTION, which brings in a whole new can of worms. Your rewrite of LevelState seems a quite different approach, not easily reconciled.
  2. Modular won't work as long as files are loaded from the HTML. Just adding a file is way too much work and too intrusive. It needs to be refactored to use ES5 require or similar, so files are loaded in the JS. [That will fix some other issues too, where an error in one file triggers an unrelated error in an unrelated file, due to the order of file loading.]
  3. Level names are fine and the menus are working, but I'm having problems with the 'box' stuff. There doesn't seem to be an existing API to load a random level.

@david-pfx
Copy link
Author

I've got it all working. Do you have a program with an insane combination of levels (at least 30), level names and messages I can try it out on?

@ClementSparrow
Copy link
Owner

No, unfortunately no game seems to have been done yet with that many levels and level names and messages.

@david-pfx david-pfx mentioned this issue Apr 16, 2023
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

No branches or pull requests

2 participants