Skip to content

Commit

Permalink
Merge pull request #41 from Cebion/climb
Browse files Browse the repository at this point in the history
New Port: Climb
  • Loading branch information
kloptops authored Feb 5, 2024
2 parents c5b5544 + e844432 commit 871a96d
Show file tree
Hide file tree
Showing 11 changed files with 106 additions and 0 deletions.
46 changes: 46 additions & 0 deletions ports/climb/Climb.sh
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions ports/climb/README.md
Original file line number Diff line number Diff line change
@@ -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 |
Binary file added ports/climb/climb/climb.apk
Binary file not shown.
23 changes: 23 additions & 0 deletions ports/climb/climb/climb.gptk
Original file line number Diff line number Diff line change
@@ -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
Binary file added ports/climb/climb/gamedata/splash.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/climb/climb/gmloader
Binary file not shown.
Binary file added ports/climb/climb/libc++_shared.so
Binary file not shown.
Binary file added ports/climb/climb/libs/libzip.so.5
Binary file not shown.
Binary file added ports/climb/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions ports/climb/port.json
Original file line number Diff line number Diff line change
@@ -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": []
}
}
Binary file added ports/climb/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 871a96d

Please sign in to comment.