-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from tabreturn/ziggurat
Ziggurat
- Loading branch information
Showing
10 changed files
with
152 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## Notes | ||
|
||
Thanks to nethead for creating this game. This game is available free at https://nethead.itch.io/ziggurat | ||
|
||
Tested using *Ziggurat-Linux.zip* version, but Windows version will likely work fine, too. | ||
|
||
|
||
## Controls | ||
|
||
| Button | Action | | ||
| ------ | -------------------- | | ||
| DPAD | Directional movement | | ||
| UP/B | Jump | | ||
| DOWN/A | Use door | | ||
| SELECT | Display controls | | ||
|
||
|
||
## Compile | ||
|
||
```shell | ||
wget https://downloads.tuxfamily.org/godotengine/3.5.2/godot-3.5.2-stable.tar.xz | ||
tar xf godot-3.5.2-stable.tar.xz | ||
cd godot-3.5.2-stable/platform | ||
git clone https://github.com/Cebion/frt.git | ||
cd ../ | ||
scons platform=frt tools=no target=release use_llvm=yes module_webm_enabled=no -j12 | ||
strip bin/godot.frt.opt.llvm | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#!/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 | ||
|
||
get_controls | ||
|
||
GAMEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/ziggurat" | ||
CONFDIR="$GAMEDIR/conf/" | ||
|
||
# Ensure the conf directory exists | ||
mkdir -p "$GAMEDIR/conf" | ||
|
||
# Set the XDG environment variables for config & savefiles | ||
export XDG_CONFIG_HOME="$CONFDIR" | ||
export XDG_DATA_HOME="$CONFDIR" | ||
|
||
# .check for patched .pck ... | ||
if [ -f "/$GAMEDIR/gamedata/Ziggurat-patched.pck" ]; then | ||
echo "found Ziggurat-patched.pck" | ||
# ... or patched .pck if not found | ||
elif [ -f "/$GAMEDIR/gamedata/Ziggurat.pck" ]; then | ||
echo "patching Ziggurat.pck" | ||
export LD_LIBRARY_PATH=/$GAMEDIR/lib | ||
cd /$GAMEDIR/gamedata/ | ||
$SUDO ../xdelta3 -d -s "Ziggurat.pck" "Ziggurat.xdelta" "Ziggurat-patched.pck" | ||
fi | ||
|
||
cd $GAMEDIR | ||
|
||
runtime="frt_3.5.2" | ||
if [ ! -f "$controlfolder/libs/${runtime}.squashfs" ]; then | ||
# Check for runtime if not downloaded via PM | ||
if [ ! -f "$controlfolder/harbourmaster" ]; then | ||
echo "This port requires the latest PortMaster to run, please go to https://portmaster.games/ for more info." > /dev/tty0 | ||
sleep 5 | ||
exit 1 | ||
fi | ||
|
||
$ESUDO $controlfolder/harbourmaster --quiet --no-check runtime_check "${runtime}.squashfs" | ||
fi | ||
|
||
# Setup Godot | ||
godot_dir="$HOME/godot" | ||
godot_file="$controlfolder/libs/${runtime}.squashfs" | ||
$ESUDO mkdir -p "$godot_dir" | ||
$ESUDO umount "$godot_file" || true | ||
$ESUDO mount "$godot_file" "$godot_dir" | ||
PATH="$godot_dir:$PATH" | ||
|
||
export FRT_NO_EXIT_SHORTCUTS=FRT_NO_EXIT_SHORTCUTS | ||
|
||
$ESUDO chmod 666 /dev/uinput | ||
$GPTOKEYB "$runtime" -c "./ziggurat.gptk" & | ||
SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig" "$runtime" --main-pack "gamedata/Ziggurat-patched.pck" | ||
|
||
$ESUDO umount "$godot_dir" | ||
$ESUDO kill -9 $(pidof gptokeyb) | ||
$ESUDO systemctl restart oga_events & | ||
printf "\033c" > /dev/tty0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"version": 2, | ||
"name": "ziggurat.zip", | ||
"items": [ | ||
"Ziggurat.sh", | ||
"ziggurat" | ||
], | ||
"items_opt": null, | ||
"attr": { | ||
"title": "Ziggurat", | ||
"porter": [ | ||
"tabreturn" | ||
], | ||
"desc": "A short adventure game featuring a dreamy atmosphere and strange characters.", | ||
"inst": "You can download Ziggurat for free at: https://nethead.itch.io/ziggurat. Download the *Ziggurat-Linux.zip* version and extract it, and place the *Ziggurat.pck* file in the gamedata directory.", | ||
"genres": [ | ||
"adventure", | ||
"platformer" | ||
], | ||
"image": {}, | ||
"rtr": false, | ||
"exp": false, | ||
"runtime": "frt_3.5.2.squashfs", | ||
"reqs": [], | ||
"arch": [] | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2017-2023 Emanuele Fornara | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
up = up | ||
down = down | ||
left = left | ||
right = right | ||
a = s | ||
b = w | ||
select = esc |