At the Hedges of Time did fake undo in puzzlescript, but the code is super complex - thinking about it, idk if Tres Undos would be doable in puzzlescript, even with more buttons & being able to hijack the undo button.
I've just remembered that there's a cleaner codebase for the multi undo system: here is the source code for this game, which is basically Breakout but with white/orange/red bricks. If you were to make Tres Undos with multiple players, it might be easier to remake it from scratch taking this as a base, than trying to modify Tres Undos directly.
My discord tag is knexator#4865, feel free to DM me.
It's just code compiled in web, no engine :)
Playing locked levels is not a bug, but a feature! Allows me to quickly play a random level on a different computer, and to help very stuck players that want to skip levels. Very people find it on their own, congrats!
2 players is a cool idea, wonder how it would work. Does each have their own timeline? Can one undo the moves of the other? I'll have to think about this...
If you want to try ideas for this style of game but don't know js, I have great news! Check out PuzzleScript: puzzlescript.net. It allows you to make grid-based games without code. For example, a moving block is simply "[Block] -> [> Block]"; a wall for player but not crates is also super easy to do. There are a ton of cool games made with this engine (https://itch.io/games/tag-puzzlescript), and it's what I use for the many games that can be done in it (Tres Undos can't, since it messes with undo itself)
Thanks! The source code is avaliablehere, in my github. Be warned: it is extremely messy & unreadable (for example, the variable "player.inHole" not only stores if the player is in a hole, but also the current players sprite! (for historical reasons)). It might be easier to rebuild it from scratch!
If you're only interested in making custom levels, the game does have a level editor (which includes a mechanic that isn't used in the game)
Thanks a lot! For most of my browser games, I use no engine, just javascript and canvas. The source code for this one is avaliable athttps://github.com/knexator/old_page/blob/master/tenetSnake/src/index.ts