/
Clover.tscn
34 lines (25 loc) · 989 Bytes
/
Clover.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
[gd_scene load_steps=5 format=2]
[ext_resource path="res://Game assets/Food Assets/Health.png" type="Texture" id=1]
[ext_resource path="res://Clover.gd" type="Script" id=2]
[sub_resource type="CircleShape2D" id=1]
radius = 36.7691
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 33.5689, 38.0873 )
[node name="Clover" type="RigidBody2D"]
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
scale = Vector2( 0.15, 0.15 )
texture = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0.793706, -0.198427 )
rotation = 0.539307
shape = SubResource( 1 )
[node name="HitArea" type="Area2D" parent="." groups=[
"food",
]]
position = Vector2( -3.1748, 0.94055 )
rotation = -0.0117562
[node name="Hitbox" type="CollisionShape2D" parent="HitArea"]
position = Vector2( 3.82033, 0.223326 )
shape = SubResource( 2 )
[connection signal="area_entered" from="HitArea" to="." method="_on_HitArea_area_entered"]