Skip to content

Commit

Permalink
Merge pull request #109 from monkeyx-net/Holonomy
Browse files Browse the repository at this point in the history
New Port: Holonomy
  • Loading branch information
kloptops authored Feb 19, 2024
2 parents 88333a1 + b17c18f commit 6d27a4b
Show file tree
Hide file tree
Showing 8 changed files with 531 additions and 0 deletions.
57 changes: 57 additions & 0 deletions ports/holonomy/Holonomy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/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

get_controls

GAMEDIR=/$directory/ports/holonomy/
CONFDIR="$GAMEDIR/conf/"

# Ensure the conf directory exists
mkdir -p "$GAMEDIR/conf"

# Set the XDG environment variables for config & savefiles
export XDG_CONFIG_HOME="$CONFDIR"
export XDG_DATA_HOME="$CONFDIR"

cd $GAMEDIR

runtime="frt_3.3.4"
if [ ! -f "$controlfolder/libs/${runtime}.squashfs" ]; then
# Check for runtime if not downloaded via PM
if [ ! -f "$controlfolder/harbourmaster" ]; then
echo "This port requires the latest PortMaster to run, please go to https://portmaster.games/ for more info." > /dev/tty0
sleep 5
exit 1
fi

$ESUDO $controlfolder/harbourmaster --quiet --no-check runtime_check "${runtime}.squashfs"
fi

# Setup Godot
godot_dir="$HOME/godot"
godot_file="$controlfolder/libs/${runtime}.squashfs"
$ESUDO mkdir -p "$godot_dir"
$ESUDO umount "$godot_file" || true
$ESUDO mount "$godot_file" "$godot_dir"
PATH="$godot_dir:$PATH"

export FRT_NO_EXIT_SHORTCUTS=FRT_NO_EXIT_SHORTCUTS

$ESUDO chmod 666 /dev/uinput
$GPTOKEYB "$runtime" -c "./holonomy.gptk" &
SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig" "$runtime" --main-pack "holonomy.pck"

$ESUDO umount "$godot_dir"
$ESUDO kill -9 $(pidof gptokeyb)
$ESUDO systemctl restart oga_events &
printf "\033c" > /dev/tty0

20 changes: 20 additions & 0 deletions ports/holonomy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## Notes

Play as a pip on the surface of a die, using the effects of Holonomy to navigate a non-euclidean environment to find your spot.

Thanks to [Fuzzyzilla](https://fuzzyzilla.itch.io/) for releasing this game.

[Source code](https://github.com/Fuzzyzilla/Holonomy)



## Controls

| Button | Action |
|--|--|
|LEFT|Left|
|RIGHT|Right|
|A|Jump|
|B|Jump|


22 changes: 22 additions & 0 deletions ports/holonomy/holonomy/holonomy.gptk
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
back = esc
start = enter
a = up
b = up
x = up
y = up
l1 = \"
l2 = \"
r1 = \"
r2 = \"
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 = up
right_analog_down = down
right_analog_left = left
right_analog_right = right
31 changes: 31 additions & 0 deletions ports/holonomy/holonomy/holonomy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"version": 2,
"name": "holonomy.zip",
"items": [
"Holonomy.sh",
"holonomy"
],
"items_opt": null,
"attr": {
"title": "Holonomy",
"porter": [
"monkeyx.net"
],
"desc": "Play as a pip on the surface of a die, using the effects of Holonomy to navigate a non-euclidean environment to find your spot.",
"inst": "Ready to play",
"genres": [
"platformer"
],
"image": null,
"rtr": true,
"exp": false,
"runtime": null,
"reqs": []
},
"status": {
"source": "Unknown",
"md5": null,
"status": "Installed"
}

}
Binary file added ports/holonomy/holonomy/holonomy.pck
Binary file not shown.
Loading

0 comments on commit 6d27a4b

Please sign in to comment.