https://github.com/chadowo/sokoruby
Sokoban made in Ruby
https://github.com/chadowo/sokoruby
game gosu libgosu ruby
Last synced: 8 days ago
JSON representation
Sokoban made in Ruby
- Host: GitHub
- URL: https://github.com/chadowo/sokoruby
- Owner: Chadowo
- License: mit
- Created: 2023-07-31T15:09:13.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-12T01:19:45.000Z (over 2 years ago)
- Last Synced: 2025-02-25T19:34:09.630Z (over 1 year ago)
- Topics: game, gosu, libgosu, ruby
- Language: Ruby
- Homepage:
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SokoRuby
Sokoban clone made in [Ruby](https://www.ruby-lang.org) with [Gosu](https://www.libgosu.org/).
## Play
### Get It
Download a zip of the source code here or clone it:
```console
git clone https://github.com/Chadowo/sokoruby.git
```
You'll need gosu to run the game, either install it with gem:
```console
gem install gosu
```
or use Bundler:
```console
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](LICENSE).