Alternative way to place tovers and enemies

This commit is contained in:
2025-04-30 21:29:28 +02:00
parent fee9cb99cf
commit 9859ddfe87
6 changed files with 110 additions and 9 deletions

View File

@ -1,4 +1,4 @@
[gd_scene load_steps=5 format=3 uid="uid://pqy8rrvjthgl"]
[gd_scene load_steps=6 format=3 uid="uid://pqy8rrvjthgl"]
[ext_resource type="Texture2D" uid="uid://4bah0c8unbl8" path="res://Assets/Traps/Sticks/Tile2_59.png" id="1_dnq4b"]
[ext_resource type="Script" uid="uid://3gn70ilm20tw" path="res://Game/Traps/traps.gd" id="1_metvu"]
@ -7,6 +7,9 @@
[sub_resource type="CircleShape2D" id="CircleShape2D_m1bdk"]
radius = 32.0
[sub_resource type="RectangleShape2D" id="RectangleShape2D_metvu"]
size = Vector2(49.5, 18)
[node name="StickTrap" type="Node2D"]
script = ExtResource("1_metvu")
@ -28,3 +31,10 @@ offset = Vector2(-10, 0)
position = Vector2(5, 0)
scale = Vector2(0.8, 0.8)
shape = SubResource("CircleShape2D_m1bdk")
[node name="Area2D" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2(4.25, 11)
shape = SubResource("RectangleShape2D_metvu")
debug_color = Color(0.811824, 0.00210331, 0.983083, 0.42)