[gd_scene load_steps=4 format=3] [ext_resource type="Script" path="res://tools/_selftest.gd" id="1"] [sub_resource type="RectangleShape2D" id="player_shape"] size = Vector2(32, 48) [sub_resource type="RectangleShape2D" id="ground_shape"] size = Vector2(1152, 40) [node name="SelfTest" type="Node2D"] [node name="BG" type="ColorRect" parent="."] offset_right = 1152.0 offset_bottom = 648.0 color = Color(0.1, 0.15, 0.35, 1) [node name="Player" type="CharacterBody2D" parent="."] position = Vector2(120, 400) script = ExtResource("1") [node name="Vis" type="ColorRect" parent="Player"] offset_left = -16.0 offset_top = -24.0 offset_right = 16.0 offset_bottom = 24.0 color = Color(1, 0.45, 0.1, 1) [node name="Col" type="CollisionShape2D" parent="Player"] shape = SubResource("player_shape") [node name="Ground" type="StaticBody2D" parent="."] position = Vector2(576, 520) [node name="Vis" type="ColorRect" parent="Ground"] offset_left = -576.0 offset_top = -20.0 offset_right = 576.0 offset_bottom = 20.0 color = Color(0.2, 0.7, 0.3, 1) [node name="Col" type="CollisionShape2D" parent="Ground"] shape = SubResource("ground_shape")