Skip to content

lkosten/Sokoban

Repository files navigation

Sokoban

Sokoban (倉庫番 sōko-ban, "warehouse keeper") is a type of puzzle video game, in which the player pushes crates or boxes around in a warehouse, trying to get them to storage locations.

Rules

The game is played on a board of squares, where each square is a floor or a wall. Some floor squares contain boxes, and some floor squares are marked as storage locations.

The player is confined to the board, and may move horizontally or vertically onto empty squares (never through walls or boxes). The player can also move into a box, which pushes it into the square beyond. Boxes may not be pushed into other boxes or walls, and they cannot be pulled. The number of boxes is equal to the number of storage locations. The puzzle is solved when all boxes are at storage locations (wiki).

Features

  • In-game level creator - create your own levels and pass them!

  • Warehouse keeper appearance customization - more than 70 textures (number will grow) and RGB pallete!

Credits

http://www.sourcecode.se/sokoban/levels - tons of levels by community

https://game-icons.net/ - textures collection

Build

OpenGL libraries for windows and linux are different. Edit .pro file before build.

OpenGl library for windows :

  LIBS     += -lopengl32

OpenGl library for linux :

  LIBS     += -lGL