Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elzibus/ocaban
Sokoban game in OCaml
https://github.com/elzibus/ocaban
game ocaml ocaml-canvas sokoban
Last synced: 11 days ago
JSON representation
Sokoban game in OCaml
- Host: GitHub
- URL: https://github.com/elzibus/ocaban
- Owner: elzibus
- License: unlicense
- Created: 2023-04-09T12:08:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-06T10:10:12.000Z (10 months ago)
- Last Synced: 2024-11-14T14:20:40.957Z (2 months ago)
- Topics: game, ocaml, ocaml-canvas, sokoban
- Language: OCaml
- Homepage:
- Size: 210 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ocaban
To execute the program:
```
dune exec Ocaban
```![Alt text](/assets/sokoban_screenshot.png "Sokoban screenshot")
To play:
* Cursor keys : move the character
* Page Up / Page Down : change level
* Backspace key : undo moves# How I got this ready for upload
* dune init project Ocaban
* Copied main.ml, levels.ml in the ./bin sub-folder
* added libraries ocaml-canvas and react to the ./bin/dune file
* created ./assets and copied the spritesheet PNG file# Play
You can play the game here: https://elzibus.github.io/
# Credits
OCaml language : https://ocaml.org/
ocaml-canvas library : https://ocamlpro.github.io/ocaml-canvas/
Sprites : https://kenney.nl/
Sokoban levels : https://github.com/begoon/sokoban-maps