Skip to content

Commit

Permalink
Merge pull request #70 from Fraxinus88/Spearmint-Mountain
Browse files Browse the repository at this point in the history
New Port Spearmint Mountain
  • Loading branch information
kloptops authored Feb 10, 2024
2 parents 16c46ac + b9c2a44 commit 56f81b7
Show file tree
Hide file tree
Showing 10 changed files with 119 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ports/spearmintmountain/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
## Notes

Thanks to Baku [https://baku.itch.io/spearmint-mountain] for this game.

Source: https://baku.itch.io/spearmint-mountain

## Controls

| Button | Action |
|--|--|
|D-pad/L-stick|movement |
|A|jump/ while in the air spring jump|
|B|jump|
|X/L2|pickup spear/poke |
|Y/R2|Aim and throw Spear|
|R1|spring jump (press in the air)|
|Start|pause|


58 changes: 58 additions & 0 deletions ports/spearmintmountain/Spearmint Mountain.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#!/bin/bash
# PORTMASTER: spearmintmountain.zip, Spearmint_Mountain.sh
# Below we assign the source of the control folder (which is the PortMaster folder) based on the distro:
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

# We source the control.txt file contents here
# The $ESUDO, $directory, $param_device and necessary
# Sdl configuration controller configurations will be sourced from the control.txt
source $controlfolder/control.txt

# We pull the controller configs from the get_controls function from the control.txt file here
get_controls

$ESUDO chmod 666 /dev/tty0

# We check on emuelec based CFWs the OS_NAME
[ -f "/etc/os-release" ] && source "/etc/os-release"

if [ "$OS_NAME" == "JELOS" ]; then
export SPA_PLUGIN_DIR="/usr/lib32/spa-0.2"
export PIPEWIRE_MODULE_DIR="/usr/lib32/pipewire-0.3/"
fi

GAMEDIR=/$directory/ports/spearmintmountain

# We log the execution of the script into log.txt
exec > >(tee "$GAMEDIR/log.txt") 2>&1

# Port specific additional libraries should be included within the port's directory in a separate subfolder named libs.
# Prioritize the armhf libs to avoid conflicts with aarch64
export LD_LIBRARY_PATH="/usr/lib32:$GAMEDIR/libs:$GAMEDIR/utils/libs"
export GMLOADER_DEPTH_DISABLE=1
export GMLOADER_SAVEDIR="$GAMEDIR/gamedata/"

cd $GAMEDIR

# Check for file existence before trying to manipulate them:
[ -f "./gamedata/data.win" ] && mv gamedata/data.win gamedata/game.droid
[ -f "./gamedata/game.win" ] && mv gamedata/game.win gamedata/game.droid

# Make sure uinput is accessible so we can make use of the gptokeyb controls
$ESUDO chmod 666 /dev/uinput

$GPTOKEYB "gmloader" -c ./sm.gptk &

$ESUDO chmod +x "$GAMEDIR/gmloader"

./gmloader sm.apk

$ESUDO kill -9 $(pidof gptokeyb)
$ESUDO systemctl restart oga_events &
printf "\033c" > /dev/tty0
25 changes: 25 additions & 0 deletions ports/spearmintmountain/port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": 2,
"name": "spearmintmountain.zip",
"items": [
"Spearmint Mountain",
"spearmintmountain"
],
"items_opt": [],
"attr": {
"title": "Spearmint Mountain",
"porter": [
"Fraxinus88"
],
"desc": "Spearmint Mountain is a short but sweet action platformer, where you take control of a sentient piece of mint that's fallen off the big, sacred Mint. Pick up spear plants, and poke them at enemies or they'll crush you! Throw the spears at walls to create platforms, and bounce off of them to reach new heights!\n\nThere are also collectible mint coins hidden in difficult-to-reach locations. How many can you find?",
"inst": "Download game (Spearmint Mountain 1.1.1 Ubuntu) from https://baku.itch.io/spearmint-mountain, copy all the files from /assets to /ports/spearmintmountain/gamedata",
"genres": [
"platformer"
],
"image": null,
"rtr": false,
"exp": false,
"runtime": null,
"reqs": []
}
}
Binary file added ports/spearmintmountain/screenshot.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 not shown.
Binary file not shown.
Binary file not shown.
Binary file added ports/spearmintmountain/spearmintmountain/sm.apk
Binary file not shown.
17 changes: 17 additions & 0 deletions ports/spearmintmountain/spearmintmountain/sm.gptk
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
back = \"
start = \"

up = up
down = down
left = left
right = right

left_analog_up = up
left_analog_down = down
left_analog_left = left
left_analog_right = right

a = z
b = up
x = x
y = c

0 comments on commit 56f81b7

Please sign in to comment.