Skip to content

Commit

Permalink
Merge pull request #798 from tabreturn/super-skelemania
Browse files Browse the repository at this point in the history
Super Skelemania
  • Loading branch information
Cebion authored Oct 17, 2024
2 parents bd11218 + 0db3093 commit fcbd544
Show file tree
Hide file tree
Showing 13 changed files with 132 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ports/superskelemania/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Notes

Thanks to [Ben Allen](https://benal.itch.io) for creating this fantastic game, which you can purchase on [itch.io](https://benal.itch.io/super-skelemania) or [Steam](https://store.steampowered.com/app/730920/Super_Skelemania)


## Controls

| Button | Action |
| ------ | -------- |
| D-PAD | Movement |
| A | Jump |
| X | Attack |
| Select | Menu |
58 changes: 58 additions & 0 deletions ports/superskelemania/Super Skelemania.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#!/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
export PORT_32BIT="Y"
[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"
get_controls

GAMEDIR="/$directory/ports/superskelemania"

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

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

cd $GAMEDIR

# Check if there are .ogg files in ./gamedata
if [ -n "$(ls ./gamedata/*.ogg 2>/dev/null)" ]; then
# Move all .ogg files from ./gamedata to ./assets
mv ./gamedata/*.ogg ./assets/
echo "Moved .ogg files from ./gamedata to ./assets/"
# Zip the contents of ./sm.apk including the new .ogg files
zip -r -0 ./game.apk ./game.apk ./assets/
rm -f ./assets/*.ogg
echo "Zipped contents to ./game.apk"
# Delete uneeded files
rm -f ./gamedata/*.exe
rm -f ./gamedata/*.dll
rm -f ./gamedata/*.ini
fi

# 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

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

$ESUDO chmod +x "$GAMEDIR/gmloader"
pm_platform_helper "$GAMEDIR/gmloader"
./gmloader game.apk

pm_finish
14 changes: 14 additions & 0 deletions ports/superskelemania/gameinfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<gameList>
<game>
<path>./Super Skelemania.sh</path>
<name>Super Skelemania</name>
<desc>Dive into Super Skelemania, a single-sitting metroidvania about an acrobatic skeleton. Jump over a pit of thorns, roll your skull like a bowling ball, or headbutt a spider like any good skeleton would!</desc>
<releasedate>20171117T000000</releasedate>
<developer>Ben Allen</developer>
<publisher>Self-Published</publisher>
<genre>Action-Adventure-Platformer</genre>
<image>./superskelemania/screenshot.png</image>
</game>
</gameList>

30 changes: 30 additions & 0 deletions ports/superskelemania/port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"version": 3,
"name": "superskelemania.zip",
"items": [
"Super Skelemania.sh",
"superskelemania"
],
"items_opt": [],
"attr": {
"title": "Super Skelemania",
"porter": [
"tabreturn"
],
"desc": "Dive into Super Skelemania, a single-sitting metroidvania about an acrobatic skeleton. Jump over a pit of thorns, roll your skull like a bowling ball, or headbutt a spider like any good skeleton would!",
"desc_md": null,
"inst": "Purchase the game on itch.io (https://benal.itch.io/super-skelemania) or Steam (https://store.steampowered.com/app/730920/Super_Skelemania). For itch.io, extract the .exe as if it were a 7-zip archive (which it is) and copy all the games files into the port *gamedata* folder; for Steam, there's no need to extract the game files, just copy them to the *gamedata* folder.",
"inst_md": "Purchase the game on [itch.io](https://benal.itch.io/super-skelemania) or [Steam](https://store.steampowered.com/app/730920/Super_Skelemania). For itch.io, extract the .exe as if it were a 7-zip archive (which it is) and copy all the games files into the port *gamedata* folder; for Steam, there's no need to extract the game files, just copy them to the *gamedata* folder.",
"genres": [
"platformer"
],
"image": null,
"rtr": false,
"exp": false,
"runtime": null,
"reqs": [],
"arch": [
"armhf"
]
}
}
Binary file added ports/superskelemania/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Binary file added ports/superskelemania/superskelemania/game.apk
Binary file not shown.
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/superskelemania/superskelemania/gmloader
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
17 changes: 17 additions & 0 deletions ports/superskelemania/superskelemania/superskelemania.gptk
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
back = \"
start = \"

up = \"
down = \"
left = \"
right = \"

left_analog_up = \"
left_analog_down = \"
left_analog_left = \"
left_analog_right = \"

a = \"
b = \"
x = \"
y = \"

0 comments on commit fcbd544

Please sign in to comment.