Skip to content

Commit

Permalink
Merge pull request #939 from Slayer366/main
Browse files Browse the repository at this point in the history
Add Xye
  • Loading branch information
Cebion authored Nov 16, 2024
2 parents 838072c + 6e208a2 commit a854c59
Show file tree
Hide file tree
Showing 56 changed files with 79,751 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ports/xye/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Notes

Thanks goes to Cebion for the compiling tip for ARM!
Thanks to Slayer366 for porting this game to PortMaster!

- [Xye](https://xye.sourceforge.net/)

## Controls

| Button | Action |
|--|--|
|D-pad/Left Stick|Movement|
|Select|Escape/Quit|
|Start/A|Enter/Select/Restart Level|
|B|Undo last move|
|X|Show Hint|
|Y|Playback Level Solution|
|L1|Previous Level|
|R1|Next Level|
|L2|Level Select Screen|
|R2|Select Theme @Main Menu|
|L3|Fast-Forward|
|Right Stick + R3|Mouse (not required)|
35 changes: 35 additions & 0 deletions ports/xye/Xye.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

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

GAMEDIR="/$directory/ports/xye"

export LD_LIBRARY_PATH="$GAMEDIR/libs.${DEVICE_ARCH}:$LD_LIBRARY_PATH"
export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"
export TEXTINPUTPRESET="Name"
export TEXTINPUTINTERACTIVE="Y"

cd $GAMEDIR

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

$GPTOKEYB "xye.${DEVICE_ARCH}" -c "$GAMEDIR/xye.gptk" &
pm_platform_helper "$GAMEDIR/xye.${DEVICE_ARCH}"
./xye.${DEVICE_ARCH}

pm_finish
12 changes: 12 additions & 0 deletions ports/xye/gameinfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<gameList>
<game>
<path>./Xye.sh</path>
<name>Xye</name>
<desc>Xye is a puzzle game in which the objective is to help a character that looks like a green circle to get all the gems in the room. This is, of course, not as easy as it sounds; Xye must solve all sorts of puzzles while at the same time avoiding all sorts of traps and beasts. Xye is similar to other puzzle games like Sokoban or Boulder Dash, yet it also includes some arcade elements. Xye is a derivative of a classic Windows game called Kye, which is the base of the gameplay experience and visual elements. Xye is able to play level files that were made for Kye and Sokoban.</desc>
<releasedate>20130813T000000</releasedate>
<developer>Victor Hugo Soliz Kuncar</developer>
<genre>Puzzle</genre>
<image>./xye/screenshot.png</image>
</game>
</gameList>
30 changes: 30 additions & 0 deletions ports/xye/port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"version": 3,
"name": "xye.zip",
"items": [
"Xye.sh",
"xye/"
],
"items_opt": [],
"attr": {
"title": "Xye",
"porter": [
"Slayer366"
],
"desc": "Xye is a puzzle game in which the objective is to help a character that looks like a green circle to get all the gems in the room. This is, of course, not as easy as it sounds; Xye must solve all sorts of puzzles while at the same time avoiding all sorts of traps and beasts. Xye is similar to other puzzle games like Sokoban or Boulder Dash, yet it also includes some arcade elements. Xye is a derivative of a classic Windows game called Kye, which is the base of the gameplay experience and visual elements. Xye is able to play level files that were made for Kye and Sokoban.",
"desc_md": null,
"inst": "Ready to Run",
"inst_md": null,
"genres": [
"puzzle"
],
"image": null,
"rtr": true,
"exp": false,
"runtime": null,
"reqs": [],
"arch": [
"aarch64"
]
}
}
Binary file added ports/xye/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a854c59

Please sign in to comment.