-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnew_laser.tscn
59 lines (44 loc) · 1.55 KB
/
new_laser.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[gd_scene load_steps=5 format=1]
[ext_resource path="res://laser_body.gd" type="Script" id=1]
[ext_resource path="res://images/new_laser.png" type="Texture" id=2]
[sub_resource type="CircleShape2D" id=1]
custom_solver_bias = 0.0
radius = 1.0
[sub_resource type="Animation" id=2]
resource/name = "shot"
length = 0.17
loop = false
step = 0.0
tracks/0/type = "value"
tracks/0/path = NodePath(".:frame")
tracks/0/interp = 1
tracks/0/keys = { "cont":false, "times":FloatArray( 0.000219572, 0.0171456, 0.032296, 0.0486636, 0.0641529, 0.0807401, 0.0984251, 0.115451, 0.130721, 0.144221, 0.157365, 0.169341 ), "transitions":FloatArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ), "values":[ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 ] }
[node name="laser_body" type="KinematicBody2D"]
input/pickable = false
shapes/0/shape = SubResource( 1 )
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0.5 )
shapes/0/trigger = false
collision/layers = 4
collision/mask = 19
collision/margin = 0.08
script/script = ExtResource( 1 )
[node name="laser_sprite" type="Sprite" parent="."]
texture = ExtResource( 2 )
centered = false
offset = Vector2( -100, 0 )
vframes = 12
frame = 11
[node name="anim" type="AnimationPlayer" parent="laser_sprite"]
playback/process_mode = 1
playback/default_blend_time = 0.0
root/root = NodePath("..")
anims/shot = SubResource( 2 )
playback/active = true
playback/speed = 1.0
blend_times = [ ]
autoplay = "shot"
[node name="laser_collision" type="CollisionShape2D" parent="."]
transform/pos = Vector2( 0, 0.5 )
shape = SubResource( 1 )
trigger = false
_update_shape_index = 0