Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.15 KB

README.md

File metadata and controls

37 lines (28 loc) · 1.15 KB

sokoban

Simple Sokoban 3D in OpenGL.

##About Project done for Computer Graphic classes @ PUT under dr Witold Andrzejewski.

##Usage

###Bulding

  • building make
  • running ./sokoban

###Keyboard

  • arrows moving folk
  • z/xmoving camera y-axis
  • c/vmoving camera x-axis
  • +/-zooming in/out
  • r restart current level
  • n start next level
  • ESC to quit

##Adding own levels To add new level you simply have to add n.level file into levels directory (where n is an integer).

Currently maximum level size is 10x10. .level file should start with level size. Then, it should container size * size integers which are linked to fields on the board. Possible values are:

  • 9 for borders
  • 5 for folk
  • 4 for done boxes
  • 3 for normal boxes
  • 2 for empty spots
  • 1 for normal floor
  • 0 for free space