Skip to content

Commit

Permalink
Merge pull request #89 from Fraxinus88/Love
Browse files Browse the repository at this point in the history
New Port LOVE
  • Loading branch information
kloptops authored Feb 13, 2024
2 parents 0ab85de + ddcbf49 commit 3016cdb
Show file tree
Hide file tree
Showing 11 changed files with 106 additions and 0 deletions.
46 changes: 46 additions & 0 deletions ports/love/LOVE.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/bin/bash
# PORTMASTER: love.zip, LOVE.sh

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
source $controlfolder/device_info.txt
get_controls
[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"

$ESUDO chmod 666 /dev/tty0

GAMEDIR="/$directory/ports/love"

export LD_LIBRARY_PATH="/usr/lib32:$GAMEDIR/libs:$GAMEDIR/utils/libs"
export GMLOADER_DEPTH_DISABLE=1
export GMLOADER_SAVEDIR="$GAMEDIR/gamedata/"

# We log the execution of the script into log.txt
exec > >(tee "$GAMEDIR/log.txt") 2>&1

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
[ -f "./gamedata/game.unx" ] && mv gamedata/game.unx gamedata/game.droid

# Make sure uinput is accessible so we can make use of the gptokeyb controls
$ESUDO chmod 666 /dev/uinput

$GPTOKEYB "gmloader" -c ./love.gptk &

$ESUDO chmod +x "$GAMEDIR/gmloader"

./gmloader love.apk

$ESUDO kill -9 $(pidof gptokeyb)
$ESUDO systemctl restart oga_events &
printf "\033c" > /dev/tty0
18 changes: 18 additions & 0 deletions ports/love/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Notes

Special thanks to Fred Wood [https://thatsmytrunks.itch.io/love] for making this game

Source: https://thatsmytrunks.itch.io/love

## Controls

| Button | Action |
|--|--|
|D-pad/L-stick|Movement|
|A|Jump|
|B/X|Set checkpoint|
|Y|Respawn|
|Select|Reset|
|Start|Pause/Menu|


Binary file added ports/love/love/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/love/love/gmloader
Binary file not shown.
Binary file added ports/love/love/libc++_shared.so
Binary file not shown.
Binary file added ports/love/love/libs/libcrypto.so.1.1
Binary file not shown.
Binary file added ports/love/love/libs/libzip.so.5
Binary file not shown.
Binary file added ports/love/love/love.apk
Binary file not shown.
17 changes: 17 additions & 0 deletions ports/love/love/love.gptk
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
back = \"
start = \"

up = up
down = down
left = left
right = right

left_analog_up = up
left_analog_down = down
left_analog_left = left
left_analog_right = right

a = \"
b = \"
x = \"
y = \"
25 changes: 25 additions & 0 deletions ports/love/port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": 2,
"name": "love.zip",
"items": [
"LOVE",
"love"
],
"items_opt": [],
"attr": {
"title": "LOVE by Fred Wood",
"porter": [
"Fraxinus88"
],
"desc": "LOVE is a short and addictively challenging platformer with a minimalist design. It has a custom respawn system, 16 levels, 12 track original soundtrack, competitive scoring, and multiple ways to play.\nThe difficult levels are balanced with the inclusion of a simple yet unique respawn system wherein the player can leave a checkpoint at any location at any point, as long as they are on solid ground.\nBeyond the visual aesthetic, the challenging level design, and the abundance of features, there is the fantastic soundtrack composed by James Bennett, which brings rich life to the seemingly simple three-color atmosphere.",
"inst": "Purchase and download LOVE (3.0.1, Linux) or (3.0.1, Windows) from https://thatsmytrunks.itch.io/love.\nCopy the files (game.unx/data.win, icon.png, love_love.csv, options.ini) from /assets into the /gamedata folder",
"genres": [
"platformer"
],
"image": null,
"rtr": false,
"exp": false,
"runtime": null,
"reqs": []
}
}
Binary file added ports/love/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 3016cdb

Please sign in to comment.