Skip to content

Commit

Permalink
Merge pull request #137 from Fraxinus88/pingo
Browse files Browse the repository at this point in the history
Pingo
  • Loading branch information
kloptops authored Mar 2, 2024
2 parents 68eb2b7 + f8b178a commit 4207a20
Show file tree
Hide file tree
Showing 16 changed files with 1,986 additions and 0 deletions.
46 changes: 46 additions & 0 deletions ports/pingo/Pingo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/bin/bash
# PORTMASTER: pingo.zip, Pingo.sh

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

source $controlfolder/control.txt
source $controlfolder/device_info.txt
get_controls
[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"

$ESUDO chmod 666 /dev/tty0

GAMEDIR="/$directory/ports/pingo"

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

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

cd $GAMEDIR

# 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

# Make sure uinput is accessible so we can make use of the gptokeyb controls
$ESUDO chmod 666 /dev/uinput

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

$ESUDO chmod +x "$GAMEDIR/gmloader"

./gmloader pingo.apk

$ESUDO kill -9 $(pidof gptokeyb)
$ESUDO systemctl restart oga_events &
printf "\033c" > /dev/tty0
18 changes: 18 additions & 0 deletions ports/pingo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Notes

Special thanks to [Grzybojad](https://github.com/Grzybojad/Pingo) for the original game for the PS Vita. Thanks to [JumboCube](https://twitter.com/Jumbocube1) for the art!

Also, special thanks to [nkrapivindev](https://nkrapivindev.itch.io/) for rewriting this game into GameMaker and for allowing the distribution of the game via Portmaster.



## Controls

| Button | Action |
|--|--|
|D-pad/L-stick|Movement|
|A|Select/Confirm|
|B|Back|
|Start|Pause/Menu|


674 changes: 674 additions & 0 deletions ports/pingo/pingo/LICENSE.Pingo-GMS2.txt

Large diffs are not rendered by default.

674 changes: 674 additions & 0 deletions ports/pingo/pingo/LICENSE.Pingo.txt

Large diffs are not rendered by default.

125 changes: 125 additions & 0 deletions ports/pingo/pingo/gamedata/default/Pingo.sav
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
[World2Stars]
30="0.000000"
29="0.000000"
28="0.000000"
27="0.000000"
26="0.000000"
25="0.000000"
24="0.000000"
23="0.000000"
22="0.000000"
21="0.000000"
20="0.000000"
19="0.000000"
18="0.000000"
17="0.000000"
16="0.000000"
15="0.000000"
14="0.000000"
13="0.000000"
12="0.000000"
11="0.000000"
10="0.000000"
9="0.000000"
8="0.000000"
7="0.000000"
6="0.000000"
5="0.000000"
4="0.000000"
3="0.000000"
2="0.000000"
1="0.000000"
[World1Stars]
30="0.000000"
29="0.000000"
28="0.000000"
27="0.000000"
26="0.000000"
25="0.000000"
24="0.000000"
23="0.000000"
22="0.000000"
21="0.000000"
20="0.000000"
19="0.000000"
18="0.000000"
17="0.000000"
16="0.000000"
15="0.000000"
14="0.000000"
13="0.000000"
12="0.000000"
11="0.000000"
10="0.000000"
9="0.000000"
8="0.000000"
7="0.000000"
6="0.000000"
5="0.000000"
4="0.000000"
3="0.000000"
2="0.000000"
1="0.000000"
[World2Unlocked]
30="0.000000"
29="0.000000"
28="0.000000"
27="0.000000"
26="0.000000"
25="0.000000"
24="0.000000"
23="0.000000"
22="0.000000"
21="0.000000"
20="0.000000"
19="0.000000"
18="0.000000"
17="0.000000"
16="0.000000"
15="0.000000"
14="0.000000"
13="0.000000"
12="0.000000"
11="0.000000"
10="0.000000"
9="0.000000"
8="0.000000"
7="0.000000"
6="0.000000"
5="0.000000"
4="0.000000"
3="0.000000"
2="0.000000"
1="1.000000"
[World1Unlocked]
30="0.000000"
29="0.000000"
28="0.000000"
27="0.000000"
26="0.000000"
25="0.000000"
24="0.000000"
23="0.000000"
22="0.000000"
21="0.000000"
20="0.000000"
19="0.000000"
18="0.000000"
17="0.000000"
16="0.000000"
15="0.000000"
14="0.000000"
13="0.000000"
12="0.000000"
11="0.000000"
10="0.000000"
9="0.000000"
8="0.000000"
7="0.000000"
6="0.000000"
5="0.000000"
4="0.000000"
3="0.000000"
2="0.000000"
1="0.000000"

6 changes: 6 additions & 0 deletions ports/pingo/pingo/gamedata/options.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[Linux]
DisplayName="Pingo"
NewDebugger=0
AppId="0"
Icon="icon.png"
Splash="splash.png"
Binary file added ports/pingo/pingo/gamedata/splash.png
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/pingo/pingo/gmloader
Binary file not shown.
Binary file added ports/pingo/pingo/libc++_shared.so
Binary file not shown.
Binary file added ports/pingo/pingo/libs/libcrypto.so.1.1
Binary file not shown.
Binary file added ports/pingo/pingo/libs/libzip.so.5
Binary file not shown.
Loading

0 comments on commit 4207a20

Please sign in to comment.