Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Port: Still Yet Another Sokoban (syasokoban) #1250

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions ports/syasokoban/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Thanks
Thanks to the [David Joffe](https://grayskygames.com/sokoban.html) for creating this game and making it available for free.

## Controls

| Button | Action |
|--|--|
|DPAD| Move |
|A| Mouse Left |
|B| Undo Move|
|X| Choose Level|
|Y| Restart Level |
|R1| Next Level|
|L1| Previous Level|

## Building

```
wget https://grayskygames.com/sokoban/syasokoban-2.0.1.tar.gz
tar xf syasokoban-2.0.1.tar.gz
cd syasokoban-2.0.1/
make
```
38 changes: 38 additions & 0 deletions ports/syasokoban/Still Yet Another Sokoban.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/bash

XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share}

if [ -d "/opt/system/Tools/PortMaster/" ]; then
controlfolder="/opt/system/Tools/PortMaster"
elif [ -d "/opt/tools/PortMaster/" ]; then
controlfolder="/opt/tools/PortMaster"
elif [ -d "$XDG_DATA_HOME/PortMaster/" ]; then
controlfolder="$XDG_DATA_HOME/PortMaster"
else
controlfolder="/roms/ports/PortMaster"
fi

source $controlfolder/control.txt

[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"

get_controls

GAMEDIR=/$directory/ports/syasokoban
CONFDIR="$GAMEDIR/conf"
BINARY=syasokoban

> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1

mkdir -p "$GAMEDIR/conf"

export LD_LIBRARY_PATH="$GAMEDIR/libs.${DEVICE_ARCH}:$LD_LIBRARY_PATH"
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"
export TEXTINPUTINTERACTIVE="Y"

cd $GAMEDIR

$GPTOKEYB "$BINARY" -c ./$BINARY.gptk &
pm_platform_helper "$GAMEDIR/$BINARY"
./$BINARY
pm_finish
13 changes: 13 additions & 0 deletions ports/syasokoban/gameinfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<gameList>
<game>
<path>./Still Yet Another Sokoban.sh</path>
<name>Still Yet Another Sokoban</name>
<desc>Still Yet Another Sokoban, a clone of the popular puzzle game in which the goal is to push the crates onto the designated squares</desc>
<releasedate>20020101T000000</releasedate>
<developer>David Joffe</developer>
<publisher>Self-Published</publisher>
<genre>Puzzle</genre>
<image>./syasokoban/screenshot.png</image>
</game>
</gameList>
31 changes: 31 additions & 0 deletions ports/syasokoban/port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"version": 3,
"name": "syasokoban.zip",
"items": [
"Still Yet Another Sokoban.sh",
"syasokoban"
],
"items_opt": [],
"attr": {
"title": "Still Yet Another Sokoban",
"porter": [
"Cebion"
],
"desc": "Still Yet Another Sokoban, a clone of the popular puzzle game in which the goal is to push the crates onto the designated squares",
"desc_md": null,
"inst": "Ready to run!",
"inst_md": null,
"genres": [
"puzzle"
],
"image": null,
"rtr": true,
"exp": false,
"runtime": null,
"reqs": [],
"arch": [
"aarch64"
],
"min_glibc": ""
}
}
Binary file added ports/syasokoban/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ports/syasokoban/syasokoban/data/cursor.bmp
Binary file not shown.
Binary file added ports/syasokoban/syasokoban/data/cursor2.bmp
Binary file not shown.
Binary file added ports/syasokoban/syasokoban/data/cursor2_a.bmp
Binary file not shown.
Binary file added ports/syasokoban/syasokoban/data/font.bmp
Binary file not shown.
Binary file added ports/syasokoban/syasokoban/data/font8x13.bmp
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Name=David Holland's dh1
Author=David Holland
Date=2001?
EMail=david@noether.freeserve.co.uk
URL=http://www.clickfest88.freeserve.co.uk/dh1/index.html
Difficulty=Hard
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
;The dh1 collection of Sokoban positions is copyright David Holland <david@noether.freeserve.co.uk>
;These levels may be distributed freely as long as this copyright message is retained.

Level 1
;Author: D Holland
;Title: Spade
'Spade'
####
### ####
### $ $ #
# #..#$ #
# $$#*.# #
# ....$ #
## # .#.# #
# $##$#.#$ #
# @$ .$ #
## # ## #
###########

Level 2
;Author: D Holland and sokgen
;Title: ninevah
'Ninevah'
#####
#### #
#@$ # #
# $$$ #
##.#. #
# ..# #
# #.* #
# $.$ ##
### #
#####

Level 3
;Author: D Holland and sokgen
;Title: CrissCross
'CrissCross'
#####
## @####
# #$$ #
###.# # #
# $#.#$ #
# ... ##
###$#.#$ #
# ##
### #
#####

Level 4
;Author: D Holland
;Title: Carousel
'Carousel'
#### #####
#### #### #
# $ $ $ ####
# # # ### # #
# $ $ # $$ $ #
### ## $@$ ##
#$ ## # $$ $$ #
# $ ## ## #
### #$## ...# ##
# ..*.*..##.# #
# #..*.....*.# #
# ######## #
##### #####

Level 5
;Author: D Holland
;Title: Pattern-oster
'Pattern-oster'
####
# #
# # #######
# # #.. #
# ####..##$###
# $ $.* #
# #$ #*.# $# #
###$# #..# # #
# #$ #*.# $# #
# # # $..# # ##
# #$#$ #..$ # #
# # #..# # #
# #@# $#*.#$# # #
# $# #..# # #
## $ $ $ ### #
#### # ##
############

Level 6
;Author: D Holland
;Title: Saturnine
'Saturnine'
##########
# ## ######
# $ $ $ # #
# $ # .$ # #
### ##.# $ ##
# ##$##.###. #
# *.......$#
# ##.## #
##$####.######
# $ # . # #
# # **$ #
# $ # @ # $ #
# $ ##### #
### # ####
#####

Level 7
;Author: D Holland and sokgen
;Title: briefcase alt 23
'briefcase alt 23'
#####
### #
# $*@.###
# # *$ #
# #. .# #
# #$* $ #
# .###
### #
#####

Level 8
;Author: D Holland
;Title: Salamandar v3
'Salamander v3'
#####
####### ###
# ## $ $ #
# # ## # #
# #..$ $ ## #
# .$# $# #
###..# $ @$ #
#**# $ # ##
#..# # #
#..##### ##
#.*# $ #
#..# $ #
##.### #####
# $ $ #
# #### #
##### #####

Level 9
;Author: D Holland
;Title: Abstract
'Abstract'
######
# #
##. * ##
# . $ #
# #**# #
# *+* #
## $$ ##
# #
######

Level 10
;Author: D Holland
;Title: Storm (in a teacup) v6
'Storm (in a teacup) v6'
####
# #######
# #
# ###$# #
##.# # . #
# # #$* #
#.### + #
# $ #$* #
# # . #
##.####* #
# $ $ * #
# ##
#########
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Name=David Holland's dh2
Author=David Holland
Date=2001?
EMail=david@noether.freeserve.co.uk
URL=http://www.clickfest88.freeserve.co.uk/dh1/index.html
Loading