mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 02:05:54 +00:00
Fire Bullets
This commit is contained in:
parent
e2b58a73d8
commit
f96b7cacee
5 changed files with 140 additions and 14 deletions
18
Resources/Bullets/Fire_Emitter_Bullet.tres
Normal file
18
Resources/Bullets/Fire_Emitter_Bullet.tres
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
[gd_resource type="Resource" script_class="BulletResource" load_steps=3 format=3 uid="uid://dtkti2rjlcp3u"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bkndk7ffavhdk" path="res://Scenes/Weapons/Bullets/Gas_Bullet.tscn" id="1_yoaa8"]
|
||||
[ext_resource type="Script" uid="uid://dslyrfcej3g2n" path="res://Scripts/Resources/BulletResource.cs" id="2_udcap"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("2_udcap")
|
||||
BulletScene = ExtResource("1_yoaa8")
|
||||
BulletSpeed = 0.0
|
||||
Direction = Vector2(1, 0)
|
||||
BulletDamage = 10.0
|
||||
LifeTime = 1.0
|
||||
DestroyOnCollision = false
|
||||
Owner = 0
|
||||
DamageType = 2
|
||||
Controllable = false
|
||||
TimeModifiers = null
|
||||
metadata/_custom_type_script = "uid://dslyrfcej3g2n"
|
||||
10
Scenes/Activable/ScriptableInvisibleEmitter.tscn
Normal file
10
Scenes/Activable/ScriptableInvisibleEmitter.tscn
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://nupd3pg74vua"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c1gu44a1kkmt1" path="res://Scripts/Actors/ScriptableBulletsEmitter.cs" id="1_3nrhr"]
|
||||
[ext_resource type="Script" uid="uid://c6467d6yx50qh" path="res://Scripts/Components/BulletSpawner.cs" id="2_4bw32"]
|
||||
|
||||
[node name="InvisibleBulletEmitter" type="Node2D"]
|
||||
script = ExtResource("1_3nrhr")
|
||||
|
||||
[node name="BulletSpawner" type="Node2D" parent="."]
|
||||
script = ExtResource("2_4bw32")
|
||||
45
Scenes/Weapons/Bullets/Gas_Bullet.tscn
Normal file
45
Scenes/Weapons/Bullets/Gas_Bullet.tscn
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://bkndk7ffavhdk"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dsa4b75hdig8p" path="res://Scripts/Bullet.cs" id="1_0t8os"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_w50av"]
|
||||
radius = 2.0
|
||||
height = 38.68
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_0t8os"]
|
||||
colors = PackedColorArray(0.815686, 0, 0, 1, 1, 0.478431, 0.105882, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_xbs0q"]
|
||||
gradient = SubResource("Gradient_0t8os")
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_ai62n"]
|
||||
particle_flag_disable_z = true
|
||||
gravity = Vector3(0, 98, 0)
|
||||
radial_accel_min = -2.23517e-06
|
||||
radial_accel_max = 93.14
|
||||
tangential_accel_min = -19.42
|
||||
tangential_accel_max = 14.86
|
||||
color_ramp = SubResource("GradientTexture1D_xbs0q")
|
||||
|
||||
[node name="Bullet" type="Area2D" groups=["bullets"]]
|
||||
collision_layer = 136
|
||||
collision_mask = 87
|
||||
script = ExtResource("1_0t8os")
|
||||
Speed = 0.0
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(0, 15.885)
|
||||
shape = SubResource("CapsuleShape2D_w50av")
|
||||
|
||||
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
|
||||
|
||||
[node name="GPUParticles2D" type="GPUParticles2D" parent="."]
|
||||
amount = 16
|
||||
lifetime = 0.64
|
||||
trail_lifetime = 1.0
|
||||
process_material = SubResource("ParticleProcessMaterial_ai62n")
|
||||
|
||||
[connection signal="area_entered" from="." to="." method="_on_area_entered"]
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -401,6 +401,7 @@ texture = ExtResource("1_u4jco")
|
|||
9:5/0 = 0
|
||||
9:5/0/terrain_set = 0
|
||||
9:5/0/terrain = 1
|
||||
9:5/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
|
||||
9:5/0/terrains_peering_bit/right_side = 1
|
||||
9:5/0/terrains_peering_bit/bottom_side = 1
|
||||
9:5/0/terrains_peering_bit/left_side = 1
|
||||
|
|
@ -474,6 +475,7 @@ texture = ExtResource("1_u4jco")
|
|||
9:6/0 = 0
|
||||
9:6/0/terrain_set = 0
|
||||
9:6/0/terrain = 1
|
||||
9:6/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
|
||||
9:6/0/terrains_peering_bit/right_side = 1
|
||||
9:6/0/terrains_peering_bit/bottom_side = 1
|
||||
9:6/0/terrains_peering_bit/top_side = 1
|
||||
|
|
@ -899,12 +901,16 @@ texture = ExtResource("1_u4jco")
|
|||
3:13/0/terrains_peering_bit/top_right_corner = 2
|
||||
4:13/0 = 0
|
||||
5:13/0 = 0
|
||||
5:13/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
|
||||
5:13/0/physics_layer_1/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
|
||||
6:13/0 = 0
|
||||
6:13/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
|
||||
6:13/0/physics_layer_1/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
|
||||
7:13/0 = 0
|
||||
7:13/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
|
||||
7:13/0/physics_layer_1/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
|
||||
8:13/0 = 0
|
||||
8:13/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
|
||||
8:13/0/physics_layer_1/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
|
||||
9:13/0 = 0
|
||||
0:14/0 = 0
|
||||
|
|
@ -958,23 +964,27 @@ texture = ExtResource("1_u4jco")
|
|||
10:5/0 = 0
|
||||
10:5/0/terrain_set = 0
|
||||
10:5/0/terrain = 1
|
||||
10:5/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
|
||||
10:5/0/terrains_peering_bit/right_side = 1
|
||||
10:5/0/terrains_peering_bit/left_side = 1
|
||||
10:5/0/terrains_peering_bit/top_side = 1
|
||||
10:6/0 = 0
|
||||
10:6/0/terrain_set = 0
|
||||
10:6/0/terrain = 1
|
||||
10:6/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
|
||||
10:6/0/terrains_peering_bit/bottom_side = 1
|
||||
10:6/0/terrains_peering_bit/left_side = 1
|
||||
10:6/0/terrains_peering_bit/top_side = 1
|
||||
4:6/0 = 0
|
||||
4:6/0/terrain_set = 0
|
||||
4:6/0/terrain = 1
|
||||
4:6/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
|
||||
4:6/0/terrains_peering_bit/right_side = 1
|
||||
4:6/0/terrains_peering_bit/bottom_side = 1
|
||||
4:6/0/terrains_peering_bit/left_side = 1
|
||||
4:6/0/terrains_peering_bit/top_side = 1
|
||||
4:7/0 = 0
|
||||
4:7/0/physics_layer_0/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
|
||||
10:0/0 = 0
|
||||
10:0/0/physics_layer_1/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
|
||||
10:0/0/navigation_layer_0/polygon = SubResource("NavigationPolygon_1fi5l")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue