This commit is contained in:
Marco 2025-04-09 15:12:08 +02:00
commit 538f4f215f
13 changed files with 105 additions and 17 deletions

View file

@ -0,0 +1,3 @@
computer: Urgent message to all the employees\:\
An enemy combatant has been spotted inside the facility, please vacate the area through the nearest teleporter immediately.
computer: Anyone whose presence at the evacuation point cannot be confirmed will have their pay immediately docked and work hours extended.

View file

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

View file

@ -14,6 +14,6 @@ DestroyOnCollision = true
Owner = 0
DamageType = 2
Controllable = false
Grazeable = true
Grazeable = false
GrazeValue = 0.2
TimeModifiers = Array[Object]([])

View file

@ -35,6 +35,5 @@ shape = SubResource("CircleShape2D_4awvh")
[node name="Health" type="Node2D" parent="DamageReceiver"]
script = ExtResource("6_xbljl")
ResourceName = "Health"
MaxResource = 4.0
[connection signal="area_entered" from="DamageReceiver" to="DamageReceiver" method="_on_damage_hitbox_area_entered"]

File diff suppressed because one or more lines are too long

View file

@ -20,6 +20,9 @@ public partial class GenericDamageReceiver : Area2D, IHittable
[Export] public bool DeleteParentOnDeath { get; private set; } = true;
[Signal]
public delegate void ShieldHitEventHandler();
//[Signal] public delegate void DeathEventHandler();
private Node2D _parent;
@ -41,8 +44,12 @@ public partial class GenericDamageReceiver : Area2D, IHittable
private void _on_damage_hitbox_area_entered(Area2D area)
{
if (!Enabled) return;
if (Invulnerable) return;
if (area is not Bullet bullet) return;
if (Invulnerable)
{
EmitSignalShieldHit();
return;
};
if (BulletGroup is BulletOwner.None)
{

View file

@ -0,0 +1,13 @@
using Godot;
namespace Cirno.Scripts.Components.Actors;
public partial class HitShieldAnimation : Node2D
{
[Export] public AnimatedSprite2D Sprite { get; private set; }
public void Play()
{
Sprite?.Play();
}
}

View file

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

BIN
Tilesets/factory-export.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cy7bvgawi6upm"
path="res://.godot/imported/factory-export.png-f71b4ed1dd1fa40e7bcfe4a9e2c83cd2.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Tilesets/factory-export.png"
dest_files=["res://.godot/imported/factory-export.png-f71b4ed1dd1fa40e7bcfe4a9e2c83cd2.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Tilesets/factory.png (Stored with Git LFS)

Binary file not shown.

View file

@ -1225,6 +1225,7 @@ texture = ExtResource("1_u4jco")
17:2/0 = 0
15:2/0 = 0
15:2/0/physics_layer_1/polygon_0/points = PackedVector2Array(-8, -8, 8, -8, 8, 8, -8, 8)
16:2/0 = 0
[sub_resource type="TileSetScenesCollectionSource" id="TileSetScenesCollectionSource_qg3vu"]
resource_name = "Props"

View file

@ -69,6 +69,7 @@ directories/dtl_directory={
"colonel1": "res://Dialogue/Timelines/Rebel_Base/colonel1.dtl",
"computer1": "res://Dialogue/Timelines/computer1.dtl",
"computer2": "res://Dialogue/Timelines/computer2.dtl",
"computer3": "res://Dialogue/Timelines/computer3.dtl",
"computer_control_1": "res://Dialogue/Timelines/computer_control_1.dtl",
"computer_goon_cave": "res://Dialogue/Timelines/computer_goon_cave.dtl",
"computer_keycard_room": "res://Dialogue/Timelines/computer_keycard_room.dtl",