Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Port TinySTG #45

Merged
merged 2 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions ports/tinystg/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Notes

Thanks to tkuran_kuran for creating this game and making it available for free.
https://github.com/kuran-kuran/TinySTG


## Controls

| Button | Action |
|--|--|
| Dpad | Move Ship |
| A | Shoot |
| B | Bomb |

## Compiling

```bash
https://github.com/kuran-kuran/TinySTG.git
cd TinySTG/SDL2/RaspberryPI
#add -I/usr/include/SDL2 to makefile
make
```
28 changes: 28 additions & 0 deletions ports/tinystg/TinySTG.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/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=/$directory/ports/tinystg
exec > >(tee "$GAMEDIR/log.txt") 2>&1

export SDL_GAMECONTROLLERCONFIG="$sdl_controllerconfig"
export LD_LIBRARY_PATH="$GAMEDIR/libs"

cd $GAMEDIR

$ESUDO chmod 666 /dev/uinput
$GPTOKEYB "TinySTG_exe" &
./TinySTG_exe

$ESUDO kill -9 $(pidof gptokeyb)
$ESUDO systemctl restart oga_events &
printf "\033c" > /dev/tty0
26 changes: 26 additions & 0 deletions ports/tinystg/port.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": 2,
"name": "tinystg.zip",
"items": [
"TinySTG.sh",
"tinystg"
],
"items_opt": [],
"attr": {
"title": "TinySTG",
"porter": [
"Cebion"
],
"desc": "TinySTG is a vertical scrolling shooting game, reminiscent of titles such as 1942 and the Raiden series. Maneuver enemy bullets, earn powerups, and defeat epic bosses!",
"inst": "Ready to run!",
"genres": [
"action",
"arcade"
],
"image": null,
"rtr": true,
"exp": false,
"runtime": null,
"reqs": []
}
}
Binary file added ports/tinystg/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions ports/tinystg/tinystg/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 kuran_kuran

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.
Binary file added ports/tinystg/tinystg/TinySTG_exe
Binary file not shown.
Loading