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: PARSEC47 #1077

Merged
merged 1 commit into from
Dec 19, 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
44 changes: 44 additions & 0 deletions ports/parsec47/PARSEC47.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/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/parsec47
CONFDIR="$GAMEDIR/conf"
BINARY=PARSEC47

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

mkdir -p "$GAMEDIR/conf"

cd $GAMEDIR

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

if [ -f "${controlfolder}/libgl_${CFW_NAME}.txt" ]; then
source "${controlfolder}/libgl_${CFW_NAME}.txt"
else
source "${controlfolder}/libgl_default.txt"
fi

$GPTOKEYB "$BINARY" -c ./$BINARY.gptk &
pm_platform_helper "$GAMEDIR/$BINARY"
./$BINARY
pm_finish
19 changes: 19 additions & 0 deletions ports/parsec47/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Thanks
Thanks to the [Kenta Cho & M-HT](http://www.asahi-net.or.jp/~cs8k-cyu/windows/p47_e.html) for making this game and making it available for free.

## Controls

| Button | Action |
|--|--|
|DPAD| Move |
|A| Shoot |
|B| Slow / Roll, Lock |
|x| Pause|

## Building

```
git clone https://github.com/Cebion/parsec47_pm.git
compile libbulletml in subfolder
sources/buildLinux.sh
```
13 changes: 13 additions & 0 deletions ports/parsec47/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>./PARSEC47.sh</path>
<name>PARSEC47</name>
<desc>PARSEC47 is a retromodern hi-speed shoot 'em up where you get to defeat retro enemies modernly. The player must destroy enemies while avoiding their projectiles and collecting green clusters of boxes for points.</desc>
<releasedate>20031129T000000</releasedate>
<developer>Kenta Cho</developer>
<publisher>Self-Published</publisher>
<genre>Shmup</genre>
<image>./parsec47/screenshot.png</image>
</game>
</gameList>
Binary file added ports/parsec47/parsec47/PARSEC47
Binary file not shown.
32 changes: 32 additions & 0 deletions ports/parsec47/parsec47/PARSEC47.gptk
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
back = esc
start = enter

a = z
b = x
x = p
y = \"

l1 = \"
l2 = \"
r1 = \"
r2 = \"

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

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

right_analog_up = \"
right_analog_down = \"
right_analog_left = \"
right_analog_right = \"

deadzone_mode = scaled_radial
deadzone = 2000
deadzone_scale = 8
deadzone_delay = 16
Empty file.
Binary file not shown.
Binary file not shown.
Binary file added ports/parsec47/parsec47/images/title.bmp
Binary file not shown.
48 changes: 48 additions & 0 deletions ports/parsec47/parsec47/large/57way.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version="1.0" ?>
<!DOCTYPE bulletml SYSTEM "http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/bulletml.dtd">

<bulletml type="vertical"
xmlns="http://www.asahi-net.or.jp/~cs8k-cyu/bulletml">

<action label="top5">
<fire>
<direction>-100</direction>
<bulletRef label="nrm1"/>
</fire>
<repeat> <times>4</times>
<action>
<fire>
<direction type="sequence">50</direction>
<bulletRef label="nrm1"/>
</fire>
</action>
</repeat>
<wait>62-$rank*32</wait>
</action>

<action label="top7">
<wait>26-$rank*8</wait>
<fire>
<direction>-120</direction>
<bulletRef label="nrm2"/>
</fire>
<repeat> <times>6</times>
<action>
<fire>
<direction type="sequence">40</direction>
<bulletRef label="nrm2"/>
</fire>
</action>
</repeat>
<wait>40-$rank*30</wait>
</action>

<bullet label="nrm1">
<speed>0.7</speed>
</bullet>

<bullet label="nrm2">
<speed>1</speed>
</bullet>

</bulletml>
37 changes: 37 additions & 0 deletions ports/parsec47/parsec47/large/88way.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" ?>
<!DOCTYPE bulletml SYSTEM "http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/bulletml.dtd">

<bulletml type="vertical"
xmlns="http://www.asahi-net.or.jp/~cs8k-cyu/bulletml">

<action label="top">
<repeat> <times>1+$rank*4.7</times>
<action>
<fire>
<direction type="sequence">360/(1+$rank*4.7)</direction>
<bulletRef label="6way"/>
</fire>
<wait>150/(1+$rank*4.7)</wait>
</action>
</repeat>
</action>

<bullet label="6way">
<speed>$rand*0.5+0.5</speed>
<action>
<wait>10+$rand*10</wait>
<repeat> <times>6</times>
<action>
<fire>
<direction type="sequence">60</direction>
<bullet>
<speed>0.9</speed>
</bullet>
</fire>
</action>
</repeat>
<vanish/>
</action>
</bullet>

</bulletml>
21 changes: 21 additions & 0 deletions ports/parsec47/parsec47/large/allround.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" ?>
<!DOCTYPE bulletml SYSTEM "http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/bulletml.dtd">

<bulletml type="vertical"
xmlns="http://www.asahi-net.or.jp/~cs8k-cyu/bulletml">

<action label="top">
<repeat><times>2+$rank*7.6</times>
<action>
<fire>
<direction type="sequence">360/(2+$rank*7.6)</direction>
<speed>1</speed>
<bullet/>
</fire>
<wait>1</wait>
</action>
</repeat>
<wait>42</wait>
</action>

</bulletml>
51 changes: 51 additions & 0 deletions ports/parsec47/parsec47/large/dr1_boss_1.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" ?>
<!DOCTYPE bulletml SYSTEM "http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/bulletml.dtd">

<bulletml type="vertical"
xmlns="http://www.asahi-net.or.jp/~cs8k-cyu/bulletml">

<action label="top">
<wait>90/(2+3*$rank)</wait>
<actionRef label="four">
<param>$rand*90-45</param>
</actionRef>
</action>

<action label="four">
<fire>
<direction type="absolute">90</direction>
<speed>6</speed>
<bulletRef label="rb">
<param>$1</param>
</bulletRef>
</fire>
<repeat> <times>3</times>
<action>
<fire>
<direction type="sequence">60</direction>
<speed>6</speed>
<bulletRef label="rb">
<param>$1</param>
</bulletRef>
</fire>
</action>
</repeat>
</action>

<bullet label="rb">
<actionRef label="red">
<param>$1+$rand*20-10</param>
</actionRef>
</bullet>

<action label="red">
<wait>1</wait>
<fire>
<direction>$1</direction>
<speed>1</speed>
<bullet/>
</fire>
<vanish/>
</action>

</bulletml>
45 changes: 45 additions & 0 deletions ports/parsec47/parsec47/large/dr1_boss_2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<?xml version="1.0" ?>
<!DOCTYPE bulletml SYSTEM "http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/bulletml.dtd">

<bulletml type="vertical"
xmlns="http://www.asahi-net.or.jp/~cs8k-cyu/bulletml">

<action label="top">
<fire>
<direction type="aim">-30</direction>
<speed type="absolute">0.5</speed>
<bullet/>
</fire>
<repeat> <times>2</times>
<action>
<fire>
<direction type="sequence">30</direction>
<speed type="sequence">0</speed>
<bullet/>
</fire>
</action>
</repeat>
<wait>4</wait>
<repeat> <times>1+$rank*6.9</times>
<action>
<fire>
<direction type="aim">-30</direction>
<speed type="sequence">0.2</speed>
<bullet/>
</fire>
<repeat> <times>2</times>
<action>
<fire>
<direction type="sequence">30</direction>
<speed type="sequence">0</speed>
<bullet/>
</fire>
</action>
</repeat>
<wait>4</wait>
</action>
</repeat>
<wait>45</wait>
</action>

</bulletml>
50 changes: 50 additions & 0 deletions ports/parsec47/parsec47/large/forward_3way.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" ?>
<!DOCTYPE bulletml SYSTEM "http://www.asahi-net.or.jp/~cs8k-cyu/bulletml/bulletml.dtd">

<bulletml type="vertical"
xmlns="http://www.asahi-net.or.jp/~cs8k-cyu/bulletml">

<action label="top">
<fire>
<direction>90-$rand*180</direction>
<bulletRef label="3way"/>
</fire>
<wait>54</wait>
</action>

<bullet label="3way">
<speed>0.4</speed>
<action>
<fire>
<direction type="absolute">$rand*360</direction>
<speed>1</speed>
<bullet/>
</fire>
<repeat><times>2</times>
<action>
<fire>
<direction type="sequence">118</direction>
<speed>1</speed>
<bullet/>
</fire>
</action>
</repeat>
<repeat><times>2+$rank*7.2</times>
<action>
<wait>10-$rank*5</wait>
<repeat><times>3</times>
<action>
<fire>
<direction type="sequence">115</direction>
<speed>1</speed>
<bullet/>
</fire>
</action>
</repeat>
</action>
</repeat>
<vanish/>
</action>
</bullet>

</bulletml>
Loading