-
-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from Cebion/starvsthegame
New Port: Star vs the Game
- Loading branch information
Showing
16 changed files
with
141 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## Notes | ||
Thanks to Rian for creating this game and making it available for free! | ||
https://rian-shinozaki.itch.io/star-vs-the-game | ||
|
||
## Controls | ||
|
||
|Button| Action | | ||
|--|--| | ||
| d-pad/l-stick| movement | | ||
| r-stick| aim | | ||
| a| melee | | ||
| b/l1| dodge | | ||
| x/r1| shoot | | ||
| y| swap player | | ||
| start| pause/menu | | ||
| l2/r2| jump (platforming mode) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
#!/bin/bash | ||
# Below we assign the source of the control folder (which is the PortMaster folder) based on the distro: | ||
if [ -d "/opt/system/Tools/PortMaster/" ]; then | ||
controlfolder="/opt/system/Tools/PortMaster" | ||
elif [ -d "/opt/tools/PortMaster/" ]; then | ||
controlfolder="/opt/tools/PortMaster" | ||
else | ||
controlfolder="/roms/ports/PortMaster" | ||
fi | ||
|
||
# We source the control.txt file contents here | ||
# The $ESUDO, $directory, $param_device and necessary | ||
# Sdl configuration controller configurations will be sourced from the control.txt | ||
source $controlfolder/control.txt | ||
|
||
# We pull the controller configs from the get_controls function from the control.txt file here | ||
get_controls | ||
|
||
$ESUDO chmod 666 /dev/tty0 | ||
|
||
# We check on emuelec based CFWs the OS_NAME | ||
[ -f "/etc/os-release" ] && source "/etc/os-release" | ||
|
||
if [ "$OS_NAME" == "JELOS" ]; then | ||
export SPA_PLUGIN_DIR="/usr/lib32/spa-0.2" | ||
export PIPEWIRE_MODULE_DIR="/usr/lib32/pipewire-0.3/" | ||
fi | ||
|
||
GAMEDIR=/$directory/ports/starvsthegame | ||
|
||
# We log the execution of the script into log.txt | ||
exec > >(tee "$GAMEDIR/log.txt") 2>&1 | ||
|
||
# Port specific additional libraries should be included within the port's directory in a separate subfolder named libs. | ||
# Prioritize the armhf libs to avoid conflicts with aarch64 | ||
export LD_LIBRARY_PATH="/usr/lib32:$GAMEDIR/libs:$GAMEDIR/utils/libs" | ||
export GMLOADER_DEPTH_DISABLE=1 | ||
export GMLOADER_SAVEDIR="$GAMEDIR/gamedata/" | ||
|
||
cd $GAMEDIR | ||
|
||
# If "gamedata/data.win" exists and its size is 45,445,040 bytes, apply the xdelta3 patch | ||
if [ -f "./gamedata/data.win" ]; then | ||
file_size=$(ls -l "./gamedata/data.win" | awk '{print $5}') | ||
if [ "$file_size" -eq 45445040 ]; then | ||
$ESUDO ./utils/xdelta3 -d -s gamedata/data.win -f ./patch.xdelta gamedata/data.win | ||
fi | ||
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 | ||
|
||
# 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 ./starvsthegame.apk including the new .ogg files | ||
zip -r ./starvsthegame.apk ./starvsthegame.apk ./assets/ | ||
echo "Zipped contents to ./starvsthegame.apk" | ||
fi | ||
|
||
# Make sure uinput is accessible so we can make use of the gptokeyb controls | ||
$ESUDO chmod 666 /dev/uinput | ||
|
||
$GPTOKEYB "gmloader" -c ./starvsthegame.gptk & | ||
|
||
$ESUDO chmod +x "$GAMEDIR/gmloader" | ||
|
||
./gmloader starvsthegame.apk | ||
|
||
$ESUDO kill -9 $(pidof gptokeyb) | ||
$ESUDO systemctl restart oga_events & | ||
printf "\033c" > /dev/tty0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"version": 2, | ||
"name": "starvsthegame.zip", | ||
"items": [ | ||
"Star vs the Game.sh", | ||
"starvsthegame" | ||
], | ||
"items_opt": null, | ||
"attr": { | ||
"title": "Star vs. the Game", | ||
"porter": [ | ||
"mattyj513" | ||
], | ||
"desc": "Star vs. the Game is a cross between top-down beat-em up action and 2D platforming. Play as both Star and Marco and fight against a threat from beyond reality! The game features 7 levels with four bosses, as well as some extra content once the game is beaten. ", | ||
"inst": "Download game from https://rian-shinozaki.itch.io/star-vs-the-game , copy data.win, audiogroup1.dat and all .ogg files to /ports/starvsthegame/gamedata", | ||
"genres": [ | ||
"adventure" | ||
], | ||
"image": null, | ||
"rtr": false, | ||
"runtime": null, | ||
"reqs": [] | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
back = esc | ||
start = enter | ||
a = space | ||
b = shift | ||
x = mouse_left | ||
y = tab | ||
l1 = shift | ||
l2 = w | ||
r1 = mouse_left | ||
r2 = w | ||
up = w | ||
down = s | ||
left = a | ||
right = d | ||
left_analog_up = w | ||
left_analog_down = s | ||
left_analog_left = a | ||
left_analog_right = d | ||
right_analog_up = mouse_movement_up | ||
right_analog_down = mouse_movement_down | ||
right_analog_left = mouse_movement_left | ||
right_analog_right = mouse_movement_right | ||
deadzone_triggers = 3000 | ||
mouse_scale = 3000 | ||
mouse_delay = 8 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.