diff --git a/ports/climb/Climb.sh b/ports/climb/Climb.sh new file mode 100644 index 0000000000..17ff7c3748 --- /dev/null +++ b/ports/climb/Climb.sh @@ -0,0 +1,46 @@ +#!/bin/bash +if [ -d "/opt/system/Tools/PortMaster/" ]; then + controlfolder="/opt/system/Tools/PortMaster" +elif [ -d "/opt/tools/PortMaster/" ]; then + controlfolder="/opt/tools/PortMaster" +else + controlfolder="/roms/ports/PortMaster" +fi + +source $controlfolder/control.txt +[ -f "/etc/os-release" ] && source "/etc/os-release" + +get_controls + +$ESUDO chmod 666 /dev/tty0 + + +if [ "$OS_NAME" == "JELOS" ]; then + export SPA_PLUGIN_DIR="/usr/lib32/spa-0.2" + export PIPEWIRE_MODULE_DIR="/usr/lib32/pipewire-0.3/" +fi + +GAMEDIR=/$directory/ports/climb +exec > >(tee "$GAMEDIR/log.txt") 2>&1 + +export LD_LIBRARY_PATH="/usr/lib32:$GAMEDIR/libs:$GAMEDIR/utils/libs" +export GMLOADER_DEPTH_DISABLE=1 +export GMLOADER_SAVEDIR="$GAMEDIR/gamedata/" + +cd $GAMEDIR + +# Check for file existence before trying to manipulate them: +[ -f "./gamedata/data.win" ] && mv gamedata/data.win gamedata/game.droid +[ -f "./gamedata/game.win" ] && mv gamedata/game.win gamedata/game.droid + +$ESUDO chmod 666 /dev/uinput + +$GPTOKEYB "gmloader" -c ./climb.gptk & + +$ESUDO chmod +x "$GAMEDIR/gmloader" + +./gmloader climb.apk + +$ESUDO kill -9 $(pidof gptokeyb) +$ESUDO systemctl restart oga_events & +printf "\033c" > /dev/tty0 diff --git a/ports/climb/README.md b/ports/climb/README.md new file mode 100644 index 0000000000..95cde9a5c2 --- /dev/null +++ b/ports/climb/README.md @@ -0,0 +1,13 @@ +## Notes +Thanks to Junch for creating this game! +https://junchmakes.itch.io/climb + +## Controls + +|Button| Action | +|--|--| +| start| enter | +| d-pad/l-stick| movement | +| r-stick| aim| +| a/b| jump | +| r1/r2| shoot | \ No newline at end of file diff --git a/ports/climb/climb/climb.apk b/ports/climb/climb/climb.apk new file mode 100644 index 0000000000..d3e49c5dc1 Binary files /dev/null and b/ports/climb/climb/climb.apk differ diff --git a/ports/climb/climb/climb.gptk b/ports/climb/climb/climb.gptk new file mode 100644 index 0000000000..078a2b1950 --- /dev/null +++ b/ports/climb/climb/climb.gptk @@ -0,0 +1,23 @@ +back = esc +start = enter +a = space +b = space +x = \ +y = \ +r1 = mouse_left +r2 = mouse_left +up = up +down = down +left = left +right = right +left_analog_up = up +left_analog_down = down +left_analog_left = left +left_analog_right = right +right_analog_up = mouse_movement_up +right_analog_down = mouse_movement_down +right_analog_left = mouse_movement_left +right_analog_right = mouse_movement_right +deadzone_triggers = 3000 +mouse_scale = 3000 +mouse_delay = 2 diff --git a/ports/climb/climb/gamedata/splash.png b/ports/climb/climb/gamedata/splash.png new file mode 100644 index 0000000000..2efc48a194 Binary files /dev/null and b/ports/climb/climb/gamedata/splash.png differ diff --git a/ports/climb/climb/gmloader b/ports/climb/climb/gmloader new file mode 100644 index 0000000000..f953f12dd3 Binary files /dev/null and b/ports/climb/climb/gmloader differ diff --git a/ports/climb/climb/libc++_shared.so b/ports/climb/climb/libc++_shared.so new file mode 100644 index 0000000000..fb45ef9052 Binary files /dev/null and b/ports/climb/climb/libc++_shared.so differ diff --git a/ports/climb/climb/libs/libzip.so.5 b/ports/climb/climb/libs/libzip.so.5 new file mode 100644 index 0000000000..0908c68657 Binary files /dev/null and b/ports/climb/climb/libs/libzip.so.5 differ diff --git a/ports/climb/cover.png b/ports/climb/cover.png new file mode 100644 index 0000000000..3c74685ea7 Binary files /dev/null and b/ports/climb/cover.png differ diff --git a/ports/climb/port.json b/ports/climb/port.json new file mode 100644 index 0000000000..d7ea53edf8 --- /dev/null +++ b/ports/climb/port.json @@ -0,0 +1,24 @@ +{ + "version": 2, + "name": "climb.zip", + "items": [ + "Climb.sh", + "climb" + ], + "items_opt": [], + "attr": { + "title": "Climb", + "porter": [ + "mattyj513" + ], + "desc": "Climb is a bullet-ridden 2D platformer in which you play a knight fighting and climbing out of a prison tower with the help of a magical sword that shoots bullets! Includes 5 levels of increasing difficulty! Various enemy types! Traps! A unique mechanic where you shoot at the floor to jump higher! Single life challenge!", + "inst": "Download game from https://junchmakes.itch.io/climb, copy data.win to /ports/climb/gamedata", + "genres": [ + "action" + ], + "image": null, + "rtr": false, + "runtime": null, + "reqs": [] + } +} \ No newline at end of file diff --git a/ports/climb/screenshot.png b/ports/climb/screenshot.png new file mode 100644 index 0000000000..96fa597201 Binary files /dev/null and b/ports/climb/screenshot.png differ