Sokoban aka Boxworld is a type of puzzle, in which the player pushes boxes around in a warehouse, trying to get them to designated locations. It has been developed in Java.
Rules
- The player can move up, down, left, and right.
- He can’t pass through walls or boxes.
- He can push only one box at a time, not pull.
- The puzzle is solved when all boxes are at storage locations.
Screenshots
Source Code
Sokoban.java
SokobanMain.java
Functionality
- To move left, press Left arrow key.
- To move right, press Right arrow key.
- To move up, press Up arrow key.
- To move down, press Down arrow key.
- To pause the game, press Space bar key.
- To undo the game press, Z key.
Downloads
Click here to view and download the source code of Sokoban Game (35 KB).
Click here to view and download the images of Sokoban Game (22KB).
No comments:
Post a Comment