added Graphics and sound Effects and more overhauls

This commit is contained in:
Exobyt 2025-08-03 20:56:32 +02:00
parent c887a2168c
commit b9d4288900
214 changed files with 3378 additions and 198 deletions

View file

@ -4,11 +4,12 @@ class_name Railgun extends "res://scenes/weapon/weapon.gd"
func attack():
if cooldownTimer.is_stopped():
shoot.play()
spawnBullet()
cooldownTimer.start(cooldown)
func spawnBullet():
var newBullet = bullet.instantiate()
newBullet.spawn(bulletPoint.global_position, get_parent().get_parent().rotation, damage, penetration)
var newBullet: Bullet = bullet.instantiate()
newBullet.spawn(bulletPoint.global_position, get_parent().get_parent().rotation, damage, penetration, bulletSpeed)
newBullet.fromTimeGhost = get_parent().get_parent().is_in_group("timeGhost")
get_tree().get_first_node_in_group("bulletPool").add_child(newBullet)

View file

@ -5,9 +5,10 @@
[node name="Railgun" instance=ExtResource("1_lb4uk")]
script = ExtResource("2_ur8td")
damage = 10
cooldown = 10.0
damage = 20
cooldown = 5.0
penetration = 5
bulletSpeed = 50.0
[node name="cooldownTimer" parent="." index="0"]
wait_time = 10.0