mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 08:55:35 +00:00
3D Explosions
This commit is contained in:
parent
aa8f6c6fa8
commit
ad63d2ff43
20 changed files with 207 additions and 19 deletions
41
Scenes/Weapons/Explosion_Bullet_3D.tscn
Normal file
41
Scenes/Weapons/Explosion_Bullet_3D.tscn
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://cmd3j4xc2f287"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cg6y36s7buapp" path="res://Scripts/Weapons/Bullet3D.cs" id="1_l2l87"]
|
||||
[ext_resource type="Texture2D" uid="uid://cybpmpb0d8yva" path="res://Sprites/Projectile.png" id="2_rmbhq"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://lh1q76788ixw" path="res://Resources/Sprites/explosion_proc_1.tres" id="3_rmbhq"]
|
||||
[ext_resource type="Script" uid="uid://cvk4jbit45sfi" path="res://Scripts/Components/Actors/PooledAnimatedSpritePlayer3D.cs" id="4_ny3mn"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_pklkt"]
|
||||
radius = 2.00402
|
||||
|
||||
[node name="Explosion" type="Area3D" groups=["bullets"]]
|
||||
collision_layer = 136
|
||||
collision_mask = 87
|
||||
script = ExtResource("1_l2l87")
|
||||
Speed = 200.0
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="Sprite" type="Sprite3D" parent="."]
|
||||
visible = false
|
||||
pixel_size = 0.05
|
||||
billboard = 1
|
||||
texture_filter = 0
|
||||
texture = ExtResource("2_rmbhq")
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("SphereShape3D_pklkt")
|
||||
|
||||
[node name="VisibleOnScreenNotifier" type="VisibleOnScreenNotifier3D" parent="."]
|
||||
|
||||
[node name="AnimatedSprite3D" type="AnimatedSprite3D" parent="."]
|
||||
pixel_size = 0.05
|
||||
billboard = 1
|
||||
texture_filter = 0
|
||||
sprite_frames = ExtResource("3_rmbhq")
|
||||
autoplay = "default"
|
||||
script = ExtResource("4_ny3mn")
|
||||
|
||||
[connection signal="Initialized" from="." to="AnimatedSprite3D" method="PlayAnimation"]
|
||||
[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="VisibleOnScreenNotifier" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]
|
||||
41
Scenes/Weapons/Explosion_Bullet_Small_3D.tscn
Normal file
41
Scenes/Weapons/Explosion_Bullet_Small_3D.tscn
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
[gd_scene load_steps=6 format=3 uid="uid://bu464cgcdnihv"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cg6y36s7buapp" path="res://Scripts/Weapons/Bullet3D.cs" id="1_uud1m"]
|
||||
[ext_resource type="Texture2D" uid="uid://cybpmpb0d8yva" path="res://Sprites/Projectile.png" id="2_alu0c"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://lh1q76788ixw" path="res://Resources/Sprites/explosion_proc_1.tres" id="3_qsphx"]
|
||||
[ext_resource type="Script" uid="uid://cvk4jbit45sfi" path="res://Scripts/Components/Actors/PooledAnimatedSpritePlayer3D.cs" id="4_5oowj"]
|
||||
|
||||
[sub_resource type="SphereShape3D" id="SphereShape3D_pklkt"]
|
||||
radius = 2.00402
|
||||
|
||||
[node name="Explosion" type="Area3D" groups=["bullets"]]
|
||||
collision_layer = 136
|
||||
collision_mask = 87
|
||||
script = ExtResource("1_uud1m")
|
||||
Speed = 200.0
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="Sprite" type="Sprite3D" parent="."]
|
||||
visible = false
|
||||
pixel_size = 0.05
|
||||
billboard = 1
|
||||
texture_filter = 0
|
||||
texture = ExtResource("2_alu0c")
|
||||
|
||||
[node name="CollisionShape" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("SphereShape3D_pklkt")
|
||||
|
||||
[node name="VisibleOnScreenNotifier" type="VisibleOnScreenNotifier3D" parent="."]
|
||||
|
||||
[node name="AnimatedSprite3D" type="AnimatedSprite3D" parent="."]
|
||||
pixel_size = 0.025
|
||||
billboard = 1
|
||||
texture_filter = 0
|
||||
sprite_frames = ExtResource("3_qsphx")
|
||||
autoplay = "default"
|
||||
script = ExtResource("4_5oowj")
|
||||
|
||||
[connection signal="Initialized" from="." to="AnimatedSprite3D" method="PlayAnimation"]
|
||||
[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="VisibleOnScreenNotifier" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue