mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-17 17:23:48 +00:00
Fire Bullets
This commit is contained in:
parent
e2b58a73d8
commit
f96b7cacee
5 changed files with 140 additions and 14 deletions
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
Loading…
Add table
Add a link
Reference in a new issue