rocket projectile scene
This commit is contained in:
6
growth/rocket_projectile.gd
Normal file
6
growth/rocket_projectile.gd
Normal file
@@ -0,0 +1,6 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
|
||||
func _on_timer_timeout():
|
||||
self.queue_free()
|
||||
1
growth/rocket_projectile.gd.uid
Normal file
1
growth/rocket_projectile.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://2gkeyxrjxt1b
|
||||
35
growth/rocket_projectile.tscn
Normal file
35
growth/rocket_projectile.tscn
Normal file
@@ -0,0 +1,35 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://csqaw6y03bohh"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://2gkeyxrjxt1b" path="res://rocket_projectile.gd" id="1_7grw8"]
|
||||
|
||||
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_7grw8"]
|
||||
particle_flag_disable_z = true
|
||||
inherit_velocity_ratio = 5.035
|
||||
direction = Vector3(0.005, 1, 0)
|
||||
spread = 30.0
|
||||
flatness = 0.115
|
||||
initial_velocity_min = 170.59
|
||||
initial_velocity_max = 170.59
|
||||
gravity = Vector3(0, 98, 0)
|
||||
scale_min = 5.0
|
||||
scale_max = 10.0
|
||||
color = Color(0.61, 0.61, 0.61, 1)
|
||||
|
||||
[node name="RocketProjectile" type="Node2D"]
|
||||
script = ExtResource("1_7grw8")
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
|
||||
[node name="GPUParticles2D" type="GPUParticles2D" parent="Sprite2D"]
|
||||
process_material = SubResource("ParticleProcessMaterial_7grw8")
|
||||
|
||||
[node name="Area2D" type="Area2D" parent="."]
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 2.0
|
||||
one_shot = true
|
||||
autostart = true
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
Reference in New Issue
Block a user