-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Part of #22 Co-authored-by: Unfa <[email protected]>
- Loading branch information
1 parent
bee5a67
commit adfb4ef
Showing
56 changed files
with
630 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
class_name LoopingAudioStreamPlayer2D | ||
extends AudioStreamPlayer2D | ||
|
||
export var start: AudioStream | ||
export var loop: AudioStream | ||
export var tail: AudioStream | ||
|
||
var ending := false | ||
|
||
|
||
func _ready() -> void: | ||
connect("finished", self, "_on_finished") | ||
|
||
|
||
func start() -> void: | ||
stream = start | ||
ending = false | ||
play() | ||
|
||
|
||
func end() -> void: | ||
stream = tail | ||
ending = true | ||
|
||
|
||
func _on_finished() -> void: | ||
if stream == start: | ||
stream = loop | ||
play() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
[gd_scene load_steps=3 format=2] | ||
[gd_scene load_steps=7 format=2] | ||
|
||
[ext_resource path="res://src/VFX/LaserBeam/LaserBeam.tscn" type="PackedScene" id=1] | ||
[ext_resource path="res://src/Ships/Guns/LaserGun/LaserGun.gd" type="Script" id=2] | ||
[ext_resource path="res://src/Ships/Guns/LaserGun/Weapons_Beam_Loop.wav" type="AudioStream" id=3] | ||
[ext_resource path="res://src/Common/LoopingAudioStreamPlayer2D.gd" type="Script" id=4] | ||
[ext_resource path="res://src/Ships/Guns/LaserGun/Weapons_Beam_Start.wav" type="AudioStream" id=5] | ||
[ext_resource path="res://src/Ships/Guns/LaserGun/Weapons_Beam_End.wav" type="AudioStream" id=6] | ||
|
||
[node name="LaserGun" type="Node2D"] | ||
script = ExtResource( 2 ) | ||
damage_per_second = 300.0 | ||
|
||
[node name="LaserBeam2D" parent="." instance=ExtResource( 1 )] | ||
|
||
[node name="LoopingAudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."] | ||
script = ExtResource( 4 ) | ||
__meta__ = { | ||
"_editor_description_": "" | ||
} | ||
start = ExtResource( 5 ) | ||
loop = ExtResource( 3 ) | ||
tail = ExtResource( 6 ) |
Binary file not shown.
21 changes: 21 additions & 0 deletions
21
project/src/Ships/Guns/LaserGun/Weapons_Beam_End.wav.import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[remap] | ||
|
||
importer="wav" | ||
type="AudioStreamSample" | ||
path="res://.import/Weapons_Beam_End.wav-32e717e3f50fe31462ca7fec1898ac4c.sample" | ||
|
||
[deps] | ||
|
||
source_file="res://src/Ships/Guns/LaserGun/Weapons_Beam_End.wav" | ||
dest_files=[ "res://.import/Weapons_Beam_End.wav-32e717e3f50fe31462ca7fec1898ac4c.sample" ] | ||
|
||
[params] | ||
|
||
force/8_bit=false | ||
force/mono=false | ||
force/max_rate=false | ||
force/max_rate_hz=44100 | ||
edit/trim=true | ||
edit/normalize=false | ||
edit/loop=false | ||
compress/mode=0 |
Binary file not shown.
21 changes: 21 additions & 0 deletions
21
project/src/Ships/Guns/LaserGun/Weapons_Beam_Loop.wav.import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[remap] | ||
|
||
importer="wav" | ||
type="AudioStreamSample" | ||
path="res://.import/Weapons_Beam_Loop.wav-4c1a96f95599546c8530da07ade46fd1.sample" | ||
|
||
[deps] | ||
|
||
source_file="res://src/Ships/Guns/LaserGun/Weapons_Beam_Loop.wav" | ||
dest_files=[ "res://.import/Weapons_Beam_Loop.wav-4c1a96f95599546c8530da07ade46fd1.sample" ] | ||
|
||
[params] | ||
|
||
force/8_bit=false | ||
force/mono=false | ||
force/max_rate=false | ||
force/max_rate_hz=44100 | ||
edit/trim=true | ||
edit/normalize=false | ||
edit/loop=true | ||
compress/mode=0 |
Binary file not shown.
21 changes: 21 additions & 0 deletions
21
project/src/Ships/Guns/LaserGun/Weapons_Beam_Start.wav.import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[remap] | ||
|
||
importer="wav" | ||
type="AudioStreamSample" | ||
path="res://.import/Weapons_Beam_Start.wav-dbf8e9f3a070bc30af6d8981dadf4208.sample" | ||
|
||
[deps] | ||
|
||
source_file="res://src/Ships/Guns/LaserGun/Weapons_Beam_Start.wav" | ||
dest_files=[ "res://.import/Weapons_Beam_Start.wav-dbf8e9f3a070bc30af6d8981dadf4208.sample" ] | ||
|
||
[params] | ||
|
||
force/8_bit=false | ||
force/mono=false | ||
force/max_rate=false | ||
force/max_rate_hz=44100 | ||
edit/trim=true | ||
edit/normalize=false | ||
edit/loop=false | ||
compress/mode=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
21 changes: 21 additions & 0 deletions
21
project/src/Ships/Guns/Projectiles/Weapons_Plasma_Shot_01.wav.import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[remap] | ||
|
||
importer="wav" | ||
type="AudioStreamSample" | ||
path="res://.import/Weapons_Plasma_Shot_01.wav-19aa5dfb80aee211e0242a8505200d7d.sample" | ||
|
||
[deps] | ||
|
||
source_file="res://src/Ships/Guns/Projectiles/Weapons_Plasma_Shot_01.wav" | ||
dest_files=[ "res://.import/Weapons_Plasma_Shot_01.wav-19aa5dfb80aee211e0242a8505200d7d.sample" ] | ||
|
||
[params] | ||
|
||
force/8_bit=false | ||
force/mono=false | ||
force/max_rate=false | ||
force/max_rate_hz=44100 | ||
edit/trim=true | ||
edit/normalize=false | ||
edit/loop=false | ||
compress/mode=0 |
Binary file not shown.
21 changes: 21 additions & 0 deletions
21
project/src/Ships/Guns/Projectiles/Weapons_Plasma_Shot_02.wav.import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[remap] | ||
|
||
importer="wav" | ||
type="AudioStreamSample" | ||
path="res://.import/Weapons_Plasma_Shot_02.wav-60ca603482ac0d7479dd36ce8abbe398.sample" | ||
|
||
[deps] | ||
|
||
source_file="res://src/Ships/Guns/Projectiles/Weapons_Plasma_Shot_02.wav" | ||
dest_files=[ "res://.import/Weapons_Plasma_Shot_02.wav-60ca603482ac0d7479dd36ce8abbe398.sample" ] | ||
|
||
[params] | ||
|
||
force/8_bit=false | ||
force/mono=false | ||
force/max_rate=false | ||
force/max_rate_hz=44100 | ||
edit/trim=true | ||
edit/normalize=false | ||
edit/loop=false | ||
compress/mode=0 |
Binary file not shown.
21 changes: 21 additions & 0 deletions
21
project/src/Ships/Guns/Projectiles/Weapons_Plasma_Shot_03.wav.import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[remap] | ||
|
||
importer="wav" | ||
type="AudioStreamSample" | ||
path="res://.import/Weapons_Plasma_Shot_03.wav-0b213f9e22580f7be0fff4ae33beb7cd.sample" | ||
|
||
[deps] | ||
|
||
source_file="res://src/Ships/Guns/Projectiles/Weapons_Plasma_Shot_03.wav" | ||
dest_files=[ "res://.import/Weapons_Plasma_Shot_03.wav-0b213f9e22580f7be0fff4ae33beb7cd.sample" ] | ||
|
||
[params] | ||
|
||
force/8_bit=false | ||
force/mono=false | ||
force/max_rate=false | ||
force/max_rate_hz=44100 | ||
edit/trim=true | ||
edit/normalize=false | ||
edit/loop=false | ||
compress/mode=0 |
Binary file not shown.
21 changes: 21 additions & 0 deletions
21
project/src/Ships/Guns/Projectiles/Weapons_Plasma_Shot_04.wav.import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[remap] | ||
|
||
importer="wav" | ||
type="AudioStreamSample" | ||
path="res://.import/Weapons_Plasma_Shot_04.wav-e841366e01045cb71ba23252ae37bbdc.sample" | ||
|
||
[deps] | ||
|
||
source_file="res://src/Ships/Guns/Projectiles/Weapons_Plasma_Shot_04.wav" | ||
dest_files=[ "res://.import/Weapons_Plasma_Shot_04.wav-e841366e01045cb71ba23252ae37bbdc.sample" ] | ||
|
||
[params] | ||
|
||
force/8_bit=false | ||
force/mono=false | ||
force/max_rate=false | ||
force/max_rate_hz=44100 | ||
edit/trim=true | ||
edit/normalize=false | ||
edit/loop=false | ||
compress/mode=0 |
Binary file not shown.
21 changes: 21 additions & 0 deletions
21
project/src/Ships/Guns/Projectiles/Weapons_Plasma_Shot_05.wav.import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[remap] | ||
|
||
importer="wav" | ||
type="AudioStreamSample" | ||
path="res://.import/Weapons_Plasma_Shot_05.wav-e80a2baefc32f2be9abfbc71af20ebe4.sample" | ||
|
||
[deps] | ||
|
||
source_file="res://src/Ships/Guns/Projectiles/Weapons_Plasma_Shot_05.wav" | ||
dest_files=[ "res://.import/Weapons_Plasma_Shot_05.wav-e80a2baefc32f2be9abfbc71af20ebe4.sample" ] | ||
|
||
[params] | ||
|
||
force/8_bit=false | ||
force/mono=false | ||
force/max_rate=false | ||
force/max_rate_hz=44100 | ||
edit/trim=true | ||
edit/normalize=false | ||
edit/loop=false | ||
compress/mode=0 |
Binary file not shown.
21 changes: 21 additions & 0 deletions
21
project/src/Ships/Guns/Projectiles/Weapons_Plasma_Shot_06.wav.import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[remap] | ||
|
||
importer="wav" | ||
type="AudioStreamSample" | ||
path="res://.import/Weapons_Plasma_Shot_06.wav-08aa0680cbdb08a88aec0190a13bd3ea.sample" | ||
|
||
[deps] | ||
|
||
source_file="res://src/Ships/Guns/Projectiles/Weapons_Plasma_Shot_06.wav" | ||
dest_files=[ "res://.import/Weapons_Plasma_Shot_06.wav-08aa0680cbdb08a88aec0190a13bd3ea.sample" ] | ||
|
||
[params] | ||
|
||
force/8_bit=false | ||
force/mono=false | ||
force/max_rate=false | ||
force/max_rate_hz=44100 | ||
edit/trim=true | ||
edit/normalize=false | ||
edit/loop=false | ||
compress/mode=0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[remap] | ||
|
||
importer="wav" | ||
type="AudioStreamSample" | ||
path="res://.import/Minig_Swallow.wav-b5526468481d37b809925476131fc2b0.sample" | ||
|
||
[deps] | ||
|
||
source_file="res://src/Ships/Player/Minig_Swallow.wav" | ||
dest_files=[ "res://.import/Minig_Swallow.wav-b5526468481d37b809925476131fc2b0.sample" ] | ||
|
||
[params] | ||
|
||
force/8_bit=false | ||
force/mono=false | ||
force/max_rate=false | ||
force/max_rate_hz=44100 | ||
edit/trim=true | ||
edit/normalize=false | ||
edit/loop=false | ||
compress/mode=0 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[remap] | ||
|
||
importer="wav" | ||
type="AudioStreamSample" | ||
path="res://.import/Mining_Unload.wav-11877314e8676e182767b49cb0b5d252.sample" | ||
|
||
[deps] | ||
|
||
source_file="res://src/Ships/Player/Mining_Unload.wav" | ||
dest_files=[ "res://.import/Mining_Unload.wav-11877314e8676e182767b49cb0b5d252.sample" ] | ||
|
||
[params] | ||
|
||
force/8_bit=false | ||
force/mono=false | ||
force/max_rate=false | ||
force/max_rate_hz=44100 | ||
edit/trim=true | ||
edit/normalize=false | ||
edit/loop=false | ||
compress/mode=0 |
Oops, something went wrong.