-
-
Notifications
You must be signed in to change notification settings - Fork 105
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 #1274 from Sacredev/Leap-Year
New Port: Leap Year
- Loading branch information
Showing
22 changed files
with
1,127 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,53 @@ | ||
#!/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 | ||
|
||
# Variables | ||
GAMEDIR="/$directory/ports/leapyear" | ||
|
||
# CD and set permissions | ||
cd $GAMEDIR | ||
> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1 | ||
$ESUDO chmod +x $GAMEDIR/gmloadernext.aarch64 | ||
|
||
# Exports | ||
export LD_LIBRARY_PATH="/usr/lib:$GAMEDIR/lib:$GAMEDIR/libs:$LD_LIBRARY_PATH" | ||
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig" | ||
|
||
# Extract and patch file | ||
if [ -f "./assets/data.win" ]; then | ||
if [ "$(md5sum "./assets/data.win" | awk '{print $1}')" == "9ceb853d5bd622c94c5bbe10945bfe4d" ]; then | ||
# itch | ||
$controlfolder/xdelta3 -d -s "./assets/data.win" "./patch/itch_patch.xdelta" "./assets/game.droid" | ||
elif [ "$(md5sum "./assets/data.win" | awk '{print $1}')" == "0d19cb03cf680cd2e8c0965f9d295630" ]; then | ||
# Steam | ||
$controlfolder/xdelta3 -d -s "./assets/data.win" "./patch/steam_patch.xdelta" "./assets/game.droid" | ||
fi | ||
[ $? -eq 0 ] && rm "./assets/data.win" || pm_message "Failed to apply patch" | ||
# Delete redundant files | ||
rm -f assets/*.{dll,exe} | ||
# Zip audio files into the game.port | ||
zip -r -0 ./game.port ./assets/audiogroup1.dat | ||
fi | ||
|
||
# Assign gptokeyb and load the game | ||
$GPTOKEYB "gmloadernext.aarch64" xbox360 & | ||
pm_platform_helper "$GAMEDIR/gmloadernext.aarch64" | ||
./gmloadernext.aarch64 -c "gmloader.json" | ||
|
||
# Cleanup | ||
pm_finish |
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,15 @@ | ||
## Notes | ||
|
||
Special thanks to [Daniel Linssen](https://daniellinssen.games) and [Sokpop Collective](https://sokpop.itch.io) for making this awesome game! | ||
Thanks to [tabreturn](https://portmaster.games/profile.html?porter=tabreturn) for testing the game and patching the itch version. | ||
|
||
## Controls | ||
|
||
| Button | Action | | ||
|--|--| | ||
|L-stick/D-pad|Move| | ||
|B|Select/Jump| | ||
|Start|Pause| | ||
|l2/r2|Grid on/off| | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<gameList> | ||
<game> | ||
<path>./Leap Year.sh</path> | ||
<name>Leap Year</name> | ||
<desc>Leap Year is a clumsy platformer about knowledge and discovery. Explore a compact, hand drawn world filled with hidden paths. Understand the game’s secrets to reach new areas and collect all the pages of your calendar.</desc> | ||
<releasedate>20240614T000000</releasedate> | ||
<developer>Daniel Linssen</developer> | ||
<publisher>Daniel Linssen, Sokpop Collective</publisher> | ||
<genre>Action Adventure Platformer</genre> | ||
<image>./leapyear/cover.png</image> | ||
</game> | ||
</gameList> |
Empty file.
Binary file not shown.
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,7 @@ | ||
{ | ||
"save_dir" : "assets", | ||
"apk_path" : "game.port", | ||
"show_cursor" : false, | ||
"disable_controller" : false, | ||
"force_platform" : "os_windows" | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.