feat: integrated some assets and made a hitbox and damage reaction system
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 5s
Create tag and build when new code gets to main / Export (push) Successful in 2m5s

This commit is contained in:
2025-08-01 17:17:00 +02:00
parent 44f083fbce
commit 6e017197f6
26 changed files with 484 additions and 449 deletions

View File

@ -1,18 +1,52 @@
[gd_scene load_steps=4 format=3 uid="uid://c5ruphrd8ebuu"]
[gd_scene load_steps=8 format=3 uid="uid://c5ruphrd8ebuu"]
[ext_resource type="Script" uid="uid://dailpwkay2nu5" path="res://ennemy/armored_ennemy.gd" id="1_f4v0e"]
[ext_resource type="SpriteFrames" uid="uid://i6035vm5ited" path="res://player/armored_spritesheet.tres" id="1_k1sc2"]
[ext_resource type="Shape2D" uid="uid://6rhdwj5jxbxn" path="res://player/player_collision.tres" id="2_f4v0e"]
[ext_resource type="PackedScene" uid="uid://7sqwi3lygb1u" path="res://damageable/hitbox.tscn" id="4_e5h8j"]
[ext_resource type="AudioStream" uid="uid://c0w61do2a1hbc" path="res://ennemy/black-magic-159868.mp3" id="5_iblih"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f4v0e"]
[sub_resource type="CircleShape2D" id="CircleShape2D_e5h8j"]
[node name="ArmoredEnnemy" type="CharacterBody2D"]
script = ExtResource("1_f4v0e")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(1, -28)
position = Vector2(1, -16)
sprite_frames = ExtResource("1_k1sc2")
animation = &"jump"
animation = &"idle"
autoplay = "idle"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2(0, -13)
shape = ExtResource("2_f4v0e")
[node name="TriggerHit" type="Area2D" parent="."]
collision_mask = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="TriggerHit"]
position = Vector2(17, -15)
shape = SubResource("RectangleShape2D_f4v0e")
[node name="Hitbox" parent="." instance=ExtResource("4_e5h8j")]
collision_mask = 3
hitback_direction = Vector2(1, -1)
[node name="CollisionShape2D" type="CollisionShape2D" parent="Hitbox"]
position = Vector2(17, -15)
shape = SubResource("CircleShape2D_e5h8j")
[node name="TimeToFinishHit" type="Timer" parent="."]
wait_time = 0.5
one_shot = true
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("5_iblih")
autoplay = true
max_distance = 400.0
bus = &"SFX"
[connection signal="body_entered" from="TriggerHit" to="." method="_on_trigger_hit_body_entered"]
[connection signal="timeout" from="TimeToFinishHit" to="." method="_on_time_to_finish_hit_timeout"]