elm-sokoban-player

所属分类:collect
开发工具:Elm
文件大小:0KB
下载次数:0
上传日期:2021-05-09 02:05:15
上 传 者sh-1993
说明:  最初的柏林榆树黑客之夜项目,索科班玩家提供最好的经验,发挥任何索科班水平,你想,
(initially berlin elm hack night project, sokoban player provides best experience to play any sokoban level you want,)

文件列表:
.editorconfig (377, 2021-04-29)
FEATURES (366, 2021-04-29)
LICENSE (271, 2021-04-29)
elm-package.json (770, 2021-04-29)
not-in-use/ (0, 2021-04-29)
not-in-use/all-icons/ (0, 2021-04-29)
not-in-use/all-icons/License.txt (483, 2021-04-29)
not-in-use/all-icons/box3dBlue.svg (2964, 2021-04-29)
not-in-use/all-icons/box3dGreen.svg (3398, 2021-04-29)
not-in-use/all-icons/boxGreen.svg (1469, 2021-04-29)
not-in-use/all-icons/dotBrown.svg (1254, 2021-04-29)
not-in-use/all-icons/dotGreen.svg (1252, 2021-04-29)
not-in-use/all-icons/floorBrown.svg (8942, 2021-04-29)
not-in-use/all-icons/floorGrey.svg (9381, 2021-04-29)
not-in-use/all-icons/playerBack.svg (7987, 2021-04-29)
not-in-use/all-icons/playerFront.svg (8730, 2021-04-29)
not-in-use/all-icons/playerLeft.svg (6731, 2021-04-29)
not-in-use/all-icons/playerRight.svg (6767, 2021-04-29)
not-in-use/all-icons/wall3dBrown.svg (4264, 2021-04-29)
not-in-use/all-icons/wall3dRed.svg (4203, 2021-04-29)
not-in-use/all-icons/wall3dRed_2.svg (4184, 2021-04-29)
not-in-use/all-icons/wallBrown.svg (2445, 2021-04-29)
not-in-use/all-icons/wallGrey.svg (2478, 2021-04-29)
not-in-use/all-icons/wallRed.svg (2393, 2021-04-29)
package-lock.json (472696, 2021-04-29)
package.json (732, 2021-04-29)
public/ (0, 2021-04-29)
public/_redirects (47, 2021-04-29)
public/android-chrome-192x192.png (17230, 2021-04-29)
public/android-chrome-256x256.png (23622, 2021-04-29)
public/apple-touch-icon.png (16160, 2021-04-29)
public/browserconfig.xml (246, 2021-04-29)
public/favicon-16x16.png (1458, 2021-04-29)
public/favicon-32x32.png (2523, 2021-04-29)
public/favicon.ico (15086, 2021-04-29)
public/index.html (28649, 2021-04-29)
... ...

# Sokoban Player Sokoban Player provides best experience to play any [sokoban](https://en.wikipedia.org/wiki/Sokoban) level you want! Play it [here](https://sokoban-player.netlify.com/) ## Contributing This app is based on [create-elm-app](https://github.com/halfzebra/create-elm-app). Here are steps to set it up for yourself. - `npm install` - `npm start` To build app - `npm run build` To build SVG sprite - `npm run build-svg` Run tests (optional with watch) - `npm test` - `npm test -- --watch` Pull requests are welcome! ## Some docs ### Level data structures and transformations #### `StringLevel` and `ShortStringLevel` Based on [Sokoban Level Format](http://sokobano.de/wiki/index.php?title=Level_format) level can be defined as a string in 2 formats, normal and short. This is one of possible entry formats. - `StringLevel` - normal, row separation with pipe or just with new line ``` ####### #.@ # # #$* $ # # $ # # .. # # * # ####### ``` - `ShortStringLevel` - created from normal with Run Length Encoding, row separation obligatory with pipe, underscore represents an empty field ``` 7#|#.@_#_#|#$*_$_#|#3_$_#|#_2.2_#|#2_*2_#|7#| ``` - `XmlLevel` XML Sokoban format, game elements are represented with the same characters as in string format. Another entry format. ``` ###### # # ## $ # # ##$# # $.#.# # $...# # $#### #@ # #### ``` - `Level` Intermediary structure to standardize all entry formats. `id` is a `EncodedLevel` ``` level : Level level = { width = 5 , height = 3 , map = [ [ '#', '#', '#', '#', '#' ] , [ '#', '@', '$', '.', '#' ] , [ '#', '#', '#', '#', '#' ] ] , id = "5AHABDFAH5A" } ``` - `ViewLevel` Is created always directly from `Level` and is used to keep and update level elements in `Model`. ``` viewLevel : ViewLevel viewLevel = { player = Block 1 1 , walls = [ Block 0 0, Block 1 0, etc. ] , boxes = [ Block 2 1 ] , dots = [ Block 3 1 ] , gameSize = ( 5, 3 ) } ``` - `EncodedLevel` This is `ShortStringLevel` format mapped to more url-friendly symbols, see table below. ``` 7AHAFBGAGAHADEGDGAHA3GDGAHAG2F2GAHA2GE2GAH7AH ``` | element | sokoban format | url encoded | | - | :-: | :-: | | wall | # | A | | player | @ | B | | player on dot | + | C | | box | $ | D | | box on dot | * | E | | dot | . | F | | floor | _ | G | | row separator | | | H | ## License (c) Copyright 2018 Kris Urbas [@krzysu](http://twitter.com/krzysu), all rights reserved. This game is open sourced for learning and recruitment purposes. Do not use for profit! Original Sokoban game written by Hiroyuki Imabayashi 1982 by THINKING RABBIT Inc. JAPAN. Game assets by Kenney.nl.

近期下载者

相关文件


收藏者