adds new font, adapts debug level and monster spawning

This commit is contained in:
Luca 2024-09-20 11:41:00 +02:00
parent e8f06e7b99
commit 6ce579026b
15 changed files with 279 additions and 30 deletions

View file

@ -51,7 +51,7 @@ shadow_enabled = true
environment = SubResource("Environment_rwve8")
[node name="MonsterSpawnpoint" parent="." instance=ExtResource("3_esgto")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -12)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.6673, 0, -8.88992)
spawnable_monsters = Array[ExtResource("3_iktqp")]([ExtResource("4_3y7gi")])
ignore_visibility = true
max_monsters = 1

View file

@ -1,14 +1,31 @@
[gd_scene load_steps=9 format=3 uid="uid://cswuap81n7t3f"]
[gd_scene load_steps=14 format=3 uid="uid://cswuap81n7t3f"]
[ext_resource type="Texture2D" uid="uid://b6ylra30qxf30" path="res://assets/logo/logo.png" id="1_fpt28"]
[ext_resource type="PackedScene" uid="uid://p8agd0dfam0p" path="res://scenes/debug_level.tscn" id="1_j851n"]
[ext_resource type="Script" path="res://scripts/inventory.gd" id="2_0mkyf"]
[ext_resource type="FontFile" uid="uid://dmc6dygxrekja" path="res://assets/fonts/BreatheFireIii-PKLOB.ttf" id="2_vjast"]
[ext_resource type="Script" path="res://scripts/joystick.gd" id="4_6b5cb"]
[ext_resource type="FontFile" uid="uid://bjaavdnopfh0q" path="res://assets/fonts/aoboshi_one/AoboshiOne-Regular.ttf" id="4_33gx1"]
[ext_resource type="Texture2D" uid="uid://8anyvhkcy4ng" path="res://assets/textures/Xbox Series/Vector/xbox_button_a.svg" id="5_pwhwh"]
[ext_resource type="Texture2D" uid="uid://2vxx2waofxpw" path="res://assets/textures/Xbox Series/Vector/xbox_button_menu_outline.svg" id="6_78vsk"]
[ext_resource type="Script" path="res://scripts/monster_list.gd" id="6_shxjx"]
[ext_resource type="Script" path="res://scripts/camera_controls.gd" id="6_u5aqx"]
[ext_resource type="Texture2D" uid="uid://c737p2osplq2o" path="res://assets/textures/Xbox Series/Vector/xbox_button_x_outline.svg" id="7_rroeh"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_7t5ln"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_kl7kg"]
bg_color = Color(0.8, 0.8, 0.8, 1)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_0o2ai"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_wyqgq"]
bg_color = Color(0, 0, 0, 0.196078)
corner_radius_top_left = 999
corner_radius_top_right = 999
corner_radius_bottom_right = 999
corner_radius_bottom_left = 999
[node name="Main" type="Node3D"]
@ -95,10 +112,10 @@ grow_vertical = 0
theme_override_colors/font_color = Color(0.945573, 0.745802, 0.348774, 1)
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 30
theme_override_fonts/font = ExtResource("2_vjast")
theme_override_fonts/font = ExtResource("4_33gx1")
theme_override_font_sizes/font_size = 70
text = "M O N S T E R
F A N G E N"
text = "MONSTER
FANGEN"
horizontal_alignment = 1
max_lines_visible = 2
@ -133,24 +150,133 @@ grow_horizontal = 2
grow_vertical = 2
script = ExtResource("6_u5aqx")
[node name="VBoxContainer2" type="VBoxContainer" parent="ControlsLayer"]
[node name="MonsterList" type="MarginContainer" parent="ControlsLayer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("6_shxjx")
[node name="MarginContainer" type="MarginContainer" parent="ControlsLayer/MonsterList"]
layout_mode = 2
theme_override_constants/margin_left = 40
theme_override_constants/margin_top = 40
theme_override_constants/margin_right = 40
theme_override_constants/margin_bottom = 40
[node name="PanelContainer" type="PanelContainer" parent="ControlsLayer/MonsterList/MarginContainer"]
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_kl7kg")
[node name="VBoxContainer" type="VBoxContainer" parent="ControlsLayer/MonsterList/MarginContainer/PanelContainer"]
layout_mode = 2
[node name="Control" type="HBoxContainer" parent="ControlsLayer/MonsterList/MarginContainer/PanelContainer/VBoxContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="ControlsLayer/MonsterList/MarginContainer/PanelContainer/VBoxContainer/Control"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_fonts/font = ExtResource("4_33gx1")
theme_override_font_sizes/font_size = 50
text = "Your Monsters"
horizontal_alignment = 1
vertical_alignment = 1
[node name="CloseButton" type="Button" parent="ControlsLayer/MonsterList/MarginContainer/PanelContainer/VBoxContainer/Control"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 8
icon = ExtResource("7_rroeh")
flat = true
[node name="MarginContainer" type="MarginContainer" parent="ControlsLayer/MonsterList/MarginContainer/PanelContainer/VBoxContainer"]
layout_mode = 2
theme_override_constants/margin_left = 20
theme_override_constants/margin_right = 20
[node name="MonsterListEntry" type="HBoxContainer" parent="ControlsLayer/MonsterList/MarginContainer/PanelContainer/VBoxContainer/MarginContainer"]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="ControlsLayer/MonsterList/MarginContainer/PanelContainer/VBoxContainer/MarginContainer/MonsterListEntry"]
custom_minimum_size = Vector2(70, 70)
layout_mode = 2
texture = ExtResource("1_fpt28")
expand_mode = 2
[node name="MonsterID" type="Label" parent="ControlsLayer/MonsterList/MarginContainer/PanelContainer/VBoxContainer/MarginContainer/MonsterListEntry"]
layout_mode = 2
size_flags_vertical = 1
text = "ID"
vertical_alignment = 1
[node name="MonsterName" type="Label" parent="ControlsLayer/MonsterList/MarginContainer/PanelContainer/VBoxContainer/MarginContainer/MonsterListEntry"]
layout_mode = 2
size_flags_vertical = 1
text = "Name"
vertical_alignment = 1
[node name="MonsterLevel" type="Label" parent="ControlsLayer/MonsterList/MarginContainer/PanelContainer/VBoxContainer/MarginContainer/MonsterListEntry"]
layout_mode = 2
size_flags_vertical = 1
text = "Lvl"
vertical_alignment = 1
[node name="MonsterHealth" type="Label" parent="ControlsLayer/MonsterList/MarginContainer/PanelContainer/VBoxContainer/MarginContainer/MonsterListEntry"]
layout_mode = 2
size_flags_vertical = 1
text = "Health"
vertical_alignment = 1
[node name="ProgressBar" type="ProgressBar" parent="ControlsLayer/MonsterList/MarginContainer/PanelContainer/VBoxContainer/MarginContainer/MonsterListEntry"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 4
[node name="Button" type="Button" parent="ControlsLayer/MonsterList/MarginContainer/PanelContainer/VBoxContainer/MarginContainer/MonsterListEntry"]
custom_minimum_size = Vector2(30, 30)
layout_mode = 2
size_flags_horizontal = 10
icon = ExtResource("6_78vsk")
flat = true
icon_alignment = 1
[node name="MarginContainer" type="MarginContainer" parent="ControlsLayer"]
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -376.0
grow_horizontal = 2
grow_vertical = 0
theme_override_constants/margin_left = 30
theme_override_constants/margin_bottom = 30
[node name="VBoxContainer2" type="VBoxContainer" parent="ControlsLayer/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Panel" type="Panel" parent="ControlsLayer/VBoxContainer2"]
[node name="MenuButton" type="Button" parent="ControlsLayer/MarginContainer/VBoxContainer2"]
custom_minimum_size = Vector2(150, 150)
layout_mode = 2
size_flags_horizontal = 0
theme_override_styles/focus = SubResource("StyleBoxEmpty_0o2ai")
icon = ExtResource("6_78vsk")
flat = true
icon_alignment = 1
expand_icon = true
[node name="Panel" type="Panel" parent="ControlsLayer/MarginContainer/VBoxContainer2"]
custom_minimum_size = Vector2(300, 300)
layout_mode = 2
size_flags_horizontal = 0
theme_override_styles/panel = SubResource("StyleBoxEmpty_7t5ln")
theme_override_styles/panel = SubResource("StyleBoxFlat_wyqgq")
script = ExtResource("4_6b5cb")
[node name="Thumbstick" type="TextureRect" parent="ControlsLayer/VBoxContainer2/Panel"]
[node name="Thumbstick" type="TextureRect" parent="ControlsLayer/MarginContainer/VBoxContainer2/Panel"]
self_modulate = Color(0, 0, 0, 0.392157)
custom_minimum_size = Vector2(100, 100)
layout_mode = 0
offset_right = 40.0
@ -158,5 +284,6 @@ offset_bottom = 40.0
texture = ExtResource("5_pwhwh")
[connection signal="gui_input" from="ControlsLayer/CameraControls" to="ControlsLayer/CameraControls" method="_on_gui_input"]
[connection signal="gui_input" from="ControlsLayer/VBoxContainer2/Panel" to="ControlsLayer/VBoxContainer2/Panel" method="_on_gui_input"]
[connection signal="resized" from="ControlsLayer/VBoxContainer2/Panel" to="ControlsLayer/VBoxContainer2/Panel" method="_on_resized"]
[connection signal="pressed" from="ControlsLayer/MonsterList/MarginContainer/PanelContainer/VBoxContainer/Control/CloseButton" to="ControlsLayer/MonsterList" method="_on_close_button_pressed"]
[connection signal="gui_input" from="ControlsLayer/MarginContainer/VBoxContainer2/Panel" to="ControlsLayer/MarginContainer/VBoxContainer2/Panel" method="_on_gui_input"]
[connection signal="resized" from="ControlsLayer/MarginContainer/VBoxContainer2/Panel" to="ControlsLayer/MarginContainer/VBoxContainer2/Panel" method="_on_resized"]

View file

@ -25,6 +25,6 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
[node name="Label3D" type="Label3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0)
billboard = 1
visible = false
text = "0 / 5"
font_size = 64

View file

@ -7,6 +7,9 @@
height = 1.7
[node name="Player" type="CharacterBody3D"]
axis_lock_angular_x = true
axis_lock_angular_y = true
axis_lock_angular_z = true
script = ExtResource("1_3fea3")
[node name="GobotSkin" parent="." instance=ExtResource("2_vivad")]