38 lines
1,018 B
Text
38 lines
1,018 B
Text
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://other/bulletcolour.tres" type="Gradient" id=1]
|
|
[ext_resource path="res://sprites/sprite21_0.png" type="Texture" id=2]
|
|
[ext_resource path="res://scripts/bullet.gd" type="Script" id=3]
|
|
|
|
[sub_resource type="CircleShape2D" id=1]
|
|
radius = 7.0
|
|
|
|
[node name="bullet" type="KinematicBody2D"]
|
|
collision_layer = 8
|
|
collision_mask = 2
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="beamtrail" type="CPUParticles2D" parent="."]
|
|
amount = 60
|
|
lifetime = 0.5
|
|
local_coords = false
|
|
draw_order = 1
|
|
texture = ExtResource( 2 )
|
|
spread = 0.0
|
|
gravity = Vector2( 0, 0 )
|
|
color_ramp = ExtResource( 1 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="delTimer" type="Timer" parent="."]
|
|
wait_time = 10.0
|
|
one_shot = true
|
|
autostart = true
|
|
|
|
[node name="beam" type="Sprite" parent="."]
|
|
visible = false
|
|
modulate = Color( 0, 1, 0, 1 )
|
|
texture = ExtResource( 2 )
|
|
|
|
[connection signal="timeout" from="delTimer" to="." method="_on_delTimer_timeout"]
|