Skip to content

Commit

Permalink
Merge pull request #1008 from tabreturn/pixel-descent
Browse files Browse the repository at this point in the history
Pixel Descent
  • Loading branch information
Cebion authored Dec 5, 2024
2 parents 30a2576 + eeb3720 commit c4997d7
Show file tree
Hide file tree
Showing 22 changed files with 884 additions and 0 deletions.
56 changes: 56 additions & 0 deletions ports/pixeldescent/Pixel Descent.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#!/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/pixeldescent"

# CD and set permissions
cd $GAMEDIR
> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1
$ESUDO chmod +x $GAMEDIR/gmloadernext.aarch64
$ESUDO chmod +x $GAMEDIR/tools/splash

# Exports
export LD_LIBRARY_PATH="/usr/lib:$GAMEDIR/lib:$GAMEDIR/libs.aarch64:$LD_LIBRARY_PATH"
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"

# Pack audiogroups into apk
if [ -n "$(ls ./gamedata/*.dat 2>/dev/null)" ]; then
mkdir -p ./assets
mv ./gamedata/*.dat ./assets/ 2>/dev/null
pm_message "Moving .dat files from ./gamedata to ./assets/"
zip -r -0 ./voidbreach.port ./assets/
pm_message "Zipping contents to ./voidbreach.port"
rm -Rf ./assets/
pm_message "Packing audiogroups complete"
fi

# Prepare files
[ -f "./gamedata/data.win" ] && mv gamedata/data.win gamedata/game.droid
[ -f "./gamedata/*.exe" ] && rm -f ./gamedata/*.exe

# Display loading splash
$ESUDO ./tools/splash "splash.png" 2000 &

# Assign configs and load the game
$GPTOKEYB "gmloadernext.aarch64" -c "pixeldescent.gptk" &
pm_platform_helper "$GAMEDIR/gmloadernext.aarch64"
./gmloadernext.aarch64 -c gmloader.json

# Cleanup
pm_finish
21 changes: 21 additions & 0 deletions ports/pixeldescent/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## Notes

Thanks to [JC Bailey](https://jc-bailey.itch.io) for creating this great game, which you can purchase at [itch.io](https://jc-bailey.itch.io/pixel-descent)

Port tested using version: `PixelDescent.zip (V1.22)` -- *Oct 10, 2024*

**Note** that the game runs too slow on an RK3326 SoC. The framerate is also slower on H700/RK3566, but the game speed is close enough to play fine.

## Controls

| Button | Action |
| ------------- | ----------- |
| D-PAD/L-STICK | Movement |
| R-STICK | Aim |
| R2 | Attack |
| L2 | Alt Attack |
| A | Confirm |
| B | Cancel |
| X | Level up |
| Y | Key markers |
| START | Pause |
13 changes: 13 additions & 0 deletions ports/pixeldescent/gameinfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml verson="1.0" encoding="utf-8"?>
<gameList>
<game>
<path>./Pixel Descent.sh</path>
<name>Pixel Descent</name>
<desc>Pixel Descent is an action rogue-lite in which you navigate a series of complex dungeons packed to the brim with monsters that want you dead. Sign the contract and descend into the deepest depths of the abyss knowing full well that you will definitely die there, it's just a matter of when.</desc>
<releasedate>20230924T000000</releasedate>
<developer>JC Bailey</developer>
<publisher>Moonskull Games</publisher>
<genre>Roguelike</genre>
<image>./pixeldescent/screenshot.png</image>
</game>
</gameList>
Empty file.
7 changes: 7 additions & 0 deletions ports/pixeldescent/pixeldescent/gmloader.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"save_dir" : "gamedata",
"apk_path" : "pixeldescent.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.
Loading

0 comments on commit c4997d7

Please sign in to comment.