Skip to content

Commit 5817422

Browse files
authored
Merge pull request #1309 from Ganimoth/draculatower
New port: Dracula's Tower
2 parents 052a66f + 83830d4 commit 5817422

21 files changed

+878
-0
lines changed

ports/draculatower/Dracula's Tower.sh

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#!/bin/bash
2+
3+
XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share}
4+
5+
if [ -d "/opt/system/Tools/PortMaster/" ]; then
6+
controlfolder="/opt/system/Tools/PortMaster"
7+
elif [ -d "/opt/tools/PortMaster/" ]; then
8+
controlfolder="/opt/tools/PortMaster"
9+
elif [ -d "$XDG_DATA_HOME/PortMaster/" ]; then
10+
controlfolder="$XDG_DATA_HOME/PortMaster"
11+
else
12+
controlfolder="/roms/ports/PortMaster"
13+
fi
14+
15+
source $controlfolder/control.txt
16+
[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"
17+
get_controls
18+
19+
# Variables
20+
GAMEDIR="/$directory/ports/draculatower"
21+
GMLOADER_JSON="$GAMEDIR/gmloader.json"
22+
TOOLDIR="$GAMEDIR/tools"
23+
24+
# CD and set permissions
25+
cd $GAMEDIR
26+
> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1
27+
28+
# Exports
29+
export LD_LIBRARY_PATH="/usr/lib:$GAMEDIR/lib:$GAMEDIR/lib:$LD_LIBRARY_PATH"
30+
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"
31+
$ESUDO chmod +x $GAMEDIR/gmloadernext.${DEVICE_ARCH}
32+
33+
# Prepare game files
34+
if [ -f "$GAMEDIR/assets/DRACULAS_TOWER_V2_itchio.zip" ]; then
35+
# Unzip necessary files
36+
unzip -o ./assets/DRACULAS_TOWER_V2_itchio.zip -x *.exe -d assets
37+
38+
# Rename data.win
39+
mv assets/data.win assets/game.droid
40+
41+
# Delete no longer needed files and folders
42+
rm -f assets/*.{zip,txt}
43+
44+
# Zip the assets folder into draculatower.port
45+
zip -r -0 ./draculatower.port ./assets/
46+
47+
# Zip the assets folder into draculatower.port
48+
rm -Rf ./assets/
49+
fi
50+
51+
# Assign configs and load the game
52+
$GPTOKEYB "gmloadernext.aarch64" -c "draculatower.gptk" &
53+
pm_platform_helper "$GAMEDIR/gmloadernext.aarch64"
54+
./gmloadernext.aarch64 -c "$GMLOADER_JSON"
55+
56+
# Cleanup
57+
pm_finish

ports/draculatower/README.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
## Notes
2+
3+
Thanks to Yal for developing the game, check it out on [Itch](https://yaru.itch.io/draculas-tower).
4+
5+
## Controls
6+
7+
| Button | Action |
8+
|--|--|
9+
|DPAD / Left stick|Movement|
10+
|A|Jump|
11+
|B|Attack|
12+
|Start|Start|
13+
14+

ports/draculatower/draculatower/assets/place_DRACULAS_TOWER_V2_itchio.zip_here.txt

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
back = \"
2+
start = enter
3+
4+
a = z
5+
b = x
6+
x = \"
7+
y = \"
8+
9+
r1 = \"
10+
l1 = \"
11+
r2 = \"
12+
l2 = \"
13+
14+
15+
up = up
16+
down = down
17+
left = left
18+
right = right
19+
left_analog_up = up
20+
left_analog_down = down
21+
left_analog_left = left
22+
left_analog_right = right
23+
24+
right_analog_up = \"
25+
right_analog_down = \"
26+
right_analog_left = \"
27+
right_analog_right = \"
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"save_dir" : "save",
3+
"apk_path" : "draculatower.port",
4+
"show_cursor" : false,
5+
"disable_controller" : false,
6+
"force_platform" : "os_windows"
7+
}
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.

0 commit comments

Comments
 (0)