Devlog for PS>
Hello everyone, I have recently read the source code of PS Next and tried to add features that interest me.
I hope to use PuzzleScript to create world levels (such as Maxwell’s puzzling demon). But after I tried the Link system, I found that’s difficult. There are many bugs in the Link system, such as returning the title in a sublevel and continuing, which will result in losing the parent level.
If I want to continue, I have to modify its source code.
Fortunately, it wasn’t difficult, and I added a new feature that I wanted, the Storage system.
I can define storage through the following code:
storage object1 object2 keyname
And set and clear storage through the following code:
[ PATTERN ] -> storage_set keyname
[ PATTERN ] -> storage_clear keyname
Finally, I need to use these stored data:
ifstorage [ object1 ] -> [ something ]
or
ifstorage [ object2 ] -> [ something ]
Only when it’s in stored, the rule of object2 will be applied. Any only when it’s NOT in stored, the rule of object1 will be applied.
Above, I have added Storage and Branch ability to PuzzleScript. By using them, I can make so many interesting mechanics. For example, an early experimental project Outside the Box and this one Sokoban Traveler.
Leave a comment
Log in with itch.io to leave a comment.