From 3020edbdd5c6c3f3e7f75fc60506423a3a842b77 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 14 Apr 2024 05:23:52 +0200 Subject: [PATCH] Add a `CollisionShape2D` to the `Sheep` sheep shape sheep shape ship --- entities/sheep.tscn | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/entities/sheep.tscn b/entities/sheep.tscn index 2bef8fa..e042e2e 100644 --- a/entities/sheep.tscn +++ b/entities/sheep.tscn @@ -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="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"] [node name="Sheep" type="CharacterBody2D"] script = ExtResource("1_4dmll") +[node name="Shape" type="CollisionShape2D" parent="."] +shape = SubResource("CircleShape2D_c5tcn") + [node name="Sprite" type="Sprite2D" parent="."] scale = Vector2(32, 32) texture = SubResource("PlaceholderTexture2D_08frh")