2018-11-29 16:04:22 -05:00
|
|
|
[gd_scene load_steps=8 format=2]
|
2018-05-23 01:40:45 -04:00
|
|
|
|
|
|
|
[ext_resource path="res://Player.gd" type="Script" id=1]
|
2018-05-23 03:57:15 -04:00
|
|
|
[ext_resource path="res://Laser.tscn" type="PackedScene" id=2]
|
2018-11-29 16:04:22 -05:00
|
|
|
[ext_resource path="res://art/player/laserer2.png" type="Texture" id=3]
|
|
|
|
[ext_resource path="res://art/player/Rocket1.png" type="Texture" id=4]
|
|
|
|
[ext_resource path="res://art/player/Rocket2.png" type="Texture" id=5]
|
2018-05-23 01:40:45 -04:00
|
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id=1]
|
|
|
|
|
|
|
|
animations = [ {
|
2018-11-29 16:04:22 -05:00
|
|
|
"frames": [ ExtResource( 4 ), ExtResource( 5 ) ],
|
2018-05-23 01:40:45 -04:00
|
|
|
"loop": true,
|
|
|
|
"name": "default",
|
|
|
|
"speed": 15.0
|
|
|
|
} ]
|
|
|
|
|
|
|
|
[sub_resource type="CapsuleShape2D" id=2]
|
|
|
|
|
|
|
|
custom_solver_bias = 0.0
|
2018-11-12 23:17:53 -05:00
|
|
|
radius = 25.7545
|
2018-05-26 02:55:17 -04:00
|
|
|
height = 40.4125
|
2018-05-23 01:40:45 -04:00
|
|
|
|
2018-11-13 20:53:07 -05:00
|
|
|
[node name="Player" type="Area2D"]
|
2018-05-23 01:40:45 -04:00
|
|
|
|
|
|
|
input_pickable = true
|
2018-05-23 11:02:52 -04:00
|
|
|
gravity_point = true
|
|
|
|
gravity_vec = Vector2( 10, 10 )
|
|
|
|
gravity = 1000.0
|
2018-05-23 01:40:45 -04:00
|
|
|
linear_damp = 0.1
|
|
|
|
angular_damp = 1.0
|
2018-05-26 02:55:17 -04:00
|
|
|
collision_layer = 29
|
|
|
|
collision_mask = 29
|
2018-05-23 01:40:45 -04:00
|
|
|
audio_bus_override = false
|
|
|
|
audio_bus_name = "Master"
|
|
|
|
script = ExtResource( 1 )
|
2018-05-26 02:55:17 -04:00
|
|
|
_sections_unfolded = [ "Collision", "Z Index" ]
|
2018-05-23 01:40:45 -04:00
|
|
|
Laser = ExtResource( 2 )
|
|
|
|
|
2018-11-29 16:04:22 -05:00
|
|
|
[node name="Gunner2" type="Sprite" parent="." index="0"]
|
|
|
|
|
|
|
|
visible = false
|
|
|
|
position = Vector2( 0, 7 )
|
|
|
|
scale = Vector2( 0.2, 0.2 )
|
|
|
|
texture = ExtResource( 3 )
|
|
|
|
_sections_unfolded = [ "Transform" ]
|
|
|
|
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="." index="1"]
|
2018-05-23 01:40:45 -04:00
|
|
|
|
|
|
|
position = Vector2( 1.01175, 7.07602 )
|
|
|
|
scale = Vector2( 0.2, 0.2 )
|
|
|
|
frames = SubResource( 1 )
|
|
|
|
animation = "default"
|
|
|
|
_sections_unfolded = [ "Transform" ]
|
|
|
|
|
2018-11-29 16:04:22 -05:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." index="2"]
|
2018-05-23 01:40:45 -04:00
|
|
|
|
2018-11-12 23:17:53 -05:00
|
|
|
position = Vector2( 5.85673, 1.31631 )
|
|
|
|
rotation = 1.5708
|
2018-05-23 01:40:45 -04:00
|
|
|
shape = SubResource( 2 )
|
|
|
|
_sections_unfolded = [ "Material", "Transform", "Visibility", "Z Index" ]
|
|
|
|
|
2018-11-29 16:04:22 -05:00
|
|
|
[node name="Timer" type="Timer" parent="." index="3"]
|
2018-11-12 23:17:53 -05:00
|
|
|
|
|
|
|
process_mode = 1
|
|
|
|
wait_time = 0.02
|
|
|
|
one_shot = false
|
|
|
|
autostart = true
|
|
|
|
|
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|
|
|
|
|
2018-05-23 01:40:45 -04:00
|
|
|
|