46 lines
1.6 KiB
Plaintext
46 lines
1.6 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://btcb75wp78ory"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://36q833dx6dmq" path="res://ship.tscn" id="1_1oj5k"]
|
|
[ext_resource type="PackedScene" uid="uid://b6hqwxrexoa2n" path="res://spawner.tscn" id="2_yx7mw"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_1oj5k"]
|
|
size = Vector2(20, 640)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_yx7mw"]
|
|
size = Vector2(640, 20)
|
|
|
|
[node name="main_game" type="Node2D"]
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="."]
|
|
offset_right = 640.0
|
|
offset_bottom = 640.0
|
|
color = Color(0, 0, 0, 1)
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
position = Vector2(320, 320)
|
|
|
|
[node name="CharacterBody2D" parent="." instance=ExtResource("1_1oj5k")]
|
|
position = Vector2(156, 206)
|
|
|
|
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
|
position = Vector2(0, 320)
|
|
shape = SubResource("RectangleShape2D_1oj5k")
|
|
|
|
[node name="CollisionShape2D2" type="CollisionShape2D" parent="StaticBody2D"]
|
|
position = Vector2(640, 320)
|
|
shape = SubResource("RectangleShape2D_1oj5k")
|
|
|
|
[node name="CollisionShape2D3" type="CollisionShape2D" parent="StaticBody2D"]
|
|
position = Vector2(320, 0)
|
|
shape = SubResource("RectangleShape2D_yx7mw")
|
|
|
|
[node name="CollisionShape2D4" type="CollisionShape2D" parent="StaticBody2D"]
|
|
position = Vector2(320, 640)
|
|
shape = SubResource("RectangleShape2D_yx7mw")
|
|
|
|
[node name="spawner" parent="." node_paths=PackedStringArray("player") instance=ExtResource("2_yx7mw")]
|
|
player = NodePath("../CharacterBody2D")
|
|
distance = 500.0
|