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

Added music #84

Merged
merged 7 commits into from
Dec 6, 2021
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
16 changes: 10 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ on:
jobs:
version_and_release:
runs-on: ubuntu-latest
# Job name, can be anything
name: Export Game Job
steps:
- name: "✔️ Checkout"
uses: actions/checkout@v2
# Ensure that you get the entire project history
with:
fetch-depth: 0
- name: "📣 Release on push"
Expand All @@ -41,20 +39,25 @@ jobs:
git config user.name github-actions
git commit -am 'version incremented'
git push
- name: "🛠 Randomize which html music will be exported"
if: ${{ steps.release.outputs.version != '' }}
shell: bash
run: |
SCENE=ordeal; KEEP=6; cd assets/music/${SCENE} && ls *.ogg | tail -n+${KEEP} | shuf > oggs && cat oggs | xargs -I {} mv "{}.import" "html_ignore_{}.import" && cat oggs | xargs -I {} mv "{}" "html_ignore_{}" && rm oggs && ls -larth
SCENE=journal; KEEP=4; cd ../../../assets/music/${SCENE} && ls *.ogg | tail -n+${KEEP} | shuf > oggs && cat oggs | xargs -I {} mv "{}.import" "html_ignore_{}.import" && cat oggs | xargs -I {} mv "{}" "html_ignore_{}" && rm oggs && ls -larth
SCENE=main; KEEP=2; cd ../../../assets/music/${SCENE} && ls *.ogg | tail -n+${KEEP} | shuf > oggs && cat oggs | xargs -I {} mv "{}.import" "html_ignore_{}.import" && cat oggs | xargs -I {} mv "{}" "html_ignore_{}" && rm oggs && ls -larth
SCENE=shop; KEEP=2; cd ../../../assets/music/${SCENE} && ls *.ogg | tail -n+${KEEP} | shuf > oggs && cat oggs | xargs -I {} mv "{}.import" "html_ignore_{}.import" && cat oggs | xargs -I {} mv "{}" "html_ignore_{}" && rm oggs && ls -larth
SCENE=boss; KEEP=4; cd ../../../assets/music/${SCENE} && ls *.ogg | tail -n+${KEEP} | shuf > oggs && cat oggs | xargs -I {} mv "{}.import" "html_ignore_{}.import" && cat oggs | xargs -I {} mv "{}" "html_ignore_{}" && rm oggs && ls -larth
- name: "🤖 Export game"
if: ${{ steps.release.outputs.version != '' }}
uses: firebelley/godot-export@v3.0.0
with:
# Defining all the required inputs
# I used the mono version of Godot in this example
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/3.4/Godot_v3.4-stable_linux_headless.64.zip
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/3.4/Godot_v3.4-stable_export_templates.tpz
relative_project_path: ./
base_version: "${{ steps.release.outputs.version }}"
create_release: false
archive_export_output: true
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "🛠 Prepare files for upload to itch.io"
if: ${{ steps.release.outputs.version != '' }}
shell: bash
Expand All @@ -63,6 +66,7 @@ jobs:
cp '/home/runner/.local/share/godot/builds/LinuxX11/Hypnagonia_Linux.x86_64' .
cp '/home/runner/.local/share/godot/builds/Windows Desktop/Hypnagonia_Windows.exe' .
cp '/home/runner/.local/share/godot/builds/Mac OSX/Hypnagonia_MacOSX.zip' .
ls -larth
- name: "🚀 Upload HTML5 version to itch.io"
if: ${{ steps.release.outputs.version != '' }}
uses: josephbmanley/butler-publish-itchio-action@master
Expand Down
8 changes: 8 additions & 0 deletions addons/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Copyright © 2021 Xecestel

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.

362 changes: 362 additions & 0 deletions addons/README.md

Large diffs are not rendered by default.

Binary file added addons/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

importer="texture"
type="StreamTexture"
path="res://.import/Lacuna.png-048bfc2290128ee3709974a13b7721ee.stex"
path="res://.import/icon.png-9184c917ae1432a53633fd28a90ce6a4.stex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/tutorial/ordeal/Lacuna.png"
dest_files=[ "res://.import/Lacuna.png-048bfc2290128ee3709974a13b7721ee.stex" ]
source_file="res://addons/icon.png"
dest_files=[ "res://.import/icon.png-9184c917ae1432a53633fd28a90ce6a4.stex" ]

[params]

Expand All @@ -28,6 +28,7 @@ process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
Expand Down
1 change: 1 addition & 0 deletions addons/sound_manager/SoundManager.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"Audio_Busses":{"BGM":"bgm","BGS":"","ME":"","SE":""},"Audio_Files_Dictionary":{},"DEBUG":false,"DEFAULT_SOUNDS_PROPERTIES":{"BGM":{"Pitch":1,"Volume":0},"BGS":{"Pitch":1,"Volume":0},"ME":{"Pitch":1,"Volume":0},"SE":{"Pitch":1,"Volume":0}},"PREINSTANTIATE_NODES":false,"PRELOAD_RES":false}
8 changes: 8 additions & 0 deletions addons/sound_manager/dock/SoundManagerDock.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[window]

title="Sound Manager"
rect_min_size=Vector2( 0, 140 )

[debug]

print_debug_messages=true
Loading