Skip to content

Commit

Permalink
Merge pull request #779 from Ganimoth/entwined-time
Browse files Browse the repository at this point in the history
New Port: Entwined Time
  • Loading branch information
Cebion authored Oct 14, 2024
2 parents f516baa + 54c44a4 commit f133008
Show file tree
Hide file tree
Showing 9 changed files with 183 additions and 0 deletions.
63 changes: 63 additions & 0 deletions ports/entwined/Entwined Time.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#!/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/entwined/
CONFDIR="$GAMEDIR/conf/"

> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1
# Ensure the conf directory exists
mkdir -p "$GAMEDIR/conf"

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

cd $GAMEDIR

runtime="frt_3.5.2"
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

$GPTOKEYB "$runtime" -c "entwined.gptk" &
pm_platform_helper $runtime
"$runtime" $GODOT_OPTS --main-pack "gamedata/Entwined Time.pck"


$ESUDO umount "$godot_dir"
pm_finish
17 changes: 17 additions & 0 deletions ports/entwined/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
## Notes

Thanks to Patashu for developing this game and kindly releasing it under MIT licence. Check his page at https://patashu.itch.io/entwined-time

## Controls

| Button | Action |
|--|--|
|DPAD / LSTICK|Movement|
|A|Confirm/Swap|
|B|Cancel/Rewind|
|X|Undo|
|Y|Redo|
|Start |Menu|
|Select|Restart|


19 changes: 19 additions & 0 deletions ports/entwined/entwined/LICENCE.ENTWINED-TIME.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
MIT License

Copyright (c) 2024 Timothy Stiles

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
21 changes: 21 additions & 0 deletions ports/entwined/entwined/LICENSE.FRT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017-2023 Emanuele Fornara

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
22 changes: 22 additions & 0 deletions ports/entwined/entwined/entwined.gptk
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
back = r
start = enter

a = x
b = z
x = c
y = y


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 = \"
right_analog_down = \"
right_analog_left = \"
right_analog_right = \"
Binary file not shown.
13 changes: 13 additions & 0 deletions ports/entwined/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>./Entwined Time.sh</path>
<name>Entwined Time</name>
<desc>In this two time manipulation puzzle game, help Light and Heavy reach and repair the Chrono Station's reactor after a catastrophic failure rends their timelines asunder (and also blows the Station to smithereens, turning it into hundreds of puzzles to traverse)!</desc>
<releasedate>20240413T000000</releasedate>
<developer>Patashu</developer>
<publisher>Patashu</publisher>
<genre>Puzzle</genre>
<image>./entwined/screenshot.png</image>
</game>
</gameList>
28 changes: 28 additions & 0 deletions ports/entwined/port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"version": 3,
"name": "entwined.zip",
"items": [
"Entwined Time.sh",
"entwined"
],
"items_opt": [],
"attr": {
"title": "Entwined Time",
"porter": [
"Ganimoth"
],
"desc": "In this two time manipulation puzzle game, help Light and Heavy reach and repair the Chrono Station's reactor after a catastrophic failure rends their timelines asunder (and also blows the Station to smithereens, turning it into hundreds of puzzles to traverse)!",
"desc_md": null,
"inst": "Ready to run. ",
"inst_md": null,
"genres": [
"puzzle"
],
"image": null,
"rtr": true,
"exp": false,
"runtime": "frt_3.5.2.squashfs",
"reqs": [],
"arch": []
}
}
Binary file added ports/entwined/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 f133008

Please sign in to comment.