-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from monkeyx-net/Holonomy
New Port: Holonomy
- Loading branch information
Showing
8 changed files
with
531 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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| | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Oops, something went wrong.