sfx
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bf1241le7dwfs"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bf1241le7dwfs"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c0jwjfs64x5tm" path="res://CardInjects/CursorGun/cursor_gun_card_inject.gd" id="1_25dn0"]
|
||||
[ext_resource type="AudioStream" uid="uid://8whqbui1wvwk" path="res://assets/sfx/laserShoot.wav" id="2_paokd"]
|
||||
|
||||
[node name="CursorGunCardInject" type="Node"]
|
||||
script = ExtResource("1_25dn0")
|
||||
|
||||
[node name="ShootSFX" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("2_paokd")
|
||||
|
||||
@@ -33,6 +33,7 @@ func activate(world, activator):
|
||||
cooldown_timer.start()
|
||||
|
||||
func _activate(_world, activator, position):
|
||||
$ShootSFX.play()
|
||||
var bullet = CursorBullet.instantiate()
|
||||
bullet.collision_mask = ~activator.collision_mask
|
||||
activator.add_child(bullet)
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://otxia3v8iw07"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://otxia3v8iw07"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dpyarqogod6d3" path="res://CardInjects/Firewall/firewall_card_inject.gd" id="1_fd08f"]
|
||||
[ext_resource type="PackedScene" uid="uid://ddvrvdq4406l4" path="res://CardInjects/Firewall/firewall.tscn" id="2_sbju6"]
|
||||
[ext_resource type="AudioStream" uid="uid://cb8fxqm51717b" path="res://assets/sfx/firewall.wav" id="3_i5x0g"]
|
||||
|
||||
[node name="FirewallCardInject" type="Node"]
|
||||
script = ExtResource("1_fd08f")
|
||||
FireWall = ExtResource("2_sbju6")
|
||||
|
||||
[node name="FirewallSFX" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("3_i5x0g")
|
||||
|
||||
@@ -33,6 +33,7 @@ func activate(world, activator):
|
||||
cooldown_timer.start()
|
||||
|
||||
func _activate(world, activator, position):
|
||||
$FirewallSFX.play()
|
||||
var firewall = FireWall.instantiate()
|
||||
firewall.position = position
|
||||
if activator.get_collision_layer_value(1): # player object
|
||||
|
||||
@@ -34,6 +34,7 @@ func activate(world, activator):
|
||||
|
||||
|
||||
func _activate(_world, activator, position):
|
||||
$KatanaSFX.play()
|
||||
var katana = KatanaSlash.instantiate()
|
||||
var target = activator.get_target_pos()
|
||||
activator.add_child(katana) # KatanaSlash might have to be detached later?
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://hgf0o7ugi77q"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://hgf0o7ugi77q"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cts63mtlco6yj" path="res://CardInjects/Katana/katana_card_inject.gd" id="1_8j8fv"]
|
||||
[ext_resource type="PackedScene" uid="uid://415yw4i180tb" path="res://CardInjects/Katana/katana.tscn" id="2_u2uea"]
|
||||
[ext_resource type="AudioStream" uid="uid://ld252yx338fv" path="res://assets/sfx/katana.wav" id="3_4iu6d"]
|
||||
|
||||
[node name="KatanaCardInject" type="Node"]
|
||||
script = ExtResource("1_8j8fv")
|
||||
KatanaSlash = ExtResource("2_u2uea")
|
||||
|
||||
[node name="KatanaSFX" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("3_4iu6d")
|
||||
|
||||
@@ -33,6 +33,7 @@ func activate(world, activator):
|
||||
cooldown_timer.start()
|
||||
|
||||
func _activate(world, activator, position):
|
||||
$MineSFX.play()
|
||||
var mine = Mine.instantiate()
|
||||
mine.position = position
|
||||
if activator.get_collision_layer_value(1): # player object
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://dbfulrblm07v3"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dbfulrblm07v3"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://hdyom3r5ebee" path="res://CardInjects/Mine/mine_card_inject.gd" id="1_oct4p"]
|
||||
[ext_resource type="PackedScene" uid="uid://umv7m1lf4x6b" path="res://CardInjects/Mine/mine.tscn" id="2_wv1jf"]
|
||||
[ext_resource type="AudioStream" uid="uid://b62xxafvfgl2" path="res://assets/sfx/mine.wav" id="3_mfthc"]
|
||||
|
||||
[node name="MineCardInject" type="Node"]
|
||||
script = ExtResource("1_oct4p")
|
||||
Mine = ExtResource("2_wv1jf")
|
||||
|
||||
[node name="MineSFX" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("3_mfthc")
|
||||
|
||||
BIN
growth/assets/sfx/damage_taken.wav
Normal file
BIN
growth/assets/sfx/damage_taken.wav
Normal file
Binary file not shown.
24
growth/assets/sfx/damage_taken.wav.import
Normal file
24
growth/assets/sfx/damage_taken.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://b4g7622b8mxeg"
|
||||
path="res://.godot/imported/damage_taken.wav-f1996fcc70076188baf933956a608b03.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/sfx/damage_taken.wav"
|
||||
dest_files=["res://.godot/imported/damage_taken.wav-f1996fcc70076188baf933956a608b03.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=2
|
||||
BIN
growth/assets/sfx/firewall.wav
Normal file
BIN
growth/assets/sfx/firewall.wav
Normal file
Binary file not shown.
24
growth/assets/sfx/firewall.wav.import
Normal file
24
growth/assets/sfx/firewall.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://cb8fxqm51717b"
|
||||
path="res://.godot/imported/firewall.wav-a858d8225f19cad8b3d0f07e3b2d56cf.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/sfx/firewall.wav"
|
||||
dest_files=["res://.godot/imported/firewall.wav-a858d8225f19cad8b3d0f07e3b2d56cf.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=2
|
||||
BIN
growth/assets/sfx/hit_enemy.wav
Normal file
BIN
growth/assets/sfx/hit_enemy.wav
Normal file
Binary file not shown.
24
growth/assets/sfx/hit_enemy.wav.import
Normal file
24
growth/assets/sfx/hit_enemy.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://veasx54o1t5m"
|
||||
path="res://.godot/imported/hit_enemy.wav-b8dfaea3f2c9af77ac74d10802a29a99.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/sfx/hit_enemy.wav"
|
||||
dest_files=["res://.godot/imported/hit_enemy.wav-b8dfaea3f2c9af77ac74d10802a29a99.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=2
|
||||
BIN
growth/assets/sfx/katana.wav
Normal file
BIN
growth/assets/sfx/katana.wav
Normal file
Binary file not shown.
24
growth/assets/sfx/katana.wav.import
Normal file
24
growth/assets/sfx/katana.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://ld252yx338fv"
|
||||
path="res://.godot/imported/katana.wav-edd239328ee6e0947a4b33146817305a.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/sfx/katana.wav"
|
||||
dest_files=["res://.godot/imported/katana.wav-edd239328ee6e0947a4b33146817305a.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=2
|
||||
BIN
growth/assets/sfx/laserShoot.wav
Normal file
BIN
growth/assets/sfx/laserShoot.wav
Normal file
Binary file not shown.
24
growth/assets/sfx/laserShoot.wav.import
Normal file
24
growth/assets/sfx/laserShoot.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://8whqbui1wvwk"
|
||||
path="res://.godot/imported/laserShoot.wav-1a605b4c342dc8e7aa4dcc06fd21591c.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/sfx/laserShoot.wav"
|
||||
dest_files=["res://.godot/imported/laserShoot.wav-1a605b4c342dc8e7aa4dcc06fd21591c.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=2
|
||||
BIN
growth/assets/sfx/mine.wav
Normal file
BIN
growth/assets/sfx/mine.wav
Normal file
Binary file not shown.
24
growth/assets/sfx/mine.wav.import
Normal file
24
growth/assets/sfx/mine.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://b62xxafvfgl2"
|
||||
path="res://.godot/imported/mine.wav-c9bfb3a7b0eeb0212a4755b40f9460d3.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/sfx/mine.wav"
|
||||
dest_files=["res://.godot/imported/mine.wav-c9bfb3a7b0eeb0212a4755b40f9460d3.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=false
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=2
|
||||
@@ -105,6 +105,7 @@ func _process(delta):
|
||||
|
||||
func take_hit(_damage, knockback_vector, knockback_strength = 1):
|
||||
# Called when the player takes damage
|
||||
$HitSFX.play()
|
||||
if shield_active:
|
||||
shield_active = false;
|
||||
# TODO visualize shield
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://dhhnr3xkxbxlu"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://dhhnr3xkxbxlu"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b6lfgkrbmr8ee" path="res://player.gd" id="1_4flbx"]
|
||||
[ext_resource type="AudioStream" uid="uid://b4g7622b8mxeg" path="res://assets/sfx/damage_taken.wav" id="2_i3pqv"]
|
||||
[ext_resource type="Texture2D" uid="uid://dcvpult8xfit6" path="res://assets/icons/Nortoff_logo.png" id="2_onrkg"]
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_onrkg"]
|
||||
@@ -24,6 +25,9 @@ script = ExtResource("1_4flbx")
|
||||
metadata/_edit_group_ = true
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="HitSFX" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("2_i3pqv")
|
||||
|
||||
[node name="PlayerSprite" type="AnimatedSprite2D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
scale = Vector2(0.1, 0.1)
|
||||
|
||||
@@ -55,9 +55,10 @@ func set_spawned():
|
||||
self.spawning_state = SpawningState.Spawned
|
||||
|
||||
func take_hit(damage, _knockback_vector, _knockback_strength = 1):
|
||||
$HitSFX.play();
|
||||
health -= damage
|
||||
if health <= 0:
|
||||
queue_free()
|
||||
else:
|
||||
# Flash white for now
|
||||
pass
|
||||
pass
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
[gd_scene load_steps=29 format=3 uid="uid://bsv3h2lpv7h77"]
|
||||
[gd_scene load_steps=30 format=3 uid="uid://bsv3h2lpv7h77"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bwhxwf77egesx" path="res://virus.gd" id="1_5nuwd"]
|
||||
[ext_resource type="Texture2D" uid="uid://mbey3bjcno10" path="res://assets/animations/Enemy_1_MERGED/Grow 1.png" id="2_2g5hr"]
|
||||
[ext_resource type="AudioStream" uid="uid://veasx54o1t5m" path="res://assets/sfx/hit_enemy.wav" id="2_lk7jo"]
|
||||
[ext_resource type="Texture2D" uid="uid://vjktyvv2qjr5" path="res://assets/animations/Enemy_1_MERGED/Grow 2.png" id="3_8stpa"]
|
||||
[ext_resource type="Texture2D" uid="uid://cfqb26he3sx4v" path="res://assets/animations/Enemy_1_MERGED/Idle 1.png" id="4_7ae1t"]
|
||||
[ext_resource type="Texture2D" uid="uid://cjl3c06iybish" path="res://assets/animations/Enemy_1_MERGED/Idle 2.png" id="5_lk7jo"]
|
||||
@@ -233,6 +234,9 @@ size = Vector2(128, 128)
|
||||
position = Vector2(0, -1)
|
||||
script = ExtResource("1_5nuwd")
|
||||
|
||||
[node name="HitSFX" type="AudioStreamPlayer" parent="."]
|
||||
stream = ExtResource("2_lk7jo")
|
||||
|
||||
[node name="AnimationTree" type="AnimationTree" parent="."]
|
||||
root_node = NodePath(".")
|
||||
tree_root = SubResource("AnimationNodeBlendTree_lk7jo")
|
||||
|
||||
Reference in New Issue
Block a user