Skip to content

Commit

Permalink
Merge pull request #666 from scemino/main
Browse files Browse the repository at this point in the history
New Port: Biolab Disaster
  • Loading branch information
Cebion authored Sep 17, 2024
2 parents ef47d8e + b3e5916 commit 66b50b1
Show file tree
Hide file tree
Showing 53 changed files with 1,865 additions and 0 deletions.
35 changes: 35 additions & 0 deletions ports/biolab/Biolab Disaster.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/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
source $controlfolder/device_info.txt
[ -f "${controlfolder}/mod_${CFW_NAME}.txt" ] && source "${controlfolder}/mod_${CFW_NAME}.txt"

get_controls

GAMEDIR="/$directory/ports/biolab"
cd $GAMEDIR

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

$ESUDO chmod 666 /dev/tty1

export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"

$GPTOKEYB "zbiolab" &
./zbiolab

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

Thanks to [Dominic Szablewski](https://github.com/phoboslab/) for creating this awesome game.

## Controls

| Button | Action |
|--|--|
|DPAD|Move|
|A|Shoot|
|B|Jump|


## Compile

```shell
git clone https://github.com/scemino/z_biolab.git
zig build run -Dtarget=aarch64-linux-gnu.2.17.0 -Dplatform=sdl_soft -Doptimize=ReleaseFast
```
1 change: 1 addition & 0 deletions ports/biolab/biolab/assets/font_04b03.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"height":12,"first_char":32,"last_char":127,"metrics":[0,0,1,1,-10,-8,4,2,0,1,5,0,1,2,4,0,3,2,0,1,4,8,0,5,5,0,1,6,14,0,4,6,0,1,5,19,0,5,5,0,1,6,25,0,5,5,0,1,6,31,0,1,2,0,1,2,33,0,2,5,0,1,3,36,0,2,5,0,1,3,39,0,3,3,0,1,4,43,0,3,3,0,2,4,47,0,2,2,0,5,3,50,0,3,1,0,3,4,54,0,1,1,0,5,2,56,0,5,5,0,1,6,0,8,4,5,0,1,5,5,8,2,5,0,1,5,8,8,4,5,0,1,5,13,8,4,5,0,1,5,18,8,4,5,0,1,5,23,8,4,5,0,1,5,28,8,4,5,0,1,5,33,8,4,5,0,1,5,38,8,4,5,0,1,5,43,8,4,5,0,1,5,48,8,1,3,0,2,2,50,8,1,4,0,2,2,52,8,3,5,0,1,4,56,8,3,3,0,2,4,60,8,3,5,0,1,4,0,15,4,5,0,1,5,5,15,5,5,0,1,6,11,15,4,5,0,1,5,16,15,4,5,0,1,5,21,15,3,5,0,1,4,25,15,4,5,0,1,5,30,15,3,5,0,1,4,34,15,3,5,0,1,4,38,15,4,5,0,1,5,43,15,4,5,0,1,5,48,15,3,5,0,1,4,52,15,4,5,0,1,5,57,15,4,5,0,1,5,0,22,3,5,0,1,4,4,22,5,5,0,1,6,10,22,4,5,0,1,5,15,22,4,5,0,1,5,20,22,4,5,0,1,5,25,22,4,6,0,1,5,30,22,4,5,0,1,5,35,22,4,5,0,1,5,40,22,3,5,0,1,4,44,22,4,5,0,1,5,49,22,4,5,0,1,5,54,22,5,5,0,1,6,60,22,4,5,0,1,5,0,30,4,5,0,1,5,5,30,3,5,0,1,4,9,30,2,5,0,1,3,12,30,5,5,0,1,6,18,30,2,5,0,1,3,21,30,3,2,0,1,4,25,30,4,1,0,5,5,30,30,2,2,0,1,3,33,30,4,4,0,2,5,38,30,4,5,0,1,5,43,30,3,4,0,2,4,47,30,4,5,0,1,5,52,30,4,4,0,2,5,57,30,3,5,0,1,4,0,37,4,6,0,2,5,5,37,4,5,0,1,5,10,37,1,5,0,1,2,12,37,2,7,0,1,3,15,37,4,5,0,1,5,20,37,1,5,0,1,2,22,37,5,4,0,2,6,28,37,4,4,0,2,5,33,37,4,4,0,2,5,38,37,4,6,0,2,5,43,37,4,6,0,2,5,48,37,3,4,0,2,4,52,37,4,4,0,2,5,57,37,3,5,0,1,4,0,46,4,4,0,2,5,5,46,4,4,0,2,5,10,46,5,4,0,2,6,16,46,3,4,0,2,4,20,46,4,6,0,2,5,25,46,4,4,0,2,5,30,46,3,5,0,1,4,34,46,1,5,0,1,2,36,46,3,5,0,1,4,40,46,4,2,0,1,5]}
Binary file added ports/biolab/biolab/assets/font_04b03.qoi
Binary file not shown.
Loading

0 comments on commit 66b50b1

Please sign in to comment.