2022-08-04 10:50:28 -06:00
|
|
|
[gd_scene load_steps=6 format=2]
|
|
|
|
|
|
|
|
[ext_resource path="res://scripts/house.gd" type="Script" id=1]
|
|
|
|
[ext_resource path="res://roger-roger/chadHouse.png" type="Texture" id=2]
|
|
|
|
|
|
|
|
[sub_resource type="CapsuleShape2D" id=3]
|
2022-08-04 18:05:48 -06:00
|
|
|
radius = 12.4286
|
|
|
|
height = 4.85714
|
2022-08-04 10:50:28 -06:00
|
|
|
|
2022-08-04 18:05:48 -06:00
|
|
|
[sub_resource type="ConvexPolygonShape2D" id=6]
|
2022-08-04 10:50:28 -06:00
|
|
|
|
2022-08-04 18:05:48 -06:00
|
|
|
[sub_resource type="RectangleShape2D" id=5]
|
|
|
|
extents = Vector2( 142.5, 73.1641 )
|
2022-08-04 10:50:28 -06:00
|
|
|
|
|
|
|
[node name="House" type="Node2D"]
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
|
|
|
|
[node name="Sprite" type="Sprite" parent="."]
|
2022-08-04 18:05:48 -06:00
|
|
|
position = Vector2( 7, -125 )
|
2022-08-04 10:50:28 -06:00
|
|
|
scale = Vector2( 5, 5 )
|
|
|
|
texture = ExtResource( 2 )
|
|
|
|
|
|
|
|
[node name="HouseBody" type="StaticBody2D" parent="."]
|
|
|
|
collision_layer = 4
|
|
|
|
collision_mask = 7
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="HouseBody"]
|
2022-08-04 18:05:48 -06:00
|
|
|
position = Vector2( -4.76837e-07, -90 )
|
2022-08-04 10:50:28 -06:00
|
|
|
scale = Vector2( 7, 7 )
|
|
|
|
shape = SubResource( 3 )
|
|
|
|
|
|
|
|
[node name="CollisionShape2D2" type="CollisionShape2D" parent="HouseBody"]
|
2022-08-04 18:05:48 -06:00
|
|
|
position = Vector2( 0, -49 )
|
|
|
|
shape = SubResource( 6 )
|
2022-08-04 10:50:28 -06:00
|
|
|
|
2022-08-04 18:05:48 -06:00
|
|
|
[node name="DoorArea2D" type="Area2D" parent="."]
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="DoorArea2D"]
|
|
|
|
position = Vector2( 0, 36.836 )
|
|
|
|
shape = SubResource( 5 )
|
2022-08-04 10:50:28 -06:00
|
|
|
|
2022-08-04 18:05:48 -06:00
|
|
|
[connection signal="body_entered" from="DoorArea2D" to="." method="_on_DoorArea2D_body_entered"]
|