🦋

jesht

play game

What if we programed a sokoban game like a shader with rewriting rules?
The rules are generalized as such.

-- movement of the "player" (1) through "empty cells" (0) -- (A == 1 and B == 0) A B C D -> B A C D -- here, "player" (1) moves a "box" (2) through "empty cells" (0) -- (A == 1 and B == 2 and C == 0) A B C D -> C A B D
So we loop over all cells in the room.
B being the current cell, A C D being neighbor cells.
Diffrent rotations are applyed depenting on the direction pressed.

-- left -- D A B C -- right -- A B D C -- down -- C B A D -- up -- C D B A
I want to mess around with diffrent rules more. Mabye make editing the rewriting rules and sprites easyer in game. Make it a exploritory space more than just a puzzle to solve.