From a210c39b5d2be1e7e5c52568d40ba6a29f34b4bb Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 30 Jan 2025 13:19:56 +0100 Subject: initial commit --- unit/unit.tscn | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 unit/unit.tscn (limited to 'unit') diff --git a/unit/unit.tscn b/unit/unit.tscn new file mode 100644 index 0000000..9b152c1 --- /dev/null +++ b/unit/unit.tscn @@ -0,0 +1,20 @@ +[gd_scene load_steps=3 format=3 uid="uid://dglv8ajgj4i4c"] + +[ext_resource type="Texture2D" uid="uid://blanietpri1be" path="res://icon.svg" id="1_0d47j"] + +[sub_resource type="RectangleShape2D" id="RectangleShape2D_4xd6x"] +size = Vector2(8, 8) + +[node name="Unit" type="Node2D"] +z_index = 2 + +[node name="Icon" type="Sprite2D" parent="."] +scale = Vector2(0.063, 0.063) +texture = ExtResource("1_0d47j") + +[node name="Area2D" type="Area2D" parent="."] +collision_layer = 2 +collision_mask = 0 + +[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"] +shape = SubResource("RectangleShape2D_4xd6x") -- cgit v1.2.3