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
- Host: GitHub
- URL: https://github.com/nuno-faria/sokoban-game
- Owner: nuno-faria
- Created: 2018-02-02T13:59:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-08T18:38:08.000Z (about 7 years ago)
- Last Synced: 2025-03-29T10:04:24.880Z (26 days ago)
- Topics: coop, game, java, javafx, multiplayer, puzzle, sockets, sokoban
- Language: Java
- Homepage:
- Size: 228 KB
- Stars: 37
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sokoban-game
A [sokoban](https://en.wikipedia.org/wiki/Sokoban) game made in Java (8) with JavaFx.

### Features
- Pipes

- Gates/NegativeGates and pressure pads

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

### 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
There is a file for single mode (maps.txt) and another for multiplayer (maps-coop.txt).