Skip to content
Snippets Groups Projects
Commit fcde8797 authored by Jakob Kirsch's avatar Jakob Kirsch
Browse files

fix install.sh for libsoloud.so

parent 59f9bfc8
No related branches found
No related tags found
No related merge requests found
python3 -m pip install arcade
git clone https://github.com/jarikomppa/soloud.git git clone https://github.com/jarikomppa/soloud.git
cd soloud/build cd soloud/build
git clone https://github.com/bkaradzic/genie.git git clone https://github.com/bkaradzic/genie.git
...@@ -6,8 +7,10 @@ make ...@@ -6,8 +7,10 @@ make
cd .. cd ..
./genie/bin/linux/genie --os=linux --cc=gcc gmake ./genie/bin/linux/genie --os=linux --cc=gcc gmake
cd gmake cd gmake
CFLAGS=-lasound make LDFLAGS=-lasound CXXFLAGS=-lasound make
cd ../.. cd ../..
cp lib/libsoloud.so $HOME/.local/lib/python3.$(python3 -c 'import sys; print(sys.version[2],end="")')/site-packages/arcade/soloud/libsoloud.so cp lib/libsoloud.so $HOME/.local/lib/python3.$(python3 -c 'import sys; print(sys.version[2],end="")')/site-packages/arcade/soloud/libsoloud.so
cd .. cd ..
rm -fr soloud rm -fr soloud
sed -i '/Soloud_setPanAbsoluteEx/d' $HOME/.local/lib/python3.$(python3 -c 'import sys; print(sys.version[2],end="")')/site-packages/arcade/soloud/soloud.py
sed -i '/set_pan_absolute/d' $HOME/.local/lib/python3.$(python3 -c 'import sys; print(sys.version[2],end="")')/site-packages/arcade/soloud/soloud.py
...@@ -213,7 +213,7 @@ class Game(arcade.Window): ...@@ -213,7 +213,7 @@ class Game(arcade.Window):
self.shoot_list.append(shoot) self.shoot_list.append(shoot)
self.all_sprites_list.append(shoot) self.all_sprites_list.append(shoot)
sound = arcade.sound.Sound("sounds/shot.wav") sound = arcade.sound.Sound("sounds/shot.wav")
sound.play(pan=((180 < (self.player_sprite.angle + 90) < 360) - (0 < (self.player_sprite.angle + 90) < 180))) sound.play(pan=((180 < (self.player_sprite.angle - 90) < 360) - (0 < (self.player_sprite.angle - 90) < 180)))
def on_key_release(self, key, modifier): def on_key_release(self, key, modifier):
if key == CONTROLS["run"]: if key == CONTROLS["run"]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment