diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-17 22:30:35 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-08-17 22:30:35 -0300 |
| commit | c9057bbd88f14a4e0e572c16452c1ab9baebfe2a (patch) | |
| tree | 61e22e427354995cabe878d7a9f14fb9804c9c8f /scenes | |
| parent | 240156765d88db25dd092fc320005cdb5f28d7a7 (diff) | |
Atores agora são criados por código.
Diffstat (limited to 'scenes')
| -rw-r--r-- | scenes/DungeonLevel.tscn | 17 | ||||
| -rw-r--r-- | scenes/Game.tscn | 4 | ||||
| -rw-r--r-- | scenes/Player.tscn | 4 | ||||
| -rw-r--r-- | scenes/Skeleton.tscn | 4 |
4 files changed, 9 insertions, 20 deletions
diff --git a/scenes/DungeonLevel.tscn b/scenes/DungeonLevel.tscn index 4a5fda0..201dd69 100644 --- a/scenes/DungeonLevel.tscn +++ b/scenes/DungeonLevel.tscn @@ -1,25 +1,14 @@ -[gd_scene load_steps=5 format=4 uid="uid://dnh8xgk1w76i2"] +[gd_scene load_steps=3 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://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" node_paths=PackedStringArray("Actors")] +[node name="Map" type="Node2D"] script = ExtResource("1_u6mlv") -Actors = [NodePath("Actors/Player"), NodePath("Actors/Skeleton")] [node name="Dungeon" type="TileMapLayer" parent="."] texture_filter = 1 -tile_map_data = PackedByteArray("AAAHAAcAAAAAAAAAAAAIAAcAAAAAAAAAAAAJAAcAAAAAAAAAAAAKAAcA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AMAAAABAAAAAAASAAMAAAABAAAAAAARAAMAAAABAAAAAAAQAAMAAAABAAAAAAAPAAMAAAABAAAAAAAPAAQAAAABAAAAAAAPAAUAAAABAAAAAAAQAAkAAAAAAAAAAAARAAkAAAAAAAAAAAARAAgAAAABAAAAAAASAAgAAAAAAAAAAAATAAgAAAAAAAAAAAAUAAkAAAAAAAAAAAATAAkAAAAAAAAAAAARAAcAAAAAAAAAAAAQAAcAAAAAAAAAAAAQAAYAAAAAAAAAAAAQAAUAAAAAAAAAAAARAAUAAAABAAAAAAARAAQAAAAAAAAAAAASAAQAAAAAAAAAAAATAAQAAAAAAAAAAAAUAAQAAAAAAAAAAAAUAAUAAAAAAAAAAAAVAAUAAAABAAAAAAAVAAYAAAAAAAAAAAAVAAcAAAABAAAAAAAVAAgAAAABAAAAAAAVAAkAAAAAAAAAAAASAAcAAAAAAAAAAAASAAYAAAABAAAAAAASAAUAAAABAAAAAAATAAUAAAAAAAAAAAAUAAYAAAAAAAAAAAAUAAcAAAABAAAAAAAUAAgAAAABAAAAAAATAAcAAAAAAAAAAAATAAYAAAAAAAAAAAAQAAQAAAAAAAAAAAAQAAgAAAAAAAAAAAARAAYAAAABAAAAAAASAAkAAAAAAAAAAAAWAAkAAAAAAAAAAAAWAAgAAAAAAAAAAAAWAAcAAAAAAAAAAAAWAAYAAAAAAAAAAAAWAAUAAAAAAAAAAAAWAAQAAAAAAAAAAAAVAAQAAAAAAAAAAAAKAAoAAAAAAAAAAAAJAAsAAAABAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAABAAEAAAAAAAAAAAABAAIAAAAAAAAAAAABAAMAAAAAAAAAAAABAAQAAAAAAAAAAAABAAUAAAAAAAAAAAABAAYAAAAAAAAAAAABAAcAAAAAAAAAAAABAAgAAAAAAAAAAAACAAgAAAAAAAAAAAADAAgAAAAAAAAAAAA=") tile_set = ExtResource("1_bxfih") [node name="Actors" type="Node2D" parent="."] - -[node name="Player" parent="Actors" node_paths=PackedStringArray("Map") instance=ExtResource("2_u6mlv")] -position = Vector2(144, 144) -Map = NodePath("../..") - -[node name="Skeleton" parent="Actors" node_paths=PackedStringArray("Map") instance=ExtResource("4_8elbs")] -position = Vector2(160, 128) -Map = NodePath("../..") diff --git a/scenes/Game.tscn b/scenes/Game.tscn index 6d1a2be..361f821 100644 --- a/scenes/Game.tscn +++ b/scenes/Game.tscn @@ -11,3 +11,7 @@ script = ExtResource("1_cpr0p") [node name="InputHandler" type="Node" parent="."] script = ExtResource("3_s0nni") + +[node name="Camera2D" type="Camera2D" parent="."] +offset = Vector2(8, 8) +zoom = Vector2(2, 2) diff --git a/scenes/Player.tscn b/scenes/Player.tscn index d95d726..4d9d5e5 100644 --- a/scenes/Player.tscn +++ b/scenes/Player.tscn @@ -1,14 +1,12 @@ -[gd_scene load_steps=4 format=3 uid="uid://c3wbuxeetj24a"] +[gd_scene load_steps=3 format=3 uid="uid://bwo8ju6quv6co"] [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 index ad78474..fce5c1e 100644 --- a/scenes/Skeleton.tscn +++ b/scenes/Skeleton.tscn @@ -1,11 +1,9 @@ -[gd_scene load_steps=4 format=3 uid="uid://cnkx22hgs0b3p"] +[gd_scene load_steps=3 format=3 uid="uid://byyjwp5j4byux"] [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") |
