51 lines
1.5 KiB
Plaintext
51 lines
1.5 KiB
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://b0main_scene_001"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://b0player_fox_001" path="res://scenes/player/fox.tscn" id="1_fox"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_floor"]
|
|
size = Vector2(2560, 64)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_wall_l"]
|
|
size = Vector2(64, 720)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_wall_r"]
|
|
size = Vector2(64, 720)
|
|
|
|
[node name="Main" type="Node2D"]
|
|
|
|
[node name="Ground" type="StaticBody2D" parent="."]
|
|
position = Vector2(640, 640)
|
|
collision_layer = 1
|
|
collision_mask = 1
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Ground"]
|
|
shape = SubResource("RectangleShape2D_floor")
|
|
|
|
[node name="WallLeft" type="StaticBody2D" parent="."]
|
|
position = Vector2(-80, 360)
|
|
collision_layer = 1
|
|
collision_mask = 1
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="WallLeft"]
|
|
shape = SubResource("RectangleShape2D_wall_l")
|
|
|
|
[node name="WallRight" type="StaticBody2D" parent="."]
|
|
position = Vector2(1360, 360)
|
|
collision_layer = 1
|
|
collision_mask = 1
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="WallRight"]
|
|
shape = SubResource("RectangleShape2D_wall_r")
|
|
|
|
[node name="Fox" parent="." instance=ExtResource("1_fox")]
|
|
position = Vector2(200, 500)
|
|
|
|
[node name="Camera2D" type="Camera2D" parent="."]
|
|
position = Vector2(640, 360)
|
|
limit_left = 0
|
|
limit_right = 1280
|
|
limit_top = 0
|
|
limit_bottom = 720
|
|
position_smoothing_enabled = true
|
|
position_smoothing_speed = 6.0
|