Skip to content

Commit

Permalink
actual commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian2809 committed Oct 25, 2024
1 parent 94e2bb2 commit 6815521
Show file tree
Hide file tree
Showing 13 changed files with 129 additions and 0 deletions.
56 changes: 56 additions & 0 deletions FNAF NES.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
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
source $controlfolder/device_info.txt
export PORT_32BIT="Y"

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

$ESUDO chmod 666 /dev/tty0

GAMEDIR="/$directory/ports/fnafnes"

export LD_LIBRARY_PATH="/usr/lib32:$GAMEDIR/libs"
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
exec > >(tee "$GAMEDIR/log.txt") 2>&1

cd $GAMEDIR

if [ -f "${controlfolder}/libgl_${CFWNAME}.txt" ]; then
source "${controlfolder}/libgl_${CFW_NAME}.txt"
else
source "${controlfolder}/libgl_default.txt"
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

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

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

$ESUDO chmod +x "$GAMEDIR/gmloader"

./gmloader fnafnes.apk

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

Thanks to Scott Cawthon for making Fnaf
Thanks to [Tai5_5](https://tai5-5.itch.io/fnafnes) for making this demake of fnaf

## Controls

| Button | Action |
|--|--|
|Lstick/Dpad|Movement|
|A|Closing/Opening Door|
|B|Light On/Off|


Binary file added fnafnes/cover.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 fnafnes/fnafnes.apk
Binary file not shown.
17 changes: 17 additions & 0 deletions fnafnes/fnafnes.gptk
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
back = esc
start = enter

up = up
down = down
left = left
right = right

left_analog_up = up
left_analog_down = down
left_analog_left = left
left_analog_right = right

a = a
b = s
x = \"
y = \"
Binary file added fnafnes/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.
12 changes: 12 additions & 0 deletions fnafnes/gameinfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<gameList>
<game>
<path>./FNAF NES.sh</path>
<name>FNAF NES STYLED</name>
<desc>In FNAF NES STYLED, you play as a night security guard at Freddy Fazbear’s Pizza. Your main goal is to survive five nights while being stalked by animatronic characters that come to life at night. You monitor security cameras to track their movements and use limited resources like door controls and lights to protect yourself from being caught. The game is a mix of strategy and horror, requiring you to manage your resources carefully and stay alert to avoid the animatronics.
</desc>
<developer>Tai5_5 and Scott_Cawthon</developer>
<genre>Horror</genre>
<image>./fnafnes/cover.png</image>
</game>
</gameList>
Binary file added fnafnes/gmloader
Binary file not shown.
Binary file added fnafnes/libc++_shared.so
Binary file not shown.
Binary file added fnafnes/libs/libcrypto.so.1.1
Binary file not shown.
Binary file added fnafnes/libs/libzip.so.5
Binary file not shown.
30 changes: 30 additions & 0 deletions fnafnes/port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"version": 3,
"name": "fnafnes.zip",
"items": [
"FNAF NES.sh",
"fnafnes"
],
"items_opt": [],
"attr": {
"title": "FNAF NES STYLED",
"porter": [
"Damian2809"
],
"desc": "In FNAF NES STYLED, you play as a night security guard at Freddy Fazbear’s Pizza. Your main goal is to survive five nights while being stalked by animatronic characters that come to life at night. You monitor security cameras to track their movements and use limited resources like door controls and lights to protect yourself from being caught. The game is a mix of strategy and horror, requiring you to manage your resources carefully and stay alert to avoid the animatronics.",
"desc_md": null,
"inst": "Download the game from https://tai5-5.itch.io/fnafnes then put the data.win into fnafnes/gamedata",
"inst_md": null,
"genres": [
"other"
],
"image": null,
"rtr": false,
"exp": false,
"runtime": null,
"reqs": [],
"arch": [
"armhf"
],
}
}
Binary file added fnafnes/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6815521

Please sign in to comment.