neighbor-game/scenes/house.tscn
2022-08-04 19:56:18 -06:00

43 lines
1.2 KiB
Plaintext

[gd_scene load_steps=6 format=2]
[ext_resource path="res://scripts/house.gd" type="Script" id=1]
[ext_resource path="res://assets/chadHouse.png" type="Texture" id=2]
[sub_resource type="CapsuleShape2D" id=3]
radius = 12.4286
height = 4.85714
[sub_resource type="ConvexPolygonShape2D" id=6]
[sub_resource type="RectangleShape2D" id=5]
extents = Vector2( 142.5, 73.1641 )
[node name="House" type="Node2D"]
script = ExtResource( 1 )
[node name="Sprite" type="Sprite" parent="."]
position = Vector2( 7, -125 )
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"]
position = Vector2( -4.76837e-07, -90 )
scale = Vector2( 7, 7 )
shape = SubResource( 3 )
[node name="CollisionShape2D2" type="CollisionShape2D" parent="HouseBody"]
position = Vector2( 0, -49 )
shape = SubResource( 6 )
[node name="DoorArea2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="DoorArea2D"]
position = Vector2( 0, 36.836 )
shape = SubResource( 5 )
[connection signal="body_entered" from="DoorArea2D" to="." method="_on_DoorArea2D_body_entered"]