Skip to content

Chadowo/sokoruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SokoRuby

Sokoban clone made in Ruby with Gosu.

Play

Get It

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).

Controls

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

Extend

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.

Features

  • can move
  • can push boxes
  • can win

Caveats

  • can't push boxes in a row yet
  • can't push boxes that are in storage
  • no graphics

License

This game is licensed under the MIT license.