End of lesson 24.
This commit is contained in:
@@ -1,21 +1,26 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://c0b5w48jk67qd"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://c0b5w48jk67qd"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c0uvlwmkm3r8o" path="res://scripts/game/game_screen.gd" id="1_uwrxv"]
|
||||
[ext_resource type="Script" uid="uid://dcqqr8b42tn0x" path="res://scripts/game/CommandProcessor.gd" id="2_lbhrr"]
|
||||
[ext_resource type="Texture2D" uid="uid://ccxs3ctob15es" path="res://gfx/ui/main_frame.png" id="2_lnu2h"]
|
||||
[ext_resource type="FontFile" uid="uid://1u28cjgctsn7" path="res://fonts/alagard_by_pix3m-d6awiwp.ttf" id="3_lbhrr"]
|
||||
[ext_resource type="Script" uid="uid://b63jt1uexm120" path="res://scripts/game/maps/MapContainer.gd" id="3_p57ef"]
|
||||
[ext_resource type="Script" uid="uid://dv3fd112uj8o1" path="res://scripts/ui/Message Console.gd" id="5_iywne"]
|
||||
|
||||
[node name="Game" type="Node" node_paths=PackedStringArray("map")]
|
||||
script = ExtResource("1_uwrxv")
|
||||
map = NodePath("Map")
|
||||
map = NodePath("MapContainer")
|
||||
|
||||
[node name="Command Processor" type="Timer" parent="."]
|
||||
wait_time = 3.0
|
||||
autostart = true
|
||||
script = ExtResource("2_lbhrr")
|
||||
|
||||
[node name="Map" type="Node" parent="."]
|
||||
[node name="MapContainer" type="Node" parent="." node_paths=PackedStringArray("entities")]
|
||||
script = ExtResource("3_p57ef")
|
||||
entities = NodePath("Entities")
|
||||
|
||||
[node name="Entities" type="Node" parent="MapContainer"]
|
||||
|
||||
[node name="UI" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
[gd_scene load_steps=19 format=3 uid="uid://d3e5mg0gk8u7r"]
|
||||
[gd_scene load_steps=20 format=3 uid="uid://d3e5mg0gk8u7r"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://byx166hd5b3as" path="res://gfx/game/maps/entities/player/Idle/Untitled-0_0.png" id="1_li2a0"]
|
||||
[ext_resource type="Script" uid="uid://bo0had2vq4r7h" path="res://scripts/game/maps/entities/mob.gd" id="1_mu6cs"]
|
||||
[ext_resource type="Texture2D" uid="uid://gm5dhmls0klm" path="res://gfx/game/maps/entities/player/WalkLeft/Untitled-3_0.png" id="2_mu6cs"]
|
||||
[ext_resource type="Texture2D" uid="uid://cio1xyswbao5j" path="res://gfx/game/maps/entities/player/WalkRight/Untitled-3_0.png" id="3_tvinw"]
|
||||
[ext_resource type="Texture2D" uid="uid://svg30tifp74r" path="res://gfx/game/maps/entities/player/WalkUp/Untitled-2_0.png" id="4_cdxgq"]
|
||||
@@ -122,6 +123,7 @@ animations = [{
|
||||
}]
|
||||
|
||||
[node name="Mob" type="Node2D"]
|
||||
script = ExtResource("1_mu6cs")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(8, 8)
|
||||
|
||||
7
scenes/game/maps/entities/player.tscn
Normal file
7
scenes/game/maps/entities/player.tscn
Normal file
@@ -0,0 +1,7 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://bpsrg5d3gncnd"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://d3e5mg0gk8u7r" path="res://scenes/game/maps/entities/mob.tscn" id="1_7y2qh"]
|
||||
[ext_resource type="Script" uid="uid://dsguwthn2datq" path="res://scripts/game/maps/entities/Player.gd" id="2_us7jc"]
|
||||
|
||||
[node name="Player" instance=ExtResource("1_7y2qh")]
|
||||
script = ExtResource("2_us7jc")
|
||||
Reference in New Issue
Block a user