Skip to content

tcosmo/sokobanc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SokobanC

SokobanC is a great Sokoban written in C!

Dependencies

We use the SDL (v2), a powerful graphics, game and media library.

We use conan to manage our dependencies, in particular SDL: https://docs.conan.io/en/latest/getting_started.html.

You can install conan using python (>3):

python3 -m pip install conan

SDL is not available on the standard conan repository, you have to add the bincrafters repository:

conan remote add bincrafters https://bincrafters.jfrog.io/artifactory/api/conan/public-conan
conan config set general.revisions_enabled=1

Build

git clone
cd sokobanc
mkdir build
conan install ..
cmake ..
make
(cd bin && ./bin/sokobanc)

Sokoban format

Here is an example level file containing two levels:

1
    #####
    #   #
    #$  #
  ###  $##
  #  $ $ #
### # ## #   ######
#   # ## #####  ..#
# $  $          ..#
##### ### #@##  ..#
    #     #########
    #######
~
2
############
#..  #     ###
#..  # $  $  #
#..  #$####  #
#..    @ ##  #
#..  # #  $ ##
###### ##$ $ #
  # $  $ $ $ #
  #    #     #
  ############
~

The following symbols are used:

  • # is a wall
  • $ is a crate
  • . is a goal
  • * is a crate on a goal
  • @ is the player
  • + is the player on a goal

Credits

Sprite Sheet: 1001.com

About

A great Sokoban, written in C!!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors