Fronter/BadLaser.tscn

90 lines
2.1 KiB
Plaintext

[gd_scene load_steps=8 format=2]
[ext_resource path="res://BadLaser.gd" type="Script" id=1]
[ext_resource path="res://Laser.tscn" type="PackedScene" id=2]
[ext_resource path="res://art/bad/laser/bad_laser_stationary.png" type="Texture" id=3]
[ext_resource path="res://art/bad/laser/bad_laser_rotatable.png" type="Texture" id=4]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 3 ) ],
"loop": true,
"name": "New Anim",
"speed": 5.0
} ]
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 4 ) ],
"loop": true,
"name": "default",
"speed": 5.0
} ]
[sub_resource type="CircleShape2D" id=3]
custom_solver_bias = 0.0
radius = 867.264
[node name="BadLaser" type="Area2D"]
position = Vector2( 947.34, 293.528 )
scale = Vector2( 0.07, 0.07 )
z_index = -1
input_pickable = true
gravity_vec = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0
collision_layer = 4
collision_mask = 4
audio_bus_override = false
audio_bus_name = "Master"
script = ExtResource( 1 )
_sections_unfolded = [ "Collision", "Transform", "Z Index" ]
SPEED = 20
Laser = ExtResource( 2 )
[node name="BlinkTimer" type="Timer" parent="." index="0"]
process_mode = 1
wait_time = 1.0
one_shot = false
autostart = false
[node name="AnimatedSprite" type="AnimatedSprite" parent="." index="1"]
frames = SubResource( 1 )
animation = "New Anim"
[node name="Rotatable" type="AnimatedSprite" parent="." index="2"]
frames = SubResource( 2 )
animation = "default"
_sections_unfolded = [ "Transform" ]
[node name="CollisionShape2D" type="CollisionShape2D" parent="." index="3"]
position = Vector2( 0, -14.2857 )
shape = SubResource( 3 )
[node name="Line2D" type="Line2D" parent="." index="4"]
position = Vector2( 9.15527e-05, 33.3334 )
points = PoolVector2Array( -750, -1100, 143, -1100 )
width = 40.0
default_color = Color( 0, 1, 0.0390625, 1 )
texture_mode = 31
joint_mode = 2
begin_cap_mode = 2
end_cap_mode = 2
sharp_limit = 2.0
round_precision = 8
_sections_unfolded = [ "Capping" ]
[connection signal="body_entered" from="." to="." method="_on_Bad1_body_entered"]