Sokoban clone made in Ruby with Gosu.
Download a zip of the source code here or clone it:
git clone https://github.com/Chadowo/sokoruby.git
You'll need gosu to run the game, either install it with gem:
gem install gosu
or use Bundler:
bundle install
after that to run the game just run the main.rb
file (if you used bundler to install gosu, then the command
is slightly different, put bundle exec
before ruby
).
Your objective is for all the boxes (yellow squares) to be on a storage (red squares), avoid being in a position where you can't move a box and try to solve the level with the least steps possibles!
WASD or ↑←↓→ - Move yourself
R - Reset the level
Escape - Close the game
The code's documented nicely (I hope), so you can follow along pretty easily to create your own clone or learn a bit from it.
- can move
- can push boxes
- can win
- can't push boxes in a row yet
- can't push boxes that are in storage
- no graphics
This game is licensed under the MIT license.