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

@ -10,15 +10,15 @@ var penetration: int = 1
var penetratedCount: int = 0
var range: float = 1.0
var fromTimeGhost = false
func _ready() -> void:
damageArea.damage = damage
rangeTimer.start(range)
func spawn(_positon: Vector2, _rotation: float, _damage: int, _range: float = 8.0, _penetration: int = 1, _speed: int = 10) -> void:
global_position = _positon
rotation = _rotation
damage = _damage
$DamageArea.damage = _damage
penetration = _penetration
range = _range
speed = _speed * 10000
@ -29,6 +29,12 @@ func _physics_process(delta: float) -> void:
move_and_slide()
func _on_damage_area_area_entered(area: Area2D) -> void:
if fromTimeGhost:
#print(area.get_parent())
#print(Globals.getPlayer())
if area.get_parent() == Globals.getPlayer():
return
damageArea.damageHurtArea(area, damage)
penetratedCount += 1
checkPenetration()

View file

@ -4,6 +4,7 @@
[ext_resource type="Script" uid="uid://w5vknsebe1yd" path="res://scenes/bullet/bullet.gd" id="1_mkndb"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_mkndb"]
size = Vector2(16, 48)
[node name="Bullet" type="CharacterBody2D" groups=["bullet"]]
collision_layer = 0
@ -14,7 +15,6 @@ script = ExtResource("1_mkndb")
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(0, -9.53674e-07)
scale = Vector2(0.125, 0.25)
[node name="rangeTimer" type="Timer" parent="."]
one_shot = true

View file

@ -2,14 +2,16 @@
[ext_resource type="PackedScene" uid="uid://0ndix1r8v6i1" path="res://scenes/bullet/bullet.tscn" id="1_a54uy"]
[ext_resource type="Script" uid="uid://58udf4vhqogw" path="res://scenes/bullet/bulletMinigun/bulletMinigun.gd" id="2_4u8er"]
[ext_resource type="Texture2D" uid="uid://cfwyw1sr6x2np" path="res://icon.svg" id="3_xaefx"]
[ext_resource type="Texture2D" uid="uid://d2h1eyb147j7t" path="res://assets/bullets/minigunBullet.png" id="3_xaefx"]
[node name="BulletMinigun" instance=ExtResource("1_a54uy")]
script = ExtResource("2_4u8er")
[node name="Sprite2D" parent="." index="1"]
position = Vector2(4.76837e-07, 3.41061e-13)
scale = Vector2(0.25, 0.25)
position = Vector2(0, 0)
texture = ExtResource("3_xaefx")
[node name="CollisionShape2D" parent="DamageArea" index="0"]
position = Vector2(0, 4)
[editable path="DamageArea"]

View file

@ -1,3 +0,0 @@
[gd_scene format=3 uid="uid://dm0rd88xd5m7k"]
[node name="bulletPool" type="Node2D" groups=["bulletPool"]]

View file

@ -1,9 +1,13 @@
[gd_scene load_steps=3 format=3 uid="uid://y7lohopyn6bw"]
[gd_scene load_steps=4 format=3 uid="uid://y7lohopyn6bw"]
[ext_resource type="PackedScene" uid="uid://0ndix1r8v6i1" path="res://scenes/bullet/bullet.tscn" id="1_0cdtm"]
[ext_resource type="Script" uid="uid://b884kxhja5sib" path="res://scenes/bullet/bulletRailgun/bulletRailgun.gd" id="2_pmqys"]
[ext_resource type="Texture2D" uid="uid://xj1r10s5lg48" path="res://assets/bullets/railgunBullet.png" id="3_5rfgl"]
[node name="BulletRailgun" instance=ExtResource("1_0cdtm")]
script = ExtResource("2_pmqys")
[node name="Sprite2D" parent="." index="1"]
texture = ExtResource("3_5rfgl")
[editable path="DamageArea"]

View file

@ -1,9 +1,13 @@
[gd_scene load_steps=3 format=3 uid="uid://bye43kihfl72l"]
[gd_scene load_steps=4 format=3 uid="uid://bye43kihfl72l"]
[ext_resource type="PackedScene" uid="uid://0ndix1r8v6i1" path="res://scenes/bullet/bullet.tscn" id="1_shfn0"]
[ext_resource type="Script" uid="uid://ddbv5kpk32diu" path="res://scenes/bullet/bulletShotgun/bulletShotgun.gd" id="2_mk7vs"]
[ext_resource type="Texture2D" uid="uid://b8y5bc5ntygd8" path="res://assets/bullets/shotgunBullet.png" id="3_uxgou"]
[node name="BulletShotgun" instance=ExtResource("1_shfn0")]
script = ExtResource("2_mk7vs")
[node name="Sprite2D" parent="." index="1"]
texture = ExtResource("3_uxgou")
[editable path="DamageArea"]