mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-15 08:33:46 +00:00
UI Inventory management
This commit is contained in:
parent
f4f193af7a
commit
c9abac3dc1
20 changed files with 262 additions and 72 deletions
|
|
@ -1,8 +1,9 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://dkwi1hu1bixoe"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://dkwi1hu1bixoe"]
|
||||
|
||||
[ext_resource type="Script" 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="Texture2D" uid="uid://dde36pgb8fbwc" path="res://Sprites/selector_big.png" id="3_hee3i"]
|
||||
[ext_resource type="PackedScene" uid="uid://cicthr1v5v4s2" path="res://Scenes/HUD/Items/icicle_gun.tscn" id="4_m333p"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_h626b"]
|
||||
atlas = ExtResource("3_hee3i")
|
||||
|
|
@ -63,6 +64,10 @@ frame_progress = 0.8514
|
|||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 4.0
|
||||
offset_top = 6.0
|
||||
offset_right = -4.0
|
||||
offset_bottom = -3.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 3
|
||||
|
|
@ -76,3 +81,14 @@ text = "100/100"
|
|||
|
||||
[node name="ItemsContainer" type="VBoxContainer" parent="VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/ItemsContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="IcicleGun" parent="VBoxContainer/ItemsContainer/HBoxContainer" instance=ExtResource("4_m333p")]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="VBoxContainer/ItemsContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_font_sizes/font_size = 10
|
||||
text = "100/300"
|
||||
|
|
|
|||
7
Scenes/HUD/Items/ammo.tscn
Normal file
7
Scenes/HUD/Items/ammo.tscn
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://cjv4yahpb0h2l"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://c5g0qg6u2gm6f" path="res://Sprites/Items/Ammo1.png" id="1_at3u7"]
|
||||
|
||||
[node name="Ammo" type="TextureRect"]
|
||||
texture = ExtResource("1_at3u7")
|
||||
stretch_mode = 2
|
||||
7
Scenes/HUD/Items/icicle_gun.tscn
Normal file
7
Scenes/HUD/Items/icicle_gun.tscn
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://cicthr1v5v4s2"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://duwiasewxvcb5" path="res://Sprites/Items/Icicle_Gun.png" id="1_ebd3h"]
|
||||
|
||||
[node name="IcicleGun" type="TextureRect"]
|
||||
texture = ExtResource("1_ebd3h")
|
||||
stretch_mode = 2
|
||||
11
Scenes/HUD/Items/red_keycard.tscn
Normal file
11
Scenes/HUD/Items/red_keycard.tscn
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://xvgx3vda1a5o"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bad6gbl2gity3" path="res://Sprites/Items/RedKeycard_Small.png" id="1_slovd"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_cowsj"]
|
||||
atlas = ExtResource("1_slovd")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[node name="RedKeycard" type="TextureRect"]
|
||||
texture = SubResource("AtlasTexture_cowsj")
|
||||
stretch_mode = 2
|
||||
|
|
@ -1,11 +1,19 @@
|
|||
[gd_scene load_steps=4 format=3 uid="uid://cmr6fclttrpkb"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://cmr6fclttrpkb"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dxs3ks2ucaxl4" path="res://Scenes/Items/Red_Keycard.tscn" id="1_i3l7m"]
|
||||
[ext_resource type="Script" path="res://Scripts/Interactables/ItemPickup.cs" id="1_it180"]
|
||||
[ext_resource type="Resource" uid="uid://ct1fa2huvy34n" path="res://Resources/Items/Ammo1.tres" id="2_j10i4"]
|
||||
[ext_resource type="SpriteFrames" uid="uid://pmwatoyt2ase" path="res://Resources/Sprites/Ammo_Inventory_Sprite.tres" id="3_6n103"]
|
||||
|
||||
[node name="Ammo1" instance=ExtResource("1_i3l7m")]
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_6vv2s"]
|
||||
|
||||
[node name="Ammo1" type="Area2D" groups=["Interactable"]]
|
||||
collision_layer = 4
|
||||
collision_mask = 2
|
||||
script = ExtResource("1_it180")
|
||||
LootTable = [ExtResource("2_j10i4")]
|
||||
|
||||
[node name="AnimatedSprite2D" parent="." index="1"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_6vv2s")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = ExtResource("3_6n103")
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
[gd_scene load_steps=8 format=4 uid="uid://bu5fvatj2j08j"]
|
||||
[gd_scene load_steps=6 format=4 uid="uid://bu5fvatj2j08j"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/GameManager.cs" id="1_paetl"]
|
||||
[ext_resource type="PackedScene" uid="uid://d1rlw6ddpmrn8" path="res://Scenes/Actors/Rumia.tscn" id="2_47q21"]
|
||||
[ext_resource type="PackedScene" uid="uid://bghghp5ep4w2j" path="res://Scenes/player.tscn" id="2_f17ts"]
|
||||
[ext_resource type="TileSet" uid="uid://6k28roiljylj" path="res://Tilesets/factory_tileset.tres" id="3_cyhmq"]
|
||||
[ext_resource type="Resource" uid="uid://ks6fypeil6gk" path="res://Resources/BossPhases/TestBoss1.tres" id="5_jkuab"]
|
||||
[ext_resource type="Resource" uid="uid://ccj0cqbveey8c" path="res://Resources/BossPhases/Rumia_SP1.tres" id="6_1uicx"]
|
||||
[ext_resource type="PackedScene" uid="uid://bdp710abe10s5" path="res://Scenes/Interactable/AreaTrigger.tscn" id="9_xhf0g"]
|
||||
|
||||
[node name="GameScene" type="Node2D" node_paths=PackedStringArray("PlayerSpawnMarker")]
|
||||
|
|
@ -31,7 +29,6 @@ tile_set = ExtResource("3_cyhmq")
|
|||
|
||||
[node name="Rumia" parent="." instance=ExtResource("2_47q21")]
|
||||
position = Vector2(176, 44)
|
||||
Phases = Array[Resource]([ExtResource("5_jkuab"), ExtResource("6_1uicx")])
|
||||
|
||||
[node name="PlayerStartPosition" type="Marker2D" parent="."]
|
||||
position = Vector2(178, 115)
|
||||
|
|
|
|||
|
|
@ -82,9 +82,6 @@ Target = NodePath("../../HorizontalDoor2")
|
|||
|
||||
[node name="Debug Room" type="Node2D" parent="Factory Tilemaps"]
|
||||
|
||||
[node name="Ammo1" parent="Factory Tilemaps/Debug Room" instance=ExtResource("34_17pjh")]
|
||||
position = Vector2(-873, -348)
|
||||
|
||||
[node name="BlueKeycard" parent="Factory Tilemaps/Debug Room" instance=ExtResource("35_rblsn")]
|
||||
position = Vector2(-921, -348)
|
||||
|
||||
|
|
@ -206,9 +203,11 @@ position = Vector2(-710, -459)
|
|||
|
||||
[node name="Barrel" parent="Factory Tilemaps" instance=ExtResource("18_vy02r")]
|
||||
position = Vector2(-711, -395)
|
||||
ExplosionScene = null
|
||||
|
||||
[node name="Barrel2" parent="Factory Tilemaps" instance=ExtResource("18_vy02r")]
|
||||
position = Vector2(-700, -381)
|
||||
ExplosionScene = null
|
||||
|
||||
[node name="CameraController" type="Camera2D" parent="."]
|
||||
script = ExtResource("6_t8ide")
|
||||
|
|
@ -331,3 +330,6 @@ Target = NodePath("DialogueStarter")
|
|||
[node name="DialogueStarter" parent="Computer2" instance=ExtResource("32_68v02")]
|
||||
position = Vector2(291.847, -32.7126)
|
||||
_trackName = "computer2"
|
||||
|
||||
[node name="Ammo1" parent="." instance=ExtResource("34_17pjh")]
|
||||
position = Vector2(-792, -378)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue