Cranberry/Objects/vinyl.tscn

31 lines
994 B
Plaintext

[gd_scene load_steps=5 format=2]
[ext_resource path="res://Objects/movable.gd" type="Script" id=1]
[ext_resource path="res://Assets/player.png" type="Texture" id=2]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 7.25537, 6.35794 )
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 11.4376, 9.81968 )
[node name="vinyl" type="KinematicBody2D"]
script = ExtResource( 1 )
[node name="sprite" type="Sprite" parent="."]
position = Vector2( 184.206, 95.528 )
texture = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 185.133, 95.6064 )
shape = SubResource( 1 )
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2( 185.418, 95.652 )
shape = SubResource( 2 )
[connection signal="body_entered" from="Area2D" to="." method="_on_player_entered"]
[connection signal="body_exited" from="Area2D" to="." method="_on_player_exited"]