godot-space-escape/scenes/Main.tscn

51 lines
1.7 KiB
Plaintext

[gd_scene load_steps=9 format=2]
[ext_resource path="res://scenes/Main.gd" type="Script" id=1]
[ext_resource path="res://scenes/Astroid1.tscn" type="PackedScene" id=2]
[ext_resource path="res://scenes/Astroid2.tscn" type="PackedScene" id=3]
[ext_resource path="res://scenes/Astroid3.tscn" type="PackedScene" id=4]
[ext_resource path="res://scenes/Astroid4.tscn" type="PackedScene" id=5]
[ext_resource path="res://images/BG.png" type="Texture" id=6]
[ext_resource path="res://scenes/Player.tscn" type="PackedScene" id=7]
[sub_resource type="Curve2D" id=1]
_data = {
"points": PoolVector2Array( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1030, 0, 0, 0, 0, 0, 1030, 600, 0, 0, 0, 0, 0, 600, 0, 0, 0, 0, 0, 0 )
}
[node name="Main" type="Node"]
script = ExtResource( 1 )
Astroid1 = ExtResource( 2 )
Astroid2 = ExtResource( 3 )
Astroid3 = ExtResource( 4 )
Astroid4 = ExtResource( 5 )
[node name="background" type="ParallaxBackground" parent="."]
[node name="ParallaxLayer" type="ParallaxLayer" parent="background"]
[node name="TextureRect" type="TextureRect" parent="background/ParallaxLayer"]
margin_left = -40.0
margin_top = -80.0
margin_right = 1090.0
margin_bottom = 790.0
texture = ExtResource( 6 )
expand = true
stretch_mode = 2
[node name="Player" parent="." instance=ExtResource( 7 )]
position = Vector2( 160, 70 )
[node name="StartPosition" type="Position2D" parent="."]
position = Vector2( 240, 400 )
[node name="ScreenEadge" type="Path2D" parent="."]
curve = SubResource( 1 )
[node name="Follow" type="PathFollow2D" parent="ScreenEadge"]
[node name="AstroidTimer" type="Timer" parent="."]
[node name="StartTimer" type="Timer" parent="."]
[connection signal="timeout" from="AstroidTimer" to="." method="_on_AstroidTimer_timeout"]