Skip to content

Commit

Permalink
Merge pull request #937 from Cebion/ngfillets
Browse files Browse the repository at this point in the history
New Port: Fish Fillets NG
  • Loading branch information
JanTrueno authored Nov 15, 2024
2 parents 5cd214e + 8742633 commit 7cbff1c
Show file tree
Hide file tree
Showing 30 changed files with 1,547 additions and 0 deletions.
39 changes: 39 additions & 0 deletions ports/fishfillets/Fish Fillets NG.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash

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

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

get_controls

GAMEDIR=/$directory/ports/fishfillets
CONFDIR="$GAMEDIR/conf"
BINARY=fillets

> "$GAMEDIR/log.txt" && exec > >(tee "$GAMEDIR/log.txt") 2>&1

mkdir -p "$GAMEDIR/conf"

export LD_LIBRARY_PATH="$GAMEDIR/libs.${DEVICE_ARCH}:$LD_LIBRARY_PATH"
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"

bind_directories ~/.fillets-ng $GAMEDIR/conf/.fillets-ng

cd $GAMEDIR

$GPTOKEYB "$BINARY" -c ./$BINARY.gptk &
pm_platform_helper "$GAMEDIR/$BINARY"
./$BINARY systemdir=data fullscreen=on userdir=conf
pm_finish
22 changes: 22 additions & 0 deletions ports/fishfillets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Thanks
Thanks to the [Fish Fillets Team](https://fillets.sourceforge.net/) for making this game and making it available for free.

## Controls

| Button | Action |
|--|--|
|DPAD| Move Fish|
|Analogue Sticks| Mouse Movement|
|Y| Switch CharactersMouse Left|
|A/B| Mouse Left / Mouse Right|
|X| Slow Down Mouse (hold)

## Building

```
dget -u http://deb.debian.org/debian/pool/main/f/fillets-ng/fillets-ng_1.0.1-5.dsc
cd fillets-ng-1.0.1
CPPFLAGS="-I/usr/include/lua5.1" ./configure --build=aarch64-unknown-linux-gnu --with-lua=/usr LUA_CFLAGS="-I/usr/include/lua5.1" LUA_LIBS="-llua5.1"
patch -p3 < cursor.patch
make
```
Empty file.
Binary file added ports/fishfillets/fishfillets/data.tar.gz
Binary file not shown.
Binary file added ports/fishfillets/fishfillets/fillets
Binary file not shown.
34 changes: 34 additions & 0 deletions ports/fishfillets/fishfillets/fillets.gptk
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
back = esc
start = enter

a = mouse_left
b = mouse_right
x = mouse_slow
y = space

l1 = \"
l2 = \"
r1 = backspace
r2 = \"

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

left_analog_up = mouse_movement_up
left_analog_down = mouse_movement_down
left_analog_left = mouse_movement_left
left_analog_right = mouse_movement_right

right_analog_up = \"
right_analog_down = \"
right_analog_left = \"
right_analog_right = \"

deadzone_mode = scaled_radial
deadzone = 2000
deadzone_scale = 8
deadzone_delay = 16
mouse_scale = 512
mouse_delay = 16
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.
17 changes: 17 additions & 0 deletions ports/fishfillets/fishfillets/licenses/LICENSE_SDL_ttf.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Copyright (C) 1997-2024 Sam Lantinga <[email protected]>

This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.

Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
Loading

0 comments on commit 7cbff1c

Please sign in to comment.