mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-12 07:05:54 +00:00
Visualization for ammo
This commit is contained in:
parent
ed6e659d23
commit
07ab64a0bf
12 changed files with 252 additions and 102 deletions
|
|
@ -1,7 +1,8 @@
|
|||
[gd_scene load_steps=21 format=3 uid="uid://dkwi1hu1bixoe"]
|
||||
[gd_scene load_steps=22 format=3 uid="uid://dkwi1hu1bixoe"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://baf6pxbvhqmjk" path="res://Scripts/Hud.cs" id="1_m0hb0"]
|
||||
[ext_resource type="FontFile" uid="uid://ccm3u37q1hvux" path="res://fonts/Xolonium-Regular.ttf" id="2_0xmx2"]
|
||||
[ext_resource type="PackedScene" uid="uid://cd3ee1adstcrw" path="res://Scenes/HUD/HudItemContainer.tscn" id="2_mattb"]
|
||||
[ext_resource type="LabelSettings" uid="uid://buk3e7bbwmnv1" path="res://Resources/Styles/Hud_Text_Style.tres" id="2_x7kl7"]
|
||||
[ext_resource type="Texture2D" uid="uid://dde36pgb8fbwc" path="res://Sprites/selector_big.png" id="3_hee3i"]
|
||||
[ext_resource type="PackedScene" uid="uid://bybd38ivpb2ly" path="res://Scenes/HUD/pause_menu.tscn" id="3_hxmxt"]
|
||||
|
|
@ -68,6 +69,7 @@ anti_aliasing = false
|
|||
[node name="HUD" type="CanvasLayer" node_paths=PackedStringArray("_healthLabel", "_healthBar", "_shieldLabel", "_shieldBar", "_itemsContainer", "_gameOverPanel", "PauseMenuContainer", "DebugMenuHolder")]
|
||||
process_mode = 3
|
||||
script = ExtResource("1_m0hb0")
|
||||
WeaponContainerTemplate = ExtResource("2_mattb")
|
||||
_healthLabel = NodePath("VBoxContainer/HealthBarContainer/HealthLabel")
|
||||
_healthBar = NodePath("VBoxContainer/HealthBarContainer/HealthBar")
|
||||
_shieldLabel = NodePath("VBoxContainer/ShieldBarContainer/ShieldLabel")
|
||||
|
|
@ -195,6 +197,7 @@ mouse_filter = 2
|
|||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="ItemList" type="ItemList" parent="Control"]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
|
|
|
|||
43
Scenes/HUD/HudItemContainer.tscn
Normal file
43
Scenes/HUD/HudItemContainer.tscn
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://cd3ee1adstcrw"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://chqjrv7wqk6ej" path="res://Scripts/UI/WeaponAmmoCounter.cs" id="1_pwei3"]
|
||||
[ext_resource type="Texture2D" uid="uid://duwiasewxvcb5" path="res://Sprites/Items/Icicle_Gun.png" id="2_pqw4t"]
|
||||
[ext_resource type="LabelSettings" uid="uid://buk3e7bbwmnv1" path="res://Resources/Styles/Hud_Text_Style.tres" id="3_a6rek"]
|
||||
[ext_resource type="Texture2D" uid="uid://c5g0qg6u2gm6f" path="res://Sprites/Items/Ammo1.png" id="4_kbanm"]
|
||||
|
||||
[node name="HudItemContainer" type="Control" node_paths=PackedStringArray("Icon", "AmmoIcon", "TotalAmmoLabel", "LoadedAmmoLabel")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_pwei3")
|
||||
Icon = NodePath("HBoxContainer/WeaponIcon")
|
||||
AmmoIcon = NodePath("HBoxContainer/Ammo Icon")
|
||||
TotalAmmoLabel = NodePath("HBoxContainer/TotalAmmo")
|
||||
LoadedAmmoLabel = NodePath("HBoxContainer/LoadedAmmo")
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
offset_right = 16.0
|
||||
offset_bottom = 16.0
|
||||
theme_override_constants/separation = 0
|
||||
|
||||
[node name="WeaponIcon" type="TextureRect" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("2_pqw4t")
|
||||
|
||||
[node name="LoadedAmmo" type="Label" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "999"
|
||||
label_settings = ExtResource("3_a6rek")
|
||||
|
||||
[node name="Ammo Icon" type="TextureRect" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
texture = ExtResource("4_kbanm")
|
||||
|
||||
[node name="TotalAmmo" type="Label" parent="HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "999"
|
||||
label_settings = ExtResource("3_a6rek")
|
||||
|
|
@ -1,8 +1,7 @@
|
|||
[gd_scene load_steps=51 format=4 uid="uid://bpnahwxmjgb6t"]
|
||||
[gd_scene load_steps=50 format=4 uid="uid://bpnahwxmjgb6t"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://doxmbokehw8ci" path="res://Scripts/GameManager.cs" id="1_qxyfr"]
|
||||
[ext_resource type="PackedScene" uid="uid://c4pr2707hbeph" path="res://Scenes/Actors/fsm_player.tscn" id="2_ajkcn"]
|
||||
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="3_covcf"]
|
||||
[ext_resource type="Script" uid="uid://mja0rk7n2kln" path="res://Scripts/Resources/MapStartDataResource.cs" id="4_g48r8"]
|
||||
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="5_2m462"]
|
||||
[ext_resource type="Script" uid="uid://krean0uywtms" path="res://Scripts/TilemapAvoidance.cs" id="6_bnfdx"]
|
||||
|
|
@ -38,7 +37,7 @@
|
|||
[sub_resource type="Resource" id="Resource_6wo78"]
|
||||
script = ExtResource("4_g48r8")
|
||||
EggIndex = 0
|
||||
StartingEquipment = Array[ExtResource("3_covcf")]([])
|
||||
StartingEquipment = []
|
||||
|
||||
[sub_resource type="Resource" id="Resource_hppa0"]
|
||||
script = ExtResource("14_wc2f3")
|
||||
|
|
|
|||
|
|
@ -215,7 +215,7 @@ SpawnMarkers = Dictionary[int, NodePath]({
|
|||
2: NodePath("Factory Tilemaps/LevelProps/BossDebugTeleporterDestination"),
|
||||
255: NodePath("Factory Tilemaps/Debug Room/DebugRoomStartPosition")
|
||||
})
|
||||
StartingEquipment = Array[ExtResource("6_8tdlb")]([ExtResource("4_swym2"), ExtResource("5_nqier")])
|
||||
StartingEquipment = [ExtResource("4_swym2"), ExtResource("5_nqier")]
|
||||
MapStartData = SubResource("Resource_6sau4")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
|
|
@ -971,7 +971,7 @@ position = Vector2(-2000, -736)
|
|||
[node name="ControlPad8" parent="Factory Tilemaps/LevelProps" node_paths=PackedStringArray("Targets") instance=ExtResource("12_hfkf1")]
|
||||
position = Vector2(-2027, -735)
|
||||
Targets = [NodePath("../HorizontalForceField")]
|
||||
Requirements = Array[ExtResource("6_8tdlb")]([ExtResource("84_ma1ta")])
|
||||
Requirements = [ExtResource("84_ma1ta")]
|
||||
|
||||
[node name="Ammo6" parent="Factory Tilemaps/LevelProps" instance=ExtResource("34_17pjh")]
|
||||
position = Vector2(-872, -220)
|
||||
|
|
@ -998,6 +998,7 @@ position = Vector2(-1163, -812)
|
|||
process_mode = 1
|
||||
script = ExtResource("6_t8ide")
|
||||
pixel_snap = false
|
||||
enable_smoothing = false
|
||||
|
||||
[node name="CameraTarget" type="Node2D" parent="."]
|
||||
position = Vector2(-808, -169)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue