Skip to content

Commit

Permalink
Merge pull request #512 from JanTrueno/Curse-of-the-Arrow
Browse files Browse the repository at this point in the history
New Port: Curse of the Arrow
  • Loading branch information
Cebion authored Jul 8, 2024
2 parents b8924db + dcfe428 commit d7d25de
Show file tree
Hide file tree
Showing 95 changed files with 13,076 additions and 0 deletions.
41 changes: 41 additions & 0 deletions ports/curseofthearrow/Curse of the Arrow.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/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
source $controlfolder/device_info.txt

[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"

get_controls

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

mkdir -p "$GAMEDIR/conf"
cd $GAMEDIR

> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1

# Set the XDG environment variables for config & savefiles
export XDG_DATA_HOME="$CONFDIR"
export LD_LIBRARY_PATH="$GAMEDIR/libs:$LD_LIBRARY_PATH"
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"

$GPTOKEYB "love" &
./love gamedata

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

Huge thanks to [Egor Dorichev ](https://egordorichev.itch.io/) for creating this amazing game. On top of that he even made it open-source! Check out the original sourcecode [here](https://github.com/egordorichev/CurseOfTheArrow). If you like the game, I highly suggest supporting the dev by buying the incredible [OST](https://egordorichev.itch.io/curse-of-the-arrow) for example.

## Controls

| Button | Action |
|--|--|
|D-pad|Move|
|A|Jump|
|B |Action|
|Start|Menu|


Binary file added ports/curseofthearrow/cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
674 changes: 674 additions & 0 deletions ports/curseofthearrow/curseofthearrow/LICENSE.game.txt

Large diffs are not rendered by default.

Loading

0 comments on commit d7d25de

Please sign in to comment.