- Documentation
- Updateable PuzzleScript.net URLs
Updateable PuzzleScript URLs
If you want to share a link to a puzzle you've made, but still be able to update it (in case there are bugs you want to fix, or new levels you want to add), here's how you do that:
This same approach gives you an alternative way of sharing the game if the SHARE option in the engine is not working for you.
- Log into Github Gists, make a gist with a file called script.txt with your PS source code.
- Save the project to get an URL like https://gist.github.com/Auroriax/65c0e7ab38cfc25806e11a6dcacfb3ad.
- Now, append the hash from that url to the PS> play URL, for example https://puzzlescriptnext.polyomino.com//play.html?p=65c0e7ab38cfc25806e11a6dcacfb3ad.
Finally, you can load a game directly by name if it's on the same server.
- Use https://puzzlescriptnext.polyomino.com/play.html?demo=next/2048 to load a game that is already in the demo directory.
- Use https://puzzlescriptnext.polyomino.com/play.html?url= to load a game that is somewhere else on the same server.
Due to a security restriction called CORS, this will not work if it isn't.