Sokoban clone implemented using HTML / CSS / Javascript
- Click here to play.
- Arrow keys to control the player.
Ctrl+ arrow keys to change levels.Backspaceto undo move.Ctrl+Hometo restart level.
- Sokoban Levels (.slc files) can be downloaded from here.
- The .slc files requires to be converted to Javascript.
- Place the .slc files in the
slcsfolder. - Run
npm installto install any dependencies. - Run
npm run genlevelsto generatesrc/levels.mjsfile.
- Run
npm run buildto build files from thesrcdirectory into thebuilddirectory. - Run
npm run serverto run a local http server to serve thebuilddirectory. - Open the web browser and go to the url
http://localhost:8080.