Skip to content

Commit

Permalink
Merge pull request #976 from psiroki/planet-merge
Browse files Browse the repository at this point in the history
New Port: Planet Merge
  • Loading branch information
Cebion authored Nov 29, 2024
2 parents e237adc + b5e2711 commit b26f808
Show file tree
Hide file tree
Showing 23 changed files with 106 additions and 0 deletions.
43 changes: 43 additions & 0 deletions ports/planetmerge/Planet Merge.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/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/planetmerge/
CONFDIR="$GAMEDIR/conf/"

mkdir -p "$GAMEDIR/conf"

cd $GAMEDIR

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


export XDG_DATA_HOME="$CONFDIR"
export XDG_CONFIG_HOME="$CONFDIR"

export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"

$GPTOKEYB "planets.${DEVICE_ARCH}" &

pm_platform_helper "$GAMEDIR/planets.${DEVICE_ARCH}"

./planets.${DEVICE_ARCH}

pm_finish

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

Source: https://github.com/psiroki/dinnye/

## Controls

| Button | Action |
|--|--|
|DPAD|Move drop position or menu selection|
|A/B/X/Y|Drop planet|
|START/MENU|Enter menu|
|START+SELECT|Exit immediately|

## Compiling

To get the executable, you can follow the standard cmake boilerplate, just specify `-DPORTMASTER=ON`.

```
mkdir build
cd build
cmake -DPORTMASTER=ON -DCMAKE_BUILD_TYPE=Release ..
make
```
Binary file added ports/planetmerge/cover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions ports/planetmerge/gameinfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version='1.0' encoding='utf-8'?>
<gameList>
<game>
<path>./Planet Merge.sh</path>
<name>Planet Merge</name>
<desc>Planet Merge is a fun and addictive puzzle game inspired by the Suika game, but with a cosmic twist! Combine celestial bodies like Pluto, the Moon, and Ganymede to form larger and more impressive astronomical objects. Strategize your merges to maximize your score and see how far you can go in this galaxy-sized challenge!</desc>
<image>./planetmerge/cover.jpg</image>
<releasedate>20241124T000000</releasedate>
<developer>Peter Siroki</developer>
<publisher>Peter Siroki</publisher>
<genre>Puzzle</genre>
</game>
</gameList>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ports/planetmerge/planetmerge/assets/earth.png
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.
Binary file added ports/planetmerge/planetmerge/assets/jupiter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ports/planetmerge/planetmerge/assets/mars.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ports/planetmerge/planetmerge/assets/mercury.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ports/planetmerge/planetmerge/assets/moon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ports/planetmerge/planetmerge/assets/neptune.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ports/planetmerge/planetmerge/assets/pluto.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ports/planetmerge/planetmerge/assets/saturn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ports/planetmerge/planetmerge/assets/sounds.dat
Binary file not shown.
Binary file added ports/planetmerge/planetmerge/assets/title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ports/planetmerge/planetmerge/assets/uranus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ports/planetmerge/planetmerge/assets/venus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added ports/planetmerge/planetmerge/planets.aarch64
Binary file not shown.
27 changes: 27 additions & 0 deletions ports/planetmerge/port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"version": 2,
"name": "planetmerge.zip",
"items": [
"Planet Merge.sh",
"planetmerge"
],
"items_opt": null,
"attr": {
"title": "Planet Merge",
"desc": "Suika game with celestial bodies! Merge planets, moons, and more to create massive cosmic objects and rack up high scores.",
"inst": "Ready to run.",
"genres": [
"puzzle"
],
"porter": [
"Peter_Siroki"
],
"image": {},
"rtr": true,
"runtime": null,
"reqs": [],
"arch": [
"aarch64"
]
}
}
Binary file added ports/planetmerge/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 b26f808

Please sign in to comment.