I’ve always been addicted to logic games and Sokoban is one of them.
From Wikipedia: Sokoban (warehouse keeper) is a transport puzzle in which the player pushes boxes around a maze, viewed from above, and tries to put them in designated locations. Only one box may be pushed at a time, not two, and boxes cannot be pulled. As the puzzle would be extremely difficult to create physically, it is usually implemented as a video game.
In Sokoban, reading the code is useless because you don’t play in a static level, but level changes as you move your player pushing blocks.
At this time the script is very essential, and contains just one level, but I am going to push (yes, talking about sokoban, I obviously “push”) the script very far away, including level editors, leagues and even more.
Every single line of the script will be explained, as usual, meanwhile you can watch the code from your browser.
Can you solve the level? Can you tell me where did I rip the main sprite?