An open API service indexing awesome lists of open source software.

https://github.com/nuno-faria/sokoban-game

A sokoban game made in Java with JavaFX
https://github.com/nuno-faria/sokoban-game

coop game java javafx multiplayer puzzle sockets sokoban

Last synced: 5 days ago
JSON representation

A sokoban game made in Java with JavaFX

Awesome Lists containing this project

README

        

# sokoban-game

A [sokoban](https://en.wikipedia.org/wiki/Sokoban) game made in Java (8) with JavaFx.

![](screenshots/screen1.png)

### Features

- Pipes

![](screenshots/screen2.png)

- Gates/NegativeGates and pressure pads

![](screenshots/screen3.png)

- Co-op mode: a 2 player mode over TCP sockets

![](screenshots/screen4.png)

### Controls

- WASD/Keys : move
- N/M : prev/next level
- U/R : undo/restart
- Esc : exit

### Levels

Levels are represented in a .txt file, separated by 'MAPBREAK'. Each level has a structure (walls, flags, ...) followed by the coordinates of the player(s) and the coordinates of the boxes. The coordinates are counted with (0,0) being the first char starting from the bottom line. The map structure should be square or rectangular

# -> wall
. -> flag
-> floor
! -> empty space
U -> up pipe
D -> down pipe
L -> left pipe
R -> right pipe
$ -> gate
% -> negative gate
& -> pressure pad

![](screenshots/screen5.png)

There is a file for single mode (maps.txt) and another for multiplayer (maps-coop.txt).