first Prototype

This commit is contained in:
Exobyt 2025-08-02 12:27:49 +02:00
parent 89503407e7
commit c887a2168c
78 changed files with 2494 additions and 2 deletions

View file

@ -0,0 +1,8 @@
extends Area2D
@export var damage: int
func _on_area_entered(area: Area2D) -> void:
if area.is_in_group("healthArea"):
area.hurt.emit(damage)

View file

@ -0,0 +1 @@
uid://c2hs5p7vtiy0n

View file

@ -0,0 +1,12 @@
[gd_scene load_steps=2 format=3 uid="uid://eqo7k2ronf8k"]
[ext_resource type="Script" uid="uid://c2hs5p7vtiy0n" path="res://scenes/areas/damageArea/damageArea.gd" id="1_jlldj"]
[node name="DamageArea" type="Area2D" groups=["damageArea"]]
collision_layer = 2147483648
collision_mask = 1073741824
script = ExtResource("1_jlldj")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
[connection signal="area_entered" from="." to="." method="_on_area_entered"]

View file

@ -0,0 +1,12 @@
[gd_scene load_steps=2 format=3 uid="uid://cglnd1ekr5u6r"]
[ext_resource type="Script" uid="uid://1a30h315e73b" path="res://scenes/areas/hurtArea/hurt_area.gd" id="1_c51ym"]
[node name="hurtArea" type="Area2D" groups=["healthArea"]]
collision_layer = 1073741824
collision_mask = 2147483648
script = ExtResource("1_c51ym")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
[connection signal="area_entered" from="." to="." method="_on_area_entered"]

View file

@ -0,0 +1,8 @@
extends Area2D
signal hurt(amount: int)
#
#func _on_area_entered(area: Area2D) -> void:
#print(area.name)
#

View file

@ -0,0 +1 @@
uid://1a30h315e73b