1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-22 08:04:23 +00:00

Add a CollisionShape2D to the Sheep

sheep
shape
sheep
shape
ship
This commit is contained in:
Steffo 2024-04-14 05:23:52 +02:00
parent 5ad13fb694
commit 3020edbdd5
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -1,13 +1,19 @@
[gd_scene load_steps=4 format=3 uid="uid://bc2bm8lbol18w"] [gd_scene load_steps=5 format=3 uid="uid://bc2bm8lbol18w"]
[ext_resource type="Script" path="res://entities/sheep.gd" id="1_4dmll"] [ext_resource type="Script" path="res://entities/sheep.gd" id="1_4dmll"]
[ext_resource type="PackedScene" uid="uid://bvrxvrjlo5130" path="res://behaviours/move_towards_mouse.tscn" id="2_tfd2i"] [ext_resource type="PackedScene" uid="uid://bvrxvrjlo5130" path="res://behaviours/move_towards_mouse.tscn" id="2_tfd2i"]
[sub_resource type="CircleShape2D" id="CircleShape2D_c5tcn"]
radius = 16.0
[sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_08frh"] [sub_resource type="PlaceholderTexture2D" id="PlaceholderTexture2D_08frh"]
[node name="Sheep" type="CharacterBody2D"] [node name="Sheep" type="CharacterBody2D"]
script = ExtResource("1_4dmll") script = ExtResource("1_4dmll")
[node name="Shape" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_c5tcn")
[node name="Sprite" type="Sprite2D" parent="."] [node name="Sprite" type="Sprite2D" parent="."]
scale = Vector2(32, 32) scale = Vector2(32, 32)
texture = SubResource("PlaceholderTexture2D_08frh") texture = SubResource("PlaceholderTexture2D_08frh")