Skip to content

Commit 133a693

Browse files
authored
Merge pull request #1397 from Ganimoth/firework
New port: FIREWORK
2 parents 8bb5f0c + e93baf2 commit 133a693

21 files changed

+883
-0
lines changed

ports/firework/FIREWORK.sh

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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/firework"
21+
GMLOADER_JSON="$GAMEDIR/gmloader.json"
22+
23+
# CD and set permissions
24+
cd $GAMEDIR
25+
> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1
26+
27+
# Exports
28+
export LD_LIBRARY_PATH="/usr/lib:$GAMEDIR/lib:$GAMEDIR/lib:$LD_LIBRARY_PATH"
29+
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"
30+
$ESUDO chmod +x $GAMEDIR/gmloadernext.aarch64
31+
32+
# Prepare game files
33+
if [ -f "$GAMEDIR/assets/data.win" ]; then
34+
# Rename data.win
35+
mv assets/data.win assets/game.droid
36+
37+
# Delete no longer needed files
38+
rm -f assets/*.{exe,txt,dll}
39+
40+
# Zip the assets folder into firework.port
41+
zip -r -0 ./firework.port ./assets/
42+
43+
# Remove the assets folder
44+
rm -Rf ./assets/
45+
fi
46+
47+
# Assign configs and load the game
48+
$GPTOKEYB "gmloadernext.aarch64" -c "firework.gptk" &
49+
pm_platform_helper "$GAMEDIR/gmloadernext.aarch64"
50+
./gmloadernext.aarch64 -c "$GMLOADER_JSON"
51+
52+
# Cleanup
53+
pm_finish

ports/firework/README.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## Notes
2+
3+
Thankts to **Ivan Zanotti's MyMadnessWorks** for developing this game, check it on [Steam](https://store.steampowered.com/app/974870/FIREWORK/)
4+
5+
## Controls
6+
7+
| Button | Action |
8+
|--|--|
9+
|DPAD / Left stick|Movement|
10+
|A|Jump / Menu Confirm|
11+
|B|Back in menu|
12+
|X|Shoot|
13+
|L1|Dash|
14+
|L2 / R2 |Change weapon|
15+
|Start|Pause menu|
16+
17+

ports/firework/firework/assets/place all game files here.txt

Whitespace-only changes.

ports/firework/firework/firework.gptk

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
back = \"
2+
start = \"
3+
4+
a = \"
5+
b = \"
6+
x = \"
7+
y = \"
8+
9+
r1 = \"
10+
l1 = \"
11+
r2 = \"
12+
l2 = \"
13+
14+
15+
up = \"
16+
down = \"
17+
left = \"
18+
right = \"
19+
left_analog_up = \"
20+
left_analog_down = \"
21+
left_analog_left = \"
22+
left_analog_right = \"
23+
24+
right_analog_up = \"
25+
right_analog_down = \"
26+
right_analog_left = \"
27+
right_analog_right = \"

ports/firework/firework/firework.port

9.48 MB
Binary file not shown.

ports/firework/firework/gmloader.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"save_dir" : "save",
3+
"apk_path" : "firework.port",
4+
"show_cursor" : false,
5+
"disable_controller" : false,
6+
"disable_depth" : false,
7+
"force_platform" : "os_linux"
8+
}
823 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
224 KB
Binary file not shown.
2.61 MB
Binary file not shown.
1.09 MB
Binary file not shown.
119 KB
Binary file not shown.

0 commit comments

Comments
 (0)