86 lines
3.0 KiB
Plaintext
86 lines
3.0 KiB
Plaintext
[gd_scene load_steps=10 format=3 uid="uid://f0wep3w30dh8"]
|
|
|
|
[ext_resource type="Script" uid="uid://ct2t7c0om0cdh" path="res://scripts/gamecontroller.gd" id="1_4dvvg"]
|
|
[ext_resource type="Script" uid="uid://cmrdtps7txgxx" path="res://scripts/character_body_2d.gd" id="1_6e84v"]
|
|
[ext_resource type="PackedScene" uid="uid://dxj2q0disdlb5" path="res://scenes/area_2d.tscn" id="3_rnjyy"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rf3rd"]
|
|
size = Vector2(433.759, 40)
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_rf3rd"]
|
|
radius = 24.0
|
|
|
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_rf3rd"]
|
|
radius = 21.0
|
|
height = 78.0
|
|
|
|
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_6e84v"]
|
|
|
|
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_4dvvg"]
|
|
normal = Vector2(0.999872, -0.015998)
|
|
|
|
[sub_resource type="WorldBoundaryShape2D" id="WorldBoundaryShape2D_rnjyy"]
|
|
normal = Vector2(-0.999909, -0.0135123)
|
|
|
|
[node name="Node2D" type="Node2D"]
|
|
script = ExtResource("1_4dvvg")
|
|
|
|
[node name="StaticBody2D" type="StaticBody2D" parent="."]
|
|
position = Vector2(370, 393)
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D"]
|
|
rotation = 0.359538
|
|
shape = SubResource("RectangleShape2D_rf3rd")
|
|
|
|
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
|
position = Vector2(370, 273)
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
|
shape = SubResource("CircleShape2D_rf3rd")
|
|
debug_color = Color(1, 0.234871, 0.652107, 0.42)
|
|
|
|
[node name="StaticBody2D2" type="StaticBody2D" parent="."]
|
|
position = Vector2(679, 504)
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2"]
|
|
rotation = -0.357792
|
|
shape = SubResource("RectangleShape2D_rf3rd")
|
|
|
|
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
|
|
position = Vector2(623, 366)
|
|
script = ExtResource("1_6e84v")
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
|
|
shape = SubResource("CapsuleShape2D_rf3rd")
|
|
debug_color = Color(0.232329, 0.752878, 1.15514e-06, 0.42)
|
|
|
|
[node name="floor" type="StaticBody2D" parent="."]
|
|
position = Vector2(558, 646)
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="floor"]
|
|
shape = SubResource("WorldBoundaryShape2D_6e84v")
|
|
|
|
[node name="left wall" type="StaticBody2D" parent="."]
|
|
position = Vector2(0, 387)
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="left wall"]
|
|
shape = SubResource("WorldBoundaryShape2D_4dvvg")
|
|
|
|
[node name="right wall" type="StaticBody2D" parent="."]
|
|
position = Vector2(1154, 345)
|
|
metadata/_edit_group_ = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="right wall"]
|
|
shape = SubResource("WorldBoundaryShape2D_rnjyy")
|
|
|
|
[node name="Area2D" parent="." instance=ExtResource("3_rnjyy")]
|
|
position = Vector2(83, 587)
|
|
|
|
[connection signal="triggerFired" from="Area2D" to="." method="_on_area_2d_trigger_fired"]
|