Skip to content

Commit

Permalink
Merge pull request #28 from Cebion/oquonie
Browse files Browse the repository at this point in the history
New Port: Oquonie
  • Loading branch information
kloptops authored Feb 3, 2024
2 parents e7f1b1c + 6699659 commit 579742f
Show file tree
Hide file tree
Showing 8 changed files with 112 additions and 0 deletions.
29 changes: 29 additions & 0 deletions ports/oquonie/Oquonie.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/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="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )/oquonie"

export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"

cd $GAMEDIR
$GPTOKEYB "uxnemu" -c "$GAMEDIR/oquonie.gptk" &
./uxnemu oquonie.rom

$ESUDO kill -9 $(pidof gptokeyb)
$ESUDO systemctl restart oga_events &
unset SDL_GAMECONTROLLERCONFIG
printf "\033c" > /dev/tty1
printf "\033c" > /dev/tty0

23 changes: 23 additions & 0 deletions ports/oquonie/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Notes

Thanks to Rek & Devine for creating this wonderful game
https://hundredrabbits.itch.io/

Also special thanks for bhart for the intial start of the port and Cebion and Tabreturn for the finishing touches.

In this uxnemu version the sdl_init(joystick) has been disabled and mapped via gptokeyb.

## Controls

| Button | Action |
|--|--|
| Dpad | Move |

## Compiling UXN

```bash
git clone https://git.sr.ht/~rabbits/uxn
cd src
edit uxnemu.c to if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0)
cd ..
./build.sh
12 changes: 12 additions & 0 deletions ports/oquonie/oquonie/oquonie.gptk
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
up = up
down = down
left = left
right = right
space = enter
a = enter
r3 = \"
left_analog_up = up
left_analog_down = down
left_analog_left = left
left_analog_right = right

Empty file.
Binary file added ports/oquonie/oquonie/uxnemu
Binary file not shown.
21 changes: 21 additions & 0 deletions ports/oquonie/oquonie/uxnemu.LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Devine Lu Linvega

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.
27 changes: 27 additions & 0 deletions ports/oquonie/port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"version": 2,
"name": "oquonie.zip",
"items": [
"Oquonie.sh",
"oquonie"
],
"items_opt": [],
"attr": {
"title": "Oquonie",
"porter": [
"bhart",
"Cebion",
"tabreturn"
],
"desc": "Oquonie is a textless isometric puzzle game.\n\nYou must make your way through a seemingly endless succession of rooms. You will not be alone. Your incarnations will have the help of bizaroid characters that speak an obscure language.",
"inst": "Place oquonie.rom from https://hundredrabbits.itch.io/oquonie into the oquonie folder.",
"genres": [
"puzzle"
],
"image": null,
"rtr": false,
"exp": false,
"runtime": null,
"reqs": []
}
}
Binary file added ports/oquonie/screenshot.jpg
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 579742f

Please sign in to comment.