Reactor, and enemies attacking the tiles

This commit is contained in:
2025-08-31 14:30:18 +08:00
parent c72353716f
commit 09511b37c9
17 changed files with 517 additions and 222 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=4 format=3 uid="uid://b3ffcucytwmk"]
[gd_scene load_steps=5 format=3 uid="uid://b3ffcucytwmk"]
[ext_resource type="Texture2D" uid="uid://dlhpiyxtmp707" path="res://Scenes/Entities/Enemy.jpg" id="1_8q37v"]
[ext_resource type="Script" uid="uid://cvsmy820b8dwl" path="res://Scripts/Entities/Enemy.cs" id="1_jajit"]
@@ -6,6 +6,9 @@
[sub_resource type="RectangleShape2D" id="RectangleShape2D_jajit"]
size = Vector2(60, 74)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_wmvnc"]
size = Vector2(70, 84)
[node name="Enemy" type="CharacterBody2D"]
collision_layer = 2
collision_mask = 3
@@ -17,3 +20,8 @@ shape = SubResource("RectangleShape2D_jajit")
[node name="Sprite2D" type="Sprite2D" parent="."]
scale = Vector2(0.1, 0.1)
texture = ExtResource("1_8q37v")
[node name="AttackArea" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="AttackArea"]
shape = SubResource("RectangleShape2D_wmvnc")