73 lines
1.8 KiB
Plaintext
73 lines
1.8 KiB
Plaintext
[gd_scene load_steps=8 format=2]
|
|
|
|
[ext_resource path="res://Player.gd" type="Script" id=1]
|
|
[ext_resource path="res://Laser.tscn" type="PackedScene" id=2]
|
|
[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]
|
|
|
|
[sub_resource type="SpriteFrames" id=1]
|
|
|
|
animations = [ {
|
|
"frames": [ ExtResource( 4 ), ExtResource( 5 ) ],
|
|
"loop": true,
|
|
"name": "default",
|
|
"speed": 15.0
|
|
} ]
|
|
|
|
[sub_resource type="CapsuleShape2D" id=2]
|
|
|
|
custom_solver_bias = 0.0
|
|
radius = 25.7545
|
|
height = 40.4125
|
|
|
|
[node name="Player" type="Area2D"]
|
|
|
|
input_pickable = true
|
|
gravity_point = true
|
|
gravity_vec = Vector2( 10, 10 )
|
|
gravity = 1000.0
|
|
linear_damp = 0.1
|
|
angular_damp = 1.0
|
|
collision_layer = 29
|
|
collision_mask = 29
|
|
audio_bus_override = false
|
|
audio_bus_name = "Master"
|
|
script = ExtResource( 1 )
|
|
_sections_unfolded = [ "Collision", "Z Index" ]
|
|
Laser = ExtResource( 2 )
|
|
|
|
[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"]
|
|
|
|
position = Vector2( 1.01175, 7.07602 )
|
|
scale = Vector2( 0.2, 0.2 )
|
|
frames = SubResource( 1 )
|
|
animation = "default"
|
|
_sections_unfolded = [ "Transform" ]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." index="2"]
|
|
|
|
position = Vector2( 5.85673, 1.31631 )
|
|
rotation = 1.5708
|
|
shape = SubResource( 2 )
|
|
_sections_unfolded = [ "Material", "Transform", "Visibility", "Z Index" ]
|
|
|
|
[node name="Timer" type="Timer" parent="." index="3"]
|
|
|
|
process_mode = 1
|
|
wait_time = 0.02
|
|
one_shot = false
|
|
autostart = true
|
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|
|
|
|
|