2018-11-14 20:36:02 -05:00
|
|
|
[gd_scene load_steps=10 format=2]
|
2018-05-26 02:55:17 -04:00
|
|
|
|
|
|
|
[ext_resource path="res://BadLaser.gd" type="Script" id=1]
|
|
|
|
[ext_resource path="res://Laser.tscn" type="PackedScene" id=2]
|
2018-11-12 23:17:53 -05:00
|
|
|
[ext_resource path="res://art/bad/laser/bad_laser_bg.png" type="Texture" id=3]
|
|
|
|
[ext_resource path="res://art/bad/laser/bad_laser_stationary.png" type="Texture" id=4]
|
2018-11-14 20:36:02 -05:00
|
|
|
[ext_resource path="res://art/bad/laser/bad_laser_broken.png" type="Texture" id=5]
|
|
|
|
[ext_resource path="res://art/bad/laser/bad_laser_rotatable.png" type="Texture" id=6]
|
2018-05-26 02:55:17 -04:00
|
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id=1]
|
|
|
|
|
|
|
|
animations = [ {
|
2018-11-14 20:36:02 -05:00
|
|
|
"frames": [ ExtResource( 4 ), ExtResource( 5 ) ],
|
2018-05-26 02:55:17 -04:00
|
|
|
"loop": true,
|
|
|
|
"name": "New Anim",
|
|
|
|
"speed": 5.0
|
|
|
|
} ]
|
|
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id=2]
|
|
|
|
|
|
|
|
animations = [ {
|
2018-11-14 20:36:02 -05:00
|
|
|
"frames": [ ExtResource( 6 ) ],
|
2018-05-26 02:55:17 -04:00
|
|
|
"loop": true,
|
|
|
|
"name": "default",
|
|
|
|
"speed": 5.0
|
|
|
|
} ]
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id=3]
|
|
|
|
|
|
|
|
custom_solver_bias = 0.0
|
|
|
|
radius = 867.264
|
|
|
|
|
2018-11-12 23:17:53 -05:00
|
|
|
[node name="BadLaser" type="Area2D" groups=[
|
|
|
|
"enemies",
|
|
|
|
]]
|
2018-05-26 02:55:17 -04:00
|
|
|
|
|
|
|
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
|
2018-11-12 23:17:53 -05:00
|
|
|
collision_mask = 0
|
2018-05-26 02:55:17 -04:00
|
|
|
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
|
|
|
|
|
2018-11-12 23:17:53 -05:00
|
|
|
[node name="BG" type="Sprite" parent="." index="1"]
|
|
|
|
|
|
|
|
position = Vector2( 3.5857, 9.035 )
|
|
|
|
scale = Vector2( 1.0195, 1.0195 )
|
|
|
|
texture = ExtResource( 3 )
|
|
|
|
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="." index="2"]
|
2018-05-26 02:55:17 -04:00
|
|
|
|
|
|
|
frames = SubResource( 1 )
|
|
|
|
animation = "New Anim"
|
2018-11-12 23:17:53 -05:00
|
|
|
_sections_unfolded = [ "Transform" ]
|
2018-05-26 02:55:17 -04:00
|
|
|
|
2018-11-12 23:17:53 -05:00
|
|
|
[node name="Rotatable" type="AnimatedSprite" parent="." index="3"]
|
2018-05-26 02:55:17 -04:00
|
|
|
|
|
|
|
frames = SubResource( 2 )
|
|
|
|
animation = "default"
|
|
|
|
_sections_unfolded = [ "Transform" ]
|
|
|
|
|
2018-11-12 23:17:53 -05:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." index="4"]
|
2018-05-26 02:55:17 -04:00
|
|
|
|
|
|
|
position = Vector2( 0, -14.2857 )
|
|
|
|
shape = SubResource( 3 )
|
|
|
|
|
2018-11-12 23:17:53 -05:00
|
|
|
[node name="Line2D" type="Line2D" parent="." index="5"]
|
2018-05-26 02:55:17 -04:00
|
|
|
|
|
|
|
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"]
|
|
|
|
|
|
|
|
|