Skip to content

Commit

Permalink
Merge pull request #129 from Cebion/fightorperish
Browse files Browse the repository at this point in the history
New Port: Fight or Perish
  • Loading branch information
Cebion authored Feb 26, 2024
2 parents cb2a39e + e805c17 commit 5f4fdf2
Show file tree
Hide file tree
Showing 76 changed files with 781 additions and 0 deletions.
35 changes: 35 additions & 0 deletions ports/fightorperish/Fight or Perish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash
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

GAMEDIR=/$directory/ports/fightorperish
CONFDIR="$GAMEDIR/conf/"

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

cd $GAMEDIR

mkdir -p "$GAMEDIR/conf"

export XDG_DATA_HOME="$CONFDIR"

export LD_LIBRARY_PATH="$GAMEDIR/libs:$LD_LIBRARY_PATH"
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"

#export TEXTINPUTINTERACTIVE="Y"

$GPTOKEYB "fightorperish" -c "./fightorperish.gptk" &
./fightorperish
$ESUDO kill -9 $(pidof gptokeyb)
$ESUDO systemctl restart oga_events &
printf "\033c" > /dev/tty1
21 changes: 21 additions & 0 deletions ports/fightorperish/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## Notes
Thanks to [Dennis Payne](https://gitlab.com/dulsi/fop) for creating Fight or Perish and making it available for free!

## Controls

| Button | Action |
|--|--|
|Left Analogue| Move|
|Dpad| Move|
|A| Shoot|


## Compile

```shell
git clone https://gitlab.com/dulsi/fop.git
cd fop
mkdir build && cd build
cmake ..
make
```
58 changes: 58 additions & 0 deletions ports/fightorperish/fightorperish/conf/fightorperish/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
FULLSCREEN = 1
JOYDEADZONE = 5000
P1_DOWN = KEY_1073741905
P1_DOWN = JOY_BTN12
P1_UP = KEY_1073741906
P1_UP = JOY_BTN11
P1_LEFT = KEY_1073741904
P1_LEFT = JOY_BTN13
P1_RIGHT = KEY_1073741903
P1_RIGHT = JOY_BTN14
P1_FIRE = KEY_1073742052
P1_FIRE = JOY_BTN0
P1_BOMB = KEY_47
P1_BOMB = JOY_BTN1
P1_START = KEY_49
P1_START = JOY_BTN6
P2_DOWN = KEY_115
P2_DOWN = JOY_BTN12
P2_UP = KEY_119
P2_UP = JOY_BTN11
P2_LEFT = KEY_97
P2_LEFT = JOY_BTN13
P2_RIGHT = KEY_100
P2_RIGHT = JOY_BTN14
P2_FIRE = KEY_113
P2_FIRE = JOY_BTN0
P2_BOMB = KEY_101
P2_BOMB = JOY_BTN1
P2_START = KEY_50
P2_START = JOY_BTN6
P3_DOWN = KEY_1073741914
P3_DOWN = JOY_BTN12
P3_UP = KEY_1073741920
P3_UP = JOY_BTN11
P3_LEFT = KEY_1073741916
P3_LEFT = JOY_BTN13
P3_RIGHT = KEY_1073741918
P3_RIGHT = JOY_BTN14
P3_FIRE = KEY_1073741922
P3_FIRE = JOY_BTN0
P3_BOMB = KEY_1073741911
P3_BOMB = JOY_BTN1
P3_START = KEY_51
P3_START = JOY_BTN6
P4_DOWN = KEY_103
P4_DOWN = JOY_BTN12
P4_UP = KEY_116
P4_UP = JOY_BTN11
P4_LEFT = KEY_102
P4_LEFT = JOY_BTN13
P4_RIGHT = KEY_104
P4_RIGHT = JOY_BTN14
P4_FIRE = KEY_114
P4_FIRE = JOY_BTN0
P4_BOMB = KEY_121
P4_BOMB = JOY_BTN1
P4_START = KEY_52
P4_START = JOY_BTN6
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
61 changes: 61 additions & 0 deletions ports/fightorperish/fightorperish/data/maps/0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
3
1
40
23
########################################
########################################
########################################
########################################
# k = = %#
# 56 = A = #
# 78 = A # #
# = # #
# = # #
# = # #
# $ = k# #
###########################====#########
#$kb # # #
#$ # # #
# # # # #
# # #
# # 1#
#===####################################
# # # #
#1 1 # # % #
# 1 # #
# # 1 $$#
########################################
33
3 0 0 120
3 0 0 30
1 11 9 0
5 12 9 1
1 11 10 0
1 11 5 0
5 12 4 2
1 11 4 0
1 17 4 0
1 19 5 0
2 20 5 20
1 22 5 0
1 32 10 0
5 31 13 3
1 28 16 0
2 29 16 20
2 28 15 20
2 29 15 20
1 17 16 0
1 15 12 0
1 10 16 0
1 4 12 0
5 3 13 4
1 1 12 0
1 1 15 0
4 0 0 0
1 13 20 0
1 16 18 0
1 19 21 0
2 20 20 20
2 20 21 50
1 27 21 0
1 35 19 0
19 changes: 19 additions & 0 deletions ports/fightorperish/fightorperish/data/maps/1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
0
0
20
15
####################
# #
# #
#5 6 #
# 7 8 k #
##==################
# # #$B #
# # #$B #
# # ### #### #
# A # %# # #
# A ###### # ####
# A # #
# A #### #
# #
####################
24 changes: 24 additions & 0 deletions ports/fightorperish/fightorperish/data/maps/2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
0
0
20
20
####################
# B #
# #
# ############ #
# # # #
# # # #
# A# ###### # #
# # #ffff# # #
# # # 5 # # #
# # # 6 # # A#
# # # 7 # # #
# # # 8 # # #
# # # # #
# ######### # #
# # #
# # #
############### #
# $A$A$A$A$A$ #
# $$A$A$A$A$$ % #
####################
34 changes: 34 additions & 0 deletions ports/fightorperish/fightorperish/data/maps/3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
0
0
40
30
########################################
#56 # 11 # 1$#
#78 # # #
# # # #
# # # #
# #
# # # 2#
##### # # #####
#$ # # $#
# # # #
# # # #
# ####### ###### #
# #
# #
#2 C C 2#
#$ $#
#f C C f#
# #
# ####### ###### #
# # # #
# # # #
#$ # # $#
##### # # #####
#1 # # 3 #
# #
# # #3 #
# # # #
# # # #
#% 1# 11 # k#
########################################
34 changes: 34 additions & 0 deletions ports/fightorperish/fightorperish/data/maps/4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
3
0
40
30
########################################
#56 k#
#78 # #
# # # 2 #
# 1 # #
# # #
# # # #
# # # 1 #
# #
# # $# #
# # # #
# 1 # #
# $$ # #
# # # ### #
# 1 #3 # #
# # # # ###
# $# #
# # # #
# # 1 # #
# # # 2 $#
# # $#
#$ # 1 #
#$ # # #
# 1 #
# # # ########
# # 2 # #
# # # # ##==#
# 2 # = # #
#k $#$ = # %#
########################################
34 changes: 34 additions & 0 deletions ports/fightorperish/fightorperish/data/maps/5.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
3
0
40
30
########################################
#$$ = DD # 2ff#
#b$ = # k#
# 2 = # $#
# = ## #
# # #M # #
# # # ####### #
# ########M# # # #
# # # # #
# # # # #
# ###====### ########
######### # # # #
# 1 # 56 # # #
# # 78 # # # #
# #k # # 2# # #
# ############====### # # #
# # # # # #
#1 # # # # #
######### # # # # #
# M# #M # #1%#
# # DD # # ####
# # ## # #
# # # # # #
# # # # #
#1 # # 22 # ####===#
#1 # #$ $# # #
#M # # kk # # M #
# # #$$ #
# # #$$b #
########################################
34 changes: 34 additions & 0 deletions ports/fightorperish/fightorperish/data/maps/6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
3
0
40
30
########################################
#k C # k#
# # # # # #
# # # # 2 #
# # #1 1# #
# ######## # # #
# # # #
# # # #
# # # 2#
########## # # ##########
# # # # # 3#
# # 1 1 # = $#
# 56 # # = $#
##### # # = #####
# 78 # BB BB # = %#
# # # = #
# # # # # #
########## # # ##########
# # # #
# # ## # #
# #2 N## #2 #
# ######## ## ######## #
# #? $$ ?# ## #? $$ k# #
# # # ## # # #
# # # ## #3 # #
# #======= ## =======# #
# = ## = #
# = ## = #
#1 = 1M ## 22 = $$$ M#
########################################
34 changes: 34 additions & 0 deletions ports/fightorperish/fightorperish/data/maps/7.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
3
0
40
30
########################################
# 2 k#
# 1 #===# #
# 1 # # #
# 1 1 1# # #
# ######## # # 2#
# ################ # #
# %# $# # #
# #k f# #ff #
################### ####### ##### #
# #? b # ! # #
# # ! # # #
# 6 5 #==============# # 3#
# # #####
# # #
# 8 7 #==============##### #
# # ! # 1 #
# #? b # #
# ############### ####### #
# 2#k $# #
# # $#2 #
# ############################## #
# #? ff ?# #? $$ k# #
# # # # # #
# #M # #3 # #
# # ## # #
# ## #
# ## #
#1 22 ## 22 $$$ M#
########################################
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.
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.
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.
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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added ports/fightorperish/fightorperish/fightorperish
Binary file not shown.
Loading

0 comments on commit 5f4fdf2

Please sign in to comment.