This commit is contained in:
Marco 2025-03-04 10:37:15 +01:00
commit 323c420aad
21 changed files with 299 additions and 19 deletions

View file

@ -0,0 +1,20 @@
[gd_resource type="Resource" script_class="LootItem" load_steps=3 format=3 uid="uid://cvlwye1u5gv8u"]
[ext_resource type="Texture2D" uid="uid://cdwip2s28eleh" path="res://Sprites/Items/Point_Pickup_Green.png" id="1_b4fj2"]
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="2_fg25e"]
[resource]
script = ExtResource("2_fg25e")
ItemName = "Green Points"
ItemDescription = "Use them for upgrades"
ItemKey = "GreenPoints"
Item = 11
Amount = 1
Max = 100
PickupIfMaxed = false
ConsumeOnUse = true
UiType = 0
Selectable = false
InventorySprite = ExtResource("1_b4fj2")
DropScenePath = null
metadata/_custom_type_script = "uid://epnwjptvks3t"

View file

@ -0,0 +1,20 @@
[gd_resource type="Resource" script_class="LootItem" load_steps=3 format=3 uid="uid://cltxhkrqp055v"]
[ext_resource type="Texture2D" uid="uid://4x3ouxyxjqjc" path="res://Sprites/Items/Credits_Pickup.png" id="1_woor7"]
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="2_swcup"]
[resource]
script = ExtResource("2_swcup")
ItemName = "Credits"
ItemDescription = "Spend it on stuff"
ItemKey = "Credits"
Item = 4
Amount = 1
Max = 10
PickupIfMaxed = false
ConsumeOnUse = true
UiType = 0
Selectable = true
InventorySprite = ExtResource("1_woor7")
DropScenePath = null
metadata/_custom_type_script = "uid://epnwjptvks3t"

View file

@ -0,0 +1,20 @@
[gd_resource type="Resource" script_class="LootItem" load_steps=3 format=3 uid="uid://dy53gia1tmkah"]
[ext_resource type="Texture2D" uid="uid://d2vmocquikjia" path="res://Sprites/Items/Point_Pickup.png" id="1_nsfmo"]
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="2_rxsju"]
[resource]
script = ExtResource("2_rxsju")
ItemName = "Points"
ItemDescription = "Use them for upgrades"
ItemKey = "Points"
Item = 11
Amount = 1
Max = 100
PickupIfMaxed = false
ConsumeOnUse = true
UiType = 0
Selectable = false
InventorySprite = ExtResource("1_nsfmo")
DropScenePath = null
metadata/_custom_type_script = "uid://epnwjptvks3t"

View file

@ -10,10 +10,10 @@ ItemDescription = "Restores Health when used"
ItemKey = "PowerPickup"
Item = 4
Amount = 1
Max = 10
Max = 100
PickupIfMaxed = false
ConsumeOnUse = true
UiType = 2
Selectable = true
Selectable = false
InventorySprite = ExtResource("1_cang8")
DropScenePath = &"res://Scenes/Items/Power_Pickup.tscn"

View file

@ -0,0 +1,20 @@
[gd_resource type="Resource" script_class="LootItem" load_steps=3 format=3 uid="uid://bhbufxodybsw4"]
[ext_resource type="Texture2D" uid="uid://8n23xie4kore" path="res://Sprites/Items/Shield_Pickup.png" id="1_0hq6q"]
[ext_resource type="Script" uid="uid://epnwjptvks3t" path="res://Scripts/Resources/LootItem.cs" id="2_xsuq5"]
[resource]
script = ExtResource("2_xsuq5")
ItemName = "Shield"
ItemDescription = "Gives back 20 Shield on use"
ItemKey = "Shield"
Item = 8
Amount = 1
Max = 10
PickupIfMaxed = false
ConsumeOnUse = true
UiType = 0
Selectable = true
InventorySprite = ExtResource("1_0hq6q")
DropScenePath = null
metadata/_custom_type_script = "uid://epnwjptvks3t"

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=20 format=3 uid="uid://dkwi1hu1bixoe"]
[gd_scene load_steps=21 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"]
@ -9,6 +9,7 @@
[ext_resource type="PackedScene" uid="uid://bwlstkdibs7oc" path="res://Scenes/HUD/BossHud.tscn" id="5_vmict"]
[ext_resource type="FontFile" uid="uid://coek1e2q257pq" path="res://fonts/at01.ttf" id="6_sk1eq"]
[ext_resource type="Theme" uid="uid://dnsadvmunm76k" path="res://Resources/Styles/MainMenuButtons.tres" id="9_sx5r0"]
[ext_resource type="StyleBox" uid="uid://ctw2hju32l3rg" path="res://Resources/Styles/PixelStyleBoxRed.tres" id="10_f3h51"]
[ext_resource type="Script" uid="uid://bobo5f4ud60qw" path="res://Scripts/UI/ItemsMenu.cs" id="10_oflr6"]
[sub_resource type="LabelSettings" id="LabelSettings_a7f6n"]
@ -201,6 +202,7 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("9_sx5r0")
theme_override_styles/panel = ExtResource("10_f3h51")
allow_search = false
max_columns = 3
same_column_width = true

View file

@ -0,0 +1,34 @@
[gd_scene load_steps=7 format=3 uid="uid://4fgo44p5au60"]
[ext_resource type="Script" uid="uid://b3h7b30kerf60" path="res://Scripts/Interactables/ItemPickup.cs" id="1_6hoyh"]
[ext_resource type="Resource" uid="uid://cltxhkrqp055v" path="res://Resources/Items/Money_Pickup.tres" id="2_6hoyh"]
[ext_resource type="Texture2D" uid="uid://4x3ouxyxjqjc" path="res://Sprites/Items/Credits_Pickup.png" id="3_kgofy"]
[sub_resource type="CircleShape2D" id="CircleShape2D_6vv2s"]
[sub_resource type="AtlasTexture" id="AtlasTexture_4jmbc"]
atlas = ExtResource("3_kgofy")
region = Rect2(0, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_4vvwn"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_4jmbc")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="CreditsPickup" type="Area2D" groups=["Interactable"]]
collision_layer = 4
collision_mask = 2
script = ExtResource("1_6hoyh")
LootTable = [ExtResource("2_6hoyh")]
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_6vv2s")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_4vvwn")

View file

@ -0,0 +1,34 @@
[gd_scene load_steps=7 format=3 uid="uid://cdb0ix4tmypw7"]
[ext_resource type="Script" uid="uid://b3h7b30kerf60" path="res://Scripts/Interactables/ItemPickup.cs" id="1_qj8l7"]
[ext_resource type="Resource" uid="uid://cvlwye1u5gv8u" path="res://Resources/Items/Green_Points_Pickup.tres" id="2_qj8l7"]
[ext_resource type="Texture2D" uid="uid://cdwip2s28eleh" path="res://Sprites/Items/Point_Pickup_Green.png" id="3_4dbdl"]
[sub_resource type="CircleShape2D" id="CircleShape2D_6vv2s"]
[sub_resource type="AtlasTexture" id="AtlasTexture_j2ujy"]
atlas = ExtResource("3_4dbdl")
region = Rect2(0, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_6m0m2"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_j2ujy")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="PointsPickup" type="Area2D" groups=["Interactable"]]
collision_layer = 4
collision_mask = 2
script = ExtResource("1_qj8l7")
LootTable = [ExtResource("2_qj8l7")]
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_6vv2s")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_6m0m2")

View file

@ -0,0 +1,34 @@
[gd_scene load_steps=7 format=3 uid="uid://bl0f0gn6b76n2"]
[ext_resource type="Script" uid="uid://b3h7b30kerf60" path="res://Scripts/Interactables/ItemPickup.cs" id="1_klf5k"]
[ext_resource type="Resource" uid="uid://dy53gia1tmkah" path="res://Resources/Items/Points_Pickup.tres" id="2_klf5k"]
[ext_resource type="Texture2D" uid="uid://d2vmocquikjia" path="res://Sprites/Items/Point_Pickup.png" id="3_g4w2k"]
[sub_resource type="CircleShape2D" id="CircleShape2D_6vv2s"]
[sub_resource type="AtlasTexture" id="AtlasTexture_3mt0v"]
atlas = ExtResource("3_g4w2k")
region = Rect2(0, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_koe11"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_3mt0v")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="PointsPickup" type="Area2D" groups=["Interactable"]]
collision_layer = 4
collision_mask = 2
script = ExtResource("1_klf5k")
LootTable = [ExtResource("2_klf5k")]
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_6vv2s")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_koe11")

View file

@ -0,0 +1,34 @@
[gd_scene load_steps=7 format=3 uid="uid://clh3333ycrk3x"]
[ext_resource type="Script" uid="uid://b3h7b30kerf60" path="res://Scripts/Interactables/ItemPickup.cs" id="1_qy0nf"]
[ext_resource type="Resource" uid="uid://bhbufxodybsw4" path="res://Resources/Items/Shield_Pickup.tres" id="2_gk7xg"]
[ext_resource type="Texture2D" uid="uid://8n23xie4kore" path="res://Sprites/Items/Shield_Pickup.png" id="3_gk7xg"]
[sub_resource type="CircleShape2D" id="CircleShape2D_6vv2s"]
[sub_resource type="AtlasTexture" id="AtlasTexture_qy0nf"]
atlas = ExtResource("3_gk7xg")
region = Rect2(0, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_ga0s1"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_qy0nf")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="ShieldPickup" type="Area2D" groups=["Interactable"]]
collision_layer = 4
collision_mask = 2
script = ExtResource("1_qy0nf")
LootTable = [ExtResource("2_gk7xg")]
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_6vv2s")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_ga0s1")

File diff suppressed because one or more lines are too long

View file

@ -11,5 +11,8 @@ public enum ItemTypes
Bomb,
Mine,
Battery,
Weapon
Weapon,
Power,
Points,
Credits
}

BIN
Sprites/Items/Credits_Pickup.aseprite (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Sprites/Items/Credits_Pickup.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://4x3ouxyxjqjc"
path="res://.godot/imported/Credits_Pickup.png-3f222edf3f4332d8f948db40f0ef4d98.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/Items/Credits_Pickup.png"
dest_files=["res://.godot/imported/Credits_Pickup.png-3f222edf3f4332d8f948db40f0ef4d98.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1

BIN
Sprites/Items/Heart_Pickup.aseprite (Stored with Git LFS)

Binary file not shown.

BIN
Sprites/Items/Heart_Pickup.png (Stored with Git LFS)

Binary file not shown.

BIN
Sprites/Items/Point_Pickup_Green.aseprite (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Sprites/Items/Point_Pickup_Green.png (Stored with Git LFS)

Binary file not shown.

BIN
Sprites/Items/Shield_Pickup.aseprite (Stored with Git LFS)

Binary file not shown.

BIN
Sprites/Items/Shield_Pickup.png (Stored with Git LFS)

Binary file not shown.