diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-17 20:03:46 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-17 20:03:46 -0300 |
| commit | 6fb1eb6a6fe0f3f4c2f4e9d7fc476566168eba5d (patch) | |
| tree | 89b89e2d991d2e83fb8398044120115b39112bad /scenes | |
| parent | ca782d7310f2df854a8727535ac92337c85ed445 (diff) | |
Refactor
Diffstat (limited to 'scenes')
| -rw-r--r-- | scenes/DungeonLevel.tscn | 8 | ||||
| -rw-r--r-- | scenes/Player.tscn | 4 | ||||
| -rw-r--r-- | scenes/Skeleton.tscn | 11 |
3 files changed, 20 insertions, 3 deletions
diff --git a/scenes/DungeonLevel.tscn b/scenes/DungeonLevel.tscn index f9d98fd..43e70e2 100644 --- a/scenes/DungeonLevel.tscn +++ b/scenes/DungeonLevel.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=4 format=4 uid="uid://dnh8xgk1w76i2"] +[gd_scene load_steps=5 format=4 uid="uid://dnh8xgk1w76i2"] [ext_resource type="TileSet" uid="uid://biilh0ufacguh" path="res://assets/test_tileset.tres" id="1_bxfih"] [ext_resource type="Script" uid="uid://cy7qumrpks2kx" path="res://scripts/DungeonLevel.cs" id="1_u6mlv"] -[ext_resource type="PackedScene" uid="uid://7sfxgul40ths" path="res://scenes/Player.tscn" id="2_u6mlv"] +[ext_resource type="PackedScene" uid="uid://c3wbuxeetj24a" path="res://scenes/Player.tscn" id="2_u6mlv"] +[ext_resource type="PackedScene" uid="uid://cnkx22hgs0b3p" path="res://scenes/Skeleton.tscn" id="4_8elbs"] [node name="Map" type="Node2D"] script = ExtResource("1_u6mlv") @@ -16,3 +17,6 @@ tile_set = ExtResource("1_bxfih") [node name="Player" parent="Actors" instance=ExtResource("2_u6mlv")] position = Vector2(144, 144) + +[node name="Skeleton" parent="." instance=ExtResource("4_8elbs")] +position = Vector2(160, 128) diff --git a/scenes/Player.tscn b/scenes/Player.tscn index bd40178..d95d726 100644 --- a/scenes/Player.tscn +++ b/scenes/Player.tscn @@ -1,12 +1,14 @@ -[gd_scene load_steps=3 format=3 uid="uid://7sfxgul40ths"] +[gd_scene load_steps=4 format=3 uid="uid://c3wbuxeetj24a"] [ext_resource type="Script" uid="uid://c840l08453pu2" path="res://scripts/actors/Player.cs" id="1_p0vlq"] [ext_resource type="Texture2D" uid="uid://dwky8qc2y602k" path="res://assets/sprites/character.png" id="1_v6fml"] +[ext_resource type="Resource" uid="uid://cn6xnpwxjudbp" path="res://assets/definitions/actor/Player.tres" id="3_3li8b"] [node name="Player" type="Sprite2D"] texture = ExtResource("1_v6fml") centered = false script = ExtResource("1_p0vlq") +definition = ExtResource("3_3li8b") [node name="Camera2D" type="Camera2D" parent="."] offset = Vector2(8, 8) diff --git a/scenes/Skeleton.tscn b/scenes/Skeleton.tscn new file mode 100644 index 0000000..ad78474 --- /dev/null +++ b/scenes/Skeleton.tscn @@ -0,0 +1,11 @@ +[gd_scene load_steps=4 format=3 uid="uid://cnkx22hgs0b3p"] + +[ext_resource type="Texture2D" uid="uid://dh5sgjdwkps88" path="res://assets/sprites/skeleton.png" id="1_s4oxe"] +[ext_resource type="Script" uid="uid://bef1fo3vgvxej" path="res://scripts/Enemy.cs" id="2_at7gs"] +[ext_resource type="Resource" uid="uid://bphsl6o2nsb8x" path="res://assets/definitions/actor/Skeleton.tres" id="3_at7gs"] + +[node name="Skeleton" type="Sprite2D"] +texture = ExtResource("1_s4oxe") +centered = false +script = ExtResource("2_at7gs") +definition = ExtResource("3_at7gs") |
