diff --git a/Game/LifeQuest/Item.tscn b/Game/LifeQuest/Item.tscn new file mode 100644 index 00000000..e1d7cccd --- /dev/null +++ b/Game/LifeQuest/Item.tscn @@ -0,0 +1,36 @@ +[gd_scene load_steps=3 format=3 uid="uid://ckd8jvik4ymei"] + +[ext_resource type="Script" path="res://Scripts/Items.gd" id="1_3jq06"] +[ext_resource type="Texture2D" uid="uid://2hcra8yo8sn2" path="res://Sprites/Equipment Icons/Iron Sword.png" id="2_wijr2"] + +[node name="Item" type="Node2D"] +z_index = 1 +script = ExtResource("1_3jq06") + +[node name="TextureRect2" type="TextureRect" parent="."] +visible = false +offset_right = 7.0 +offset_bottom = 15.2069 +mouse_filter = 2 +texture = ExtResource("2_wijr2") +expand_mode = 5 + +[node name="TextureRect" type="TextureRect" parent="."] +offset_right = 40.0 +offset_bottom = 63.0 +mouse_filter = 2 + +[node name="Label" type="Label" parent="."] +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = 21.0 +offset_top = 40.0 +offset_right = 40.0 +offset_bottom = 63.0 +grow_horizontal = 0 +grow_vertical = 0 +theme_override_colors/font_color = Color(0, 0, 0, 1) +text = "99" diff --git a/Game/LifeQuest/Items.gd b/Game/LifeQuest/Items.gd new file mode 100644 index 00000000..3f73de2c --- /dev/null +++ b/Game/LifeQuest/Items.gd @@ -0,0 +1,38 @@ +extends Node2D +var itemname # variable for the items name +var itemquantity # variable for the items quantity, amount of stacked items + + + +func _ready(): + # Ensure that $TextureRect exists and is a TextureRect node + if $TextureRect: + if randi() % 2 == 0: + itemname = "Iron Sword" + else: + itemname = "Wooden Sword" + + #To set the equipment texture + $TextureRect.texture = load("res://Sprites/Equipment Icons/" + itemname + ".png") + #var to set the stack size of each item + var stacksize = int(Jsonitems.itemdata[itemname]["StackSize"]) + + #test: + itemquantity = randi() % stacksize +1 + + + #for the non-stacking items we do not need to show label amount + if stacksize == 1: + $Label.visible = false + else: + $Label.text = str(itemquantity) + + +#add and combine or split inventory items +func addquantity(amount): + itemquantity += amount + $Label.text = String(itemquantity) + +func decreasequantity(amount): + itemquantity -= amount + $Label.text = String(itemquantity) diff --git a/Game/LifeQuest/Items/Iron Sword.tres b/Game/LifeQuest/Items/Iron Sword.tres new file mode 100644 index 00000000..b7f3843b --- /dev/null +++ b/Game/LifeQuest/Items/Iron Sword.tres @@ -0,0 +1,18 @@ +[gd_resource type="Resource" script_class="ItemResource" load_steps=3 format=3 uid="uid://ct3ukdhpt44wv"] + +[ext_resource type="Texture2D" uid="uid://2hcra8yo8sn2" path="res://Sprites/Equipment Icons/Iron Sword.png" id="1_ldxdw"] +[ext_resource type="Script" path="res://Scripts/Items/item.gd" id="1_tq5fs"] + +[resource] +script = ExtResource("1_tq5fs") +name = "Iron Sword" +description = "" +stackable = false +max_stack_size = 1 +itemType = 1 +equipLocation = 5 +damage = 10 +healthBonus = 0 +defenseBonus = 0 +magicBonus = 0 +icon = ExtResource("1_ldxdw") diff --git a/Game/LifeQuest/Items/TestingHelmet2.tres b/Game/LifeQuest/Items/TestingHelmet2.tres index 2341df90..3fa31c4b 100644 --- a/Game/LifeQuest/Items/TestingHelmet2.tres +++ b/Game/LifeQuest/Items/TestingHelmet2.tres @@ -5,6 +5,9 @@ [resource] script = ExtResource("1_xpd8c") name = "Testing Helmet2" +description = "" +stackable = false +max_stack_size = 1 itemType = 1 equipLocation = 0 damage = 0 diff --git a/Game/LifeQuest/Items/large health potion.tres b/Game/LifeQuest/Items/large health potion.tres new file mode 100644 index 00000000..f66e347a --- /dev/null +++ b/Game/LifeQuest/Items/large health potion.tres @@ -0,0 +1,18 @@ +[gd_resource type="Resource" script_class="ItemResource" load_steps=3 format=3 uid="uid://25c2xrtjprg7"] + +[ext_resource type="Script" path="res://Scripts/Items/item.gd" id="1_gjrsj"] +[ext_resource type="Texture2D" uid="uid://cdhog52vtvha0" path="res://Sprites/Equipment Icons/large health potion.png" id="1_iyue3"] + +[resource] +script = ExtResource("1_gjrsj") +name = "Large Health Potion" +description = "Heals a Large portion of health" +stackable = true +max_stack_size = 99 +itemType = 0 +equipLocation = 0 +damage = 0 +healthBonus = 0 +defenseBonus = 0 +magicBonus = 0 +icon = ExtResource("1_iyue3") diff --git a/Game/LifeQuest/Items/small health potion.tres b/Game/LifeQuest/Items/small health potion.tres new file mode 100644 index 00000000..263cf2f8 --- /dev/null +++ b/Game/LifeQuest/Items/small health potion.tres @@ -0,0 +1,18 @@ +[gd_resource type="Resource" script_class="ItemResource" load_steps=3 format=3 uid="uid://8hgtl3bn8lig"] + +[ext_resource type="Texture2D" uid="uid://dhuxo31oaolsq" path="res://Sprites/Equipment Icons/small health potion.png" id="1_kq2oc"] +[ext_resource type="Script" path="res://Scripts/Items/item.gd" id="1_p4ifm"] + +[resource] +script = ExtResource("1_p4ifm") +name = "Small Health Potion" +description = "Heals a small portion of health" +stackable = true +max_stack_size = 99 +itemType = 0 +equipLocation = 0 +damage = 0 +healthBonus = 0 +defenseBonus = 0 +magicBonus = 0 +icon = ExtResource("1_kq2oc") diff --git a/Game/LifeQuest/Scripts/Items.gd b/Game/LifeQuest/Scripts/Items.gd new file mode 100644 index 00000000..dcc0d25f --- /dev/null +++ b/Game/LifeQuest/Scripts/Items.gd @@ -0,0 +1,39 @@ +extends Node2D +var itemname # variable for the items name +var itemquantity # variable for the items quantity, amount of items + + + +func _ready(): + pass + + +#add and combine or split inventory items +func addquantity(amount): + itemquantity += amount + $Label.text = str(itemquantity) + +func decreasequantity(amount): + itemquantity -= amount + $Label.text = str(itemquantity) + +func setitem(itemname2,itemquantity2): + var item = ItemDatabase.get_item(itemname2) + itemname = itemname2 + itemquantity = itemquantity2 + #$TextureRect.texture = load("res://Sprites/Equipment Icons/" + itemname + ".png") + + $TextureRect.texture = item.icon + #var stacksize = int(Jsonitems.itemdata[itemname]["StackSize"]) + + var stacksize = item.max_stack_size + #print("stacksize:",stacksize) + #print("items:",item.name) + + #var stacksize = int(item.max_stack_size) + if stacksize == 1: + $Label.visible = false + else: + $Label.text = str(itemquantity) + + diff --git a/Game/LifeQuest/Scripts/Items/item.gd b/Game/LifeQuest/Scripts/Items/item.gd index e2818028..d3e6dd08 100644 --- a/Game/LifeQuest/Scripts/Items/item.gd +++ b/Game/LifeQuest/Scripts/Items/item.gd @@ -2,12 +2,19 @@ extends Resource class_name ItemResource @export var name : String +@export_multiline var description : String +@export var stackable : bool = false +@export var max_stack_size : int = 1 + + enum ItemType { CONSUMABLE, EQUIPMENT, GENERIC } -enum EquipmentLocation { HEAD, CHEST, ARMS, HANDS, LEGS, FEET} +enum EquipmentLocation {INVENTORY,HEAD,PANTS,HANDS,SHOES,WEAPON,ACCESSORY,} @export var itemType : ItemType @export var equipLocation : EquipmentLocation @export var damage : int = 0 @export var healthBonus : int = 0 @export var defenseBonus : int = 0 @export var magicBonus : int = 0 - +# Sprite properties +@export var icon : Texture + diff --git a/Game/LifeQuest/Scripts/PlayerInventory.gd b/Game/LifeQuest/Scripts/PlayerInventory.gd new file mode 100644 index 00000000..91adae6e --- /dev/null +++ b/Game/LifeQuest/Scripts/PlayerInventory.gd @@ -0,0 +1,33 @@ +extends Node + +# Preload the scripts for the slot and items +const SlotClass = preload("res://Scripts/Slot.gd") +const ItemClass = preload("res://Scripts/Items.gd") +#const for inventory slots +const INVENTORYSLOTS = 15 +#initial inventory data +var inventory ={ + 0: ["Iron Sword", 1], + #1: ["Wooden Sword", 1], + 1: ["Small Health Potion", 10], + 2: ["Small Health Potion", 5], + 3: ["Large Health Potion", 5], + #can add more starting items +} +var equip = { + #0: [ , ], + + + +} + + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass diff --git a/Game/LifeQuest/Scripts/Slot.gd b/Game/LifeQuest/Scripts/Slot.gd new file mode 100644 index 00000000..dadbf29b --- /dev/null +++ b/Game/LifeQuest/Scripts/Slot.gd @@ -0,0 +1,71 @@ +extends Panel + +var defaulttexture: Texture +var emptytexture: Texture + +# To access the item class vars +var ItemScene: PackedScene = preload("res://Item.tscn") +var item: Node2D = null + + +enum SlotType { + INVENTROY, + HEAD, + PANTS, + HANDS, + SHOES, + WEAPON, + ACCESSORY, +} + +var slotType = null + +func _ready(): + defaulttexture = preload("res://Sprites/Equipment Icons/full inventory slot.png") + emptytexture = preload("res://Sprites/Equipment Icons/empty inventory slot.png") + #if randi() % 2 == 0: + #item = ItemScene.instantiate() + #add_child(item) + #refresh() + +#does not change slots TODO not a big part of functionality visual thing: +func refresh(): + if item == null: + set("theme_override_styles/panel",emptytexture) + #print("slot empty") + else: + set("theme_override_styles/panel",defaulttexture) + #print("slot full") + + +#to pick up items from the slot fuction +func pickslot(): + if item: #if there is an item + remove_child(item) #pick up/ remove + var inventoryNode = find_parent("Inventory") + if inventoryNode: + inventoryNode.add_child(item) + item = null + refresh() + +func putslot(newitem): + if newitem: + item = newitem + item.position = Vector2(0, 0) + var inventoryNode = find_parent("Inventory") + if inventoryNode: + inventoryNode.remove_child(item) + add_child(item) + refresh() + +func initializeitem(itemname, itemquantity): + #print("item name:", itemname) + #print("item quantity:", itemquantity) + #check for null and if so then make an instance + if item == null: + item = ItemScene.instantiate() + add_child(item) + item.setitem(itemname,itemquantity)#function of item + else: + item.setitem(itemname,itemquantity) + refresh() diff --git a/Game/LifeQuest/Scripts/UserInterface.gd b/Game/LifeQuest/Scripts/UserInterface.gd new file mode 100644 index 00000000..2a0ec1f1 --- /dev/null +++ b/Game/LifeQuest/Scripts/UserInterface.gd @@ -0,0 +1,20 @@ +extends CanvasLayer + + +# Called when the node enters the scene tree for the first time. +func _ready(): + pass # Replace with function body. + +#function for when the I button assined as the inventory button is pressed +func _input(event): + if event.is_action_pressed("inventory"): + $Inventory.visible = !$Inventory.visible + $Inventory.initializeinventory() + + + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta): + pass + diff --git a/Game/LifeQuest/Scripts/inventory.gd b/Game/LifeQuest/Scripts/inventory.gd new file mode 100644 index 00000000..dce2db00 --- /dev/null +++ b/Game/LifeQuest/Scripts/inventory.gd @@ -0,0 +1,134 @@ +extends Node2D +#need the Slot refrence as it goes hand in hand with inventory +const SlotClass = preload("res://Scripts/Slot.gd") +# refrence to the Grid where the slots are at +@onready var inventoryslot = $GridContainer +@onready var equipslots = $EquipSlot +#var for the item that the mouse has +var holditem = null + +# Called when the node enters the scene tree for the first time. +func _ready(): + for i in range(inventoryslot.get_child_count()): + var invslot = inventoryslot.get_child(i) + invslot.gui_input.connect(slotinput.bind(invslot)) + invslot.slotType = SlotClass.SlotType.INVENTROY + initializeinventory() + for i in range(equipslots.get_child_count()): + var equslot = equipslots.get_child(i) + equslot.gui_input.connect(slotinput.bind(equslot)) + match i: + 0: + equslot.slotType = SlotClass.SlotType.HEAD + 1: + equslot.slotType = SlotClass.SlotType.PANTS + 2: + equslot.slotType = SlotClass.SlotType.HANDS + 3: + equslot.slotType = SlotClass.SlotType.SHOES + 4: + equslot.slotType = SlotClass.SlotType.WEAPON + 5: + equslot.slotType = SlotClass.SlotType.ACCESSORY + 6: + pass #empty slot null + 7: + equslot.slotType = SlotClass.SlotType.ACCESSORY + #check to see if they are assigned + print(equslot.slotType) + + for equipslot in equipslots.get_children(): + equipslot.gui_input.connect(slotinput.bind(equipslot)) + #equipslot[i] = SlotClass.SlotType.INVENTROY + +#function for initalizing the inventory +func initializeinventory(): + var slot = inventoryslot.get_children() + for i in range(slot.size()): + #print(PlayerInventory.inventory) + if PlayerInventory.inventory.has(i): + slot[i].initializeitem(PlayerInventory.inventory[i][0],PlayerInventory.inventory[i][1]) +#function for initalizing the equips +func initializeequip(): + pass + + +func slotinput(event:InputEvent, slot:SlotClass): + if(slot.item): + var item = ItemDatabase.get_item(slot.item.itemname) + _on_item_hovered(slot.item.itemname,get_global_mouse_position()) + #print(item.equipLocation) + else: + _on_item_exited() + #var item = ItemDatabase.get_item(slot.item.itemname) + #print(item) + + # check for mouse button input + if event is InputEventMouseButton: + + if event.button_index == MOUSE_BUTTON_LEFT && event.pressed: + if holditem != null: + if !slot.item: #place item to slot + var item = ItemDatabase.get_item(holditem.itemname) + if item.equipLocation == slot.slotType: + print(item.equipLocation) + slot.putslot(holditem) + holditem = null + else: + if(item.itemType != 0 && slot.slotType == 0 ): + slot.putslot(holditem) + holditem = null + else: + print ("does not go into slot:",slot.slotType," as it is of type:",item.equipLocation) + else: #we want to swap items with slot and held + if holditem.itemname != slot.item.itemname: + var item = ItemDatabase.get_item(holditem.itemname) + if item.equipLocation == slot.slotType: + #print("swap") + var temp = slot.item + slot.pickslot() + temp.global_position = event.global_position + slot.putslot(holditem) + holditem = temp + else:#the combine item part + + var item = ItemDatabase.get_item(slot.item.itemname) + #print(item) + var stacksize = item.max_stack_size + + var add = stacksize - slot.item.itemquantity #calculate the max amount -amount we have + + if add >= holditem.itemquantity: #if it the amount is bigger then the quantity dont combine but keep + slot.item.addquantity(holditem.itemquantity) + holditem.queue_free() + holditem = null + else:#otherwise we can combine both items + #print(add) + slot.item.addquantity(add) + holditem.decreasequantity(add) + + elif slot.item: + holditem = slot.item + slot.pickslot() + holditem.global_position = get_global_mouse_position() + +func _input(event): + if holditem: + holditem.global_position = get_global_mouse_position() + + +#x button to close inventory +func _on_quit_button_pressed(): + visible = !visible + + +# Function to show tooltip when hovering over an item +func _on_item_hovered(item_name: String, position): + # Show tooltip with information about the item + $TooltipLabel.global_position = position+ Vector2 (20,10) + $TooltipLabel.text = "Item: " + item_name + $TooltipLabel.visible = true + +# Function to hide tooltip when not hovering over an item +func _on_item_exited(): + $TooltipLabel.visible = false diff --git a/Game/LifeQuest/Slot.gd b/Game/LifeQuest/Slot.gd new file mode 100644 index 00000000..6f9c0bb0 --- /dev/null +++ b/Game/LifeQuest/Slot.gd @@ -0,0 +1,44 @@ +extends Panel + +var default_texture: Texture +var empty_texture: Texture + +# To access the item class vars +var ItemScene: PackedScene = preload("res://Item.tscn") +var item: Node2D = null + +func _ready(): + default_texture = preload("res://Sprites/Equipment Icons/full inventory slot.png") + empty_texture = preload("res://Sprites/Equipment Icons/empty inventory slot.png") + if randi() % 2 == 0: + item = ItemScene.instantiate() + add_child(item) + refresh() + +func refresh(): + if item == null: + #does not change slots TODO: + set("theme_override_styles/panel",empty_texture) + print("slot empty") + else: + set("theme_override_styles/panel",default_texture) + print("slot full") +#to pick up items from the slot fuction +func pickslot(): + if item: #if there is an item + remove_child(item) #pick up/ remove + var inventoryNode = find_parent("Inventory") + if inventoryNode: + inventoryNode.add_child(item) + item = null + refresh() + +func putslot(newitem): + if newitem: + item = newitem + item.position = Vector2(0, 0) + var inventoryNode = find_parent("Inventory") + if inventoryNode: + inventoryNode.remove_child(item) + add_child(item) + refresh() diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Accessory slot GUI.png b/Game/LifeQuest/Sprites/Equipment Icons/Accessory slot GUI.png new file mode 100644 index 00000000..b00dc3ec Binary files /dev/null and b/Game/LifeQuest/Sprites/Equipment Icons/Accessory slot GUI.png differ diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Accessory slot GUI.png.import b/Game/LifeQuest/Sprites/Equipment Icons/Accessory slot GUI.png.import new file mode 100644 index 00000000..66de1044 --- /dev/null +++ b/Game/LifeQuest/Sprites/Equipment Icons/Accessory slot GUI.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c2mhqes4s1w3c" +path="res://.godot/imported/Accessory slot GUI.png-e2103ebf4ed8a7046d37b317e7d06f46.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/Equipment Icons/Accessory slot GUI.png" +dest_files=["res://.godot/imported/Accessory slot GUI.png-e2103ebf4ed8a7046d37b317e7d06f46.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 diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Hands slot GUI.png b/Game/LifeQuest/Sprites/Equipment Icons/Hands slot GUI.png new file mode 100644 index 00000000..cc88ae7e Binary files /dev/null and b/Game/LifeQuest/Sprites/Equipment Icons/Hands slot GUI.png differ diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Hands slot GUI.png.import b/Game/LifeQuest/Sprites/Equipment Icons/Hands slot GUI.png.import new file mode 100644 index 00000000..76a823f9 --- /dev/null +++ b/Game/LifeQuest/Sprites/Equipment Icons/Hands slot GUI.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c8umopaoppk0o" +path="res://.godot/imported/Hands slot GUI.png-442f16e3d55d874dc9d01fa8506de0ba.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/Equipment Icons/Hands slot GUI.png" +dest_files=["res://.godot/imported/Hands slot GUI.png-442f16e3d55d874dc9d01fa8506de0ba.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 diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Head slot GUI.png b/Game/LifeQuest/Sprites/Equipment Icons/Head slot GUI.png new file mode 100644 index 00000000..a4051305 Binary files /dev/null and b/Game/LifeQuest/Sprites/Equipment Icons/Head slot GUI.png differ diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Head slot GUI.png.import b/Game/LifeQuest/Sprites/Equipment Icons/Head slot GUI.png.import new file mode 100644 index 00000000..07f44ea3 --- /dev/null +++ b/Game/LifeQuest/Sprites/Equipment Icons/Head slot GUI.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bc2vgv8p417lg" +path="res://.godot/imported/Head slot GUI.png-b08708e9242e467a478a5b9728518405.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/Equipment Icons/Head slot GUI.png" +dest_files=["res://.godot/imported/Head slot GUI.png-b08708e9242e467a478a5b9728518405.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 diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Iron Sword.png b/Game/LifeQuest/Sprites/Equipment Icons/Iron Sword.png new file mode 100644 index 00000000..1ef399fb Binary files /dev/null and b/Game/LifeQuest/Sprites/Equipment Icons/Iron Sword.png differ diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Iron Sword.png.import b/Game/LifeQuest/Sprites/Equipment Icons/Iron Sword.png.import new file mode 100644 index 00000000..3a87f208 --- /dev/null +++ b/Game/LifeQuest/Sprites/Equipment Icons/Iron Sword.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://2hcra8yo8sn2" +path="res://.godot/imported/Iron Sword.png-f8b549b2028325955d1812e20b18b2f4.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/Equipment Icons/Iron Sword.png" +dest_files=["res://.godot/imported/Iron Sword.png-f8b549b2028325955d1812e20b18b2f4.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 diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Pants slot GUI.png b/Game/LifeQuest/Sprites/Equipment Icons/Pants slot GUI.png new file mode 100644 index 00000000..1c2d73db Binary files /dev/null and b/Game/LifeQuest/Sprites/Equipment Icons/Pants slot GUI.png differ diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Pants slot GUI.png.import b/Game/LifeQuest/Sprites/Equipment Icons/Pants slot GUI.png.import new file mode 100644 index 00000000..2516f2cc --- /dev/null +++ b/Game/LifeQuest/Sprites/Equipment Icons/Pants slot GUI.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b634a7cidtq6h" +path="res://.godot/imported/Pants slot GUI.png-a4bbd4bb028d6e432ce55c0f04ceb444.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/Equipment Icons/Pants slot GUI.png" +dest_files=["res://.godot/imported/Pants slot GUI.png-a4bbd4bb028d6e432ce55c0f04ceb444.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 diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Shoes slot GUI.png b/Game/LifeQuest/Sprites/Equipment Icons/Shoes slot GUI.png new file mode 100644 index 00000000..c37c5672 Binary files /dev/null and b/Game/LifeQuest/Sprites/Equipment Icons/Shoes slot GUI.png differ diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Shoes slot GUI.png.import b/Game/LifeQuest/Sprites/Equipment Icons/Shoes slot GUI.png.import new file mode 100644 index 00000000..be697198 --- /dev/null +++ b/Game/LifeQuest/Sprites/Equipment Icons/Shoes slot GUI.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cagfuqa8cby11" +path="res://.godot/imported/Shoes slot GUI.png-60b90ffb664b10b3c860b26b4f85900a.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/Equipment Icons/Shoes slot GUI.png" +dest_files=["res://.godot/imported/Shoes slot GUI.png-60b90ffb664b10b3c860b26b4f85900a.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 diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Sword UI icon.png b/Game/LifeQuest/Sprites/Equipment Icons/Sword UI icon.png new file mode 100644 index 00000000..522953f8 Binary files /dev/null and b/Game/LifeQuest/Sprites/Equipment Icons/Sword UI icon.png differ diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Sword UI icon.png.import b/Game/LifeQuest/Sprites/Equipment Icons/Sword UI icon.png.import new file mode 100644 index 00000000..8c429790 --- /dev/null +++ b/Game/LifeQuest/Sprites/Equipment Icons/Sword UI icon.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cohlh1esop42x" +path="res://.godot/imported/Sword UI icon.png-7f9f9b627e59952d68428aa17617afcd.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/Equipment Icons/Sword UI icon.png" +dest_files=["res://.godot/imported/Sword UI icon.png-7f9f9b627e59952d68428aa17617afcd.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 diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Weapon slot GUI.png b/Game/LifeQuest/Sprites/Equipment Icons/Weapon slot GUI.png new file mode 100644 index 00000000..c9b06595 Binary files /dev/null and b/Game/LifeQuest/Sprites/Equipment Icons/Weapon slot GUI.png differ diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Weapon slot GUI.png.import b/Game/LifeQuest/Sprites/Equipment Icons/Weapon slot GUI.png.import new file mode 100644 index 00000000..f8c7b719 --- /dev/null +++ b/Game/LifeQuest/Sprites/Equipment Icons/Weapon slot GUI.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bj7l3kkbo4gq" +path="res://.godot/imported/Weapon slot GUI.png-878fd2a320494b24952075d63f14b216.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/Equipment Icons/Weapon slot GUI.png" +dest_files=["res://.godot/imported/Weapon slot GUI.png-878fd2a320494b24952075d63f14b216.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 diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Wooden Sword.png b/Game/LifeQuest/Sprites/Equipment Icons/Wooden Sword.png new file mode 100644 index 00000000..14446c13 Binary files /dev/null and b/Game/LifeQuest/Sprites/Equipment Icons/Wooden Sword.png differ diff --git a/Game/LifeQuest/Sprites/Equipment Icons/Wooden Sword.png.import b/Game/LifeQuest/Sprites/Equipment Icons/Wooden Sword.png.import new file mode 100644 index 00000000..e2d77db3 --- /dev/null +++ b/Game/LifeQuest/Sprites/Equipment Icons/Wooden Sword.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b6cux7i55n48e" +path="res://.godot/imported/Wooden Sword.png-0e586d6fedf65162978ebb2ab97857ef.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/Equipment Icons/Wooden Sword.png" +dest_files=["res://.godot/imported/Wooden Sword.png-0e586d6fedf65162978ebb2ab97857ef.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 diff --git a/Game/LifeQuest/Sprites/Equipment Icons/empty inventory slot.png b/Game/LifeQuest/Sprites/Equipment Icons/empty inventory slot.png new file mode 100644 index 00000000..c0325a5a Binary files /dev/null and b/Game/LifeQuest/Sprites/Equipment Icons/empty inventory slot.png differ diff --git a/Game/LifeQuest/Sprites/Equipment Icons/empty inventory slot.png.import b/Game/LifeQuest/Sprites/Equipment Icons/empty inventory slot.png.import new file mode 100644 index 00000000..06a6f082 --- /dev/null +++ b/Game/LifeQuest/Sprites/Equipment Icons/empty inventory slot.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://y821cltturdo" +path="res://.godot/imported/empty inventory slot.png-504b3def2d27feaa9f887ea69aa6caae.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/Equipment Icons/empty inventory slot.png" +dest_files=["res://.godot/imported/empty inventory slot.png-504b3def2d27feaa9f887ea69aa6caae.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 diff --git a/Game/LifeQuest/Sprites/Equipment Icons/full inventory slot.png b/Game/LifeQuest/Sprites/Equipment Icons/full inventory slot.png new file mode 100644 index 00000000..11a96654 Binary files /dev/null and b/Game/LifeQuest/Sprites/Equipment Icons/full inventory slot.png differ diff --git a/Game/LifeQuest/Sprites/Equipment Icons/full inventory slot.png.import b/Game/LifeQuest/Sprites/Equipment Icons/full inventory slot.png.import new file mode 100644 index 00000000..d737ffde --- /dev/null +++ b/Game/LifeQuest/Sprites/Equipment Icons/full inventory slot.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bud2gg76y4qe7" +path="res://.godot/imported/full inventory slot.png-07d54be94924d7527ed76408fd19268d.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/Equipment Icons/full inventory slot.png" +dest_files=["res://.godot/imported/full inventory slot.png-07d54be94924d7527ed76408fd19268d.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 diff --git a/Game/LifeQuest/Sprites/Equipment Icons/large health potion.png b/Game/LifeQuest/Sprites/Equipment Icons/large health potion.png new file mode 100644 index 00000000..0adc1519 Binary files /dev/null and b/Game/LifeQuest/Sprites/Equipment Icons/large health potion.png differ diff --git a/Game/LifeQuest/Sprites/Equipment Icons/large health potion.png.import b/Game/LifeQuest/Sprites/Equipment Icons/large health potion.png.import new file mode 100644 index 00000000..97afed97 --- /dev/null +++ b/Game/LifeQuest/Sprites/Equipment Icons/large health potion.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cdhog52vtvha0" +path="res://.godot/imported/large health potion.png-3d787dcd5046305969cec4e1018b8e6c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/Equipment Icons/large health potion.png" +dest_files=["res://.godot/imported/large health potion.png-3d787dcd5046305969cec4e1018b8e6c.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 diff --git a/Game/LifeQuest/Sprites/Equipment Icons/small health potion.png b/Game/LifeQuest/Sprites/Equipment Icons/small health potion.png new file mode 100644 index 00000000..92673a19 Binary files /dev/null and b/Game/LifeQuest/Sprites/Equipment Icons/small health potion.png differ diff --git a/Game/LifeQuest/Sprites/Equipment Icons/small health potion.png.import b/Game/LifeQuest/Sprites/Equipment Icons/small health potion.png.import new file mode 100644 index 00000000..32ffa16d --- /dev/null +++ b/Game/LifeQuest/Sprites/Equipment Icons/small health potion.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dhuxo31oaolsq" +path="res://.godot/imported/small health potion.png-8b0892bc766eabd4ef2cdcaa74bbadc6.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/Equipment Icons/small health potion.png" +dest_files=["res://.godot/imported/small health potion.png-8b0892bc766eabd4ef2cdcaa74bbadc6.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 diff --git a/Game/LifeQuest/Sprites/Equipment Icons/tool tip.png b/Game/LifeQuest/Sprites/Equipment Icons/tool tip.png new file mode 100644 index 00000000..e5f9d659 Binary files /dev/null and b/Game/LifeQuest/Sprites/Equipment Icons/tool tip.png differ diff --git a/Game/LifeQuest/Sprites/Equipment Icons/tool tip.png.import b/Game/LifeQuest/Sprites/Equipment Icons/tool tip.png.import new file mode 100644 index 00000000..86b22dc3 --- /dev/null +++ b/Game/LifeQuest/Sprites/Equipment Icons/tool tip.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cn0us7kqtw644" +path="res://.godot/imported/tool tip.png-3eaba9c94285ba312d94c40359f3bc52.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/Equipment Icons/tool tip.png" +dest_files=["res://.godot/imported/tool tip.png-3eaba9c94285ba312d94c40359f3bc52.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 diff --git a/Game/LifeQuest/Sprites/Inventory no slots.png b/Game/LifeQuest/Sprites/Inventory no slots.png new file mode 100644 index 00000000..b2382cad Binary files /dev/null and b/Game/LifeQuest/Sprites/Inventory no slots.png differ diff --git a/Game/LifeQuest/Sprites/Inventory no slots.png.import b/Game/LifeQuest/Sprites/Inventory no slots.png.import new file mode 100644 index 00000000..64d9c392 --- /dev/null +++ b/Game/LifeQuest/Sprites/Inventory no slots.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://5sk4vngac5ol" +path="res://.godot/imported/Inventory no slots.png-f682153aa86850b34d6d3ba07b655d8c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/Inventory no slots.png" +dest_files=["res://.godot/imported/Inventory no slots.png-f682153aa86850b34d6d3ba07b655d8c.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 diff --git a/Game/LifeQuest/Sprites/equipment.png b/Game/LifeQuest/Sprites/equipment.png new file mode 100644 index 00000000..5176c75b Binary files /dev/null and b/Game/LifeQuest/Sprites/equipment.png differ diff --git a/Game/LifeQuest/Sprites/equipment.png.import b/Game/LifeQuest/Sprites/equipment.png.import new file mode 100644 index 00000000..8a64a188 --- /dev/null +++ b/Game/LifeQuest/Sprites/equipment.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://boa8ywme3chfv" +path="res://.godot/imported/equipment.png-f977f5de613274c073ffd94b692b9060.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/equipment.png" +dest_files=["res://.godot/imported/equipment.png-f977f5de613274c073ffd94b692b9060.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 diff --git a/Game/LifeQuest/Sprites/inventory.png b/Game/LifeQuest/Sprites/inventory.png new file mode 100644 index 00000000..46060010 Binary files /dev/null and b/Game/LifeQuest/Sprites/inventory.png differ diff --git a/Game/LifeQuest/Sprites/inventory.png.import b/Game/LifeQuest/Sprites/inventory.png.import new file mode 100644 index 00000000..c2409713 --- /dev/null +++ b/Game/LifeQuest/Sprites/inventory.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b1ekcojxk18dy" +path="res://.godot/imported/inventory.png-787cd389f05781dd981a7bfad2e33140.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/inventory.png" +dest_files=["res://.godot/imported/inventory.png-787cd389f05781dd981a7bfad2e33140.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 diff --git a/Game/LifeQuest/Sprites/profile empty.png b/Game/LifeQuest/Sprites/profile empty.png new file mode 100644 index 00000000..490ae227 Binary files /dev/null and b/Game/LifeQuest/Sprites/profile empty.png differ diff --git a/Game/LifeQuest/Sprites/profile empty.png.import b/Game/LifeQuest/Sprites/profile empty.png.import new file mode 100644 index 00000000..a03afe54 --- /dev/null +++ b/Game/LifeQuest/Sprites/profile empty.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b7dsw5hv8iwfh" +path="res://.godot/imported/profile empty.png-abc914a5f22fde5205f54efc858420d7.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/profile empty.png" +dest_files=["res://.godot/imported/profile empty.png-abc914a5f22fde5205f54efc858420d7.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 diff --git a/Game/LifeQuest/export_presets.cfg b/Game/LifeQuest/export_presets.cfg index 33b27180..616766e4 100644 --- a/Game/LifeQuest/export_presets.cfg +++ b/Game/LifeQuest/export_presets.cfg @@ -8,7 +8,7 @@ custom_features="" export_filter="all_resources" include_filter="" exclude_filter="" -export_path="Export/LifeQuestTest.html" +export_path="../LifeQuestWeb/LifeQuestTest.html" encryption_include_filters="" encryption_exclude_filters="" encrypt_pck=false @@ -35,3 +35,41 @@ progressive_web_app/icon_144x144="" progressive_web_app/icon_180x180="" progressive_web_app/icon_512x512="" progressive_web_app/background_color=Color(0, 0, 0, 1) + +[preset.1] + +name="Web" +platform="Web" +runnable=false +dedicated_server=false +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="" +encryption_include_filters="" +encryption_exclude_filters="" +encrypt_pck=false +encrypt_directory=false + +[preset.1.options] + +custom_template/debug="" +custom_template/release="" +variant/extensions_support=false +vram_texture_compression/for_desktop=true +vram_texture_compression/for_mobile=false +html/export_icon=true +html/custom_html_shell="" +html/head_include="" +html/canvas_resize_policy=2 +html/focus_canvas_on_start=true +html/experimental_virtual_keyboard=false +progressive_web_app/enabled=false +progressive_web_app/offline_page="" +progressive_web_app/display=1 +progressive_web_app/orientation=0 +progressive_web_app/icon_144x144="" +progressive_web_app/icon_180x180="" +progressive_web_app/icon_512x512="" +progressive_web_app/background_color=Color(0, 0, 0, 1) diff --git a/Game/LifeQuest/gamDF28.tmp b/Game/LifeQuest/gamDF28.tmp new file mode 100644 index 00000000..d3ad1207 --- /dev/null +++ b/Game/LifeQuest/gamDF28.tmp @@ -0,0 +1,166 @@ +[gd_scene load_steps=6 format=3 uid="uid://ccuoxmewdujb4"] + +[ext_resource type="Texture2D" uid="uid://sp5sqsqilkte" path="res://Sprites/tilemap_Floor_spaced_smaller.png" id="1_khfqp"] +[ext_resource type="Script" path="res://Scripts/UserInterface.gd" id="2_rva7x"] +[ext_resource type="PackedScene" uid="uid://bqwh0ar8cqyro" path="res://inventory.tscn" id="2_vgroc"] + +[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_olttd"] +texture = ExtResource("1_khfqp") +separation = Vector2i(6, 12) +texture_region_size = Vector2i(65, 65) +0:0/0 = 0 +1:0/0 = 0 +2:0/0 = 0 +3:0/0 = 0 +4:0/0 = 0 +5:0/0 = 0 +6:0/0 = 0 +7:0/0 = 0 +8:0/0 = 0 +9:0/0 = 0 +10:0/0 = 0 +11:0/0 = 0 +0:1/0 = 0 +1:1/0 = 0 +3:1/0 = 0 +4:1/0 = 0 +5:1/0 = 0 +6:1/0 = 0 +7:1/0 = 0 +8:1/0 = 0 +9:1/0 = 0 +10:1/0 = 0 +11:1/0 = 0 +0:2/0 = 0 +1:2/0 = 0 +3:2/0 = 0 +4:2/0 = 0 +5:2/0 = 0 +6:2/0 = 0 +7:2/0 = 0 +8:2/0 = 0 +9:2/0 = 0 +10:2/0 = 0 +11:2/0 = 0 +0:3/0 = 0 +1:3/0 = 0 +2:3/0 = 0 +3:3/0 = 0 +4:3/0 = 0 +5:3/0 = 0 +6:3/0 = 0 +7:3/0 = 0 +8:3/0 = 0 +9:3/0 = 0 +10:3/0 = 0 +11:3/0 = 0 +0:4/0 = 0 +1:4/0 = 0 +2:4/0 = 0 +3:4/0 = 0 +4:4/0 = 0 +5:4/0 = 0 +6:4/0 = 0 +7:4/0 = 0 +8:4/0 = 0 +9:4/0 = 0 +10:4/0 = 0 +11:4/0 = 0 +0:5/0 = 0 +1:5/0 = 0 +2:5/0 = 0 +3:5/0 = 0 +4:5/0 = 0 +5:5/0 = 0 +6:5/0 = 0 +7:5/0 = 0 +8:5/0 = 0 +9:5/0 = 0 +10:5/0 = 0 +11:5/0 = 0 +0:6/0 = 0 +1:6/0 = 0 +2:6/0 = 0 +3:6/0 = 0 +4:6/0 = 0 +5:6/0 = 0 +6:6/0 = 0 +7:6/0 = 0 +8:6/0 = 0 +9:6/0 = 0 +10:6/0 = 0 +11:6/0 = 0 +0:7/0 = 0 +1:7/0 = 0 +2:7/0 = 0 +3:7/0 = 0 +4:7/0 = 0 +5:7/0 = 0 +6:7/0 = 0 +7:7/0 = 0 +8:7/0 = 0 +9:7/0 = 0 +10:7/0 = 0 +11:7/0 = 0 +0:8/0 = 0 +1:8/0 = 0 +2:8/0 = 0 +3:8/0 = 0 +4:8/0 = 0 +5:8/0 = 0 +6:8/0 = 0 +7:8/0 = 0 +8:8/0 = 0 +9:8/0 = 0 +10:8/0 = 0 +11:8/0 = 0 +0:9/0 = 0 +1:9/0 = 0 +2:9/0 = 0 +3:9/0 = 0 +4:9/0 = 0 +5:9/0 = 0 +6:9/0 = 0 +7:9/0 = 0 +8:9/0 = 0 +9:9/0 = 0 +10:9/0 = 0 +11:9/0 = 0 +0:10/0 = 0 +1:10/0 = 0 +2:10/0 = 0 +3:10/0 = 0 +4:10/0 = 0 +5:10/0 = 0 +6:10/0 = 0 +7:10/0 = 0 +8:10/0 = 0 +9:10/0 = 0 +10:10/0 = 0 +11:10/0 = 0 +2:1/0 = 0 +2:2/0 = 0 + +[sub_resource type="TileSet" id="TileSet_b1e8q"] +tile_size = Vector2i(64, 65) +sources/0 = SubResource("TileSetAtlasSource_olttd") + +[node name="GameScene" type="Node2D"] + +[node name="PlaceHolder" type="Label" parent="."] +offset_left = 375.0 +offset_top = 236.0 +offset_right = 638.0 +offset_bottom = 308.0 +text = "This is the game level placeholder" + +[node name="TileMap" type="TileMap" parent="."] +tile_set = SubResource("TileSet_b1e8q") +format = 2 +layer_0/tile_data = PackedInt32Array(524288, 131072, 2, 524289, 131072, 2, 524290, 131072, 2, 524291, 131072, 2, 524292, 131072, 2, 524293, 131072, 2, 524294, 131072, 2, 524295, 131072, 2, 524296, 131072, 2, 524297, 131072, 2, 524298, 131072, 2, 524299, 131072, 2, 524300, 131072, 2, 524301, 131072, 2, 524302, 131072, 2, 524303, 131072, 2, 524304, 131072, 2, 524305, 131072, 2, 458762, 327680, 1, 393226, 327680, 1, 327690, 327680, 1, 327691, 327680, 0, 327692, 327680, 0, 327693, 327680, 0, 327694, 327680, 0, 327695, 327680, 0, 327696, 327680, 0) + +[node name="UserInterface" type="CanvasLayer" parent="."] +script = ExtResource("2_rva7x") + +[node name="Inventory" parent="UserInterface" instance=ExtResource("2_vgroc")] +visible = false diff --git a/Game/LifeQuest/game_scene.tscn b/Game/LifeQuest/game_scene.tscn index b5882fd8..d3ad1207 100644 --- a/Game/LifeQuest/game_scene.tscn +++ b/Game/LifeQuest/game_scene.tscn @@ -1,6 +1,8 @@ -[gd_scene load_steps=4 format=3 uid="uid://ccuoxmewdujb4"] +[gd_scene load_steps=6 format=3 uid="uid://ccuoxmewdujb4"] [ext_resource type="Texture2D" uid="uid://sp5sqsqilkte" path="res://Sprites/tilemap_Floor_spaced_smaller.png" id="1_khfqp"] +[ext_resource type="Script" path="res://Scripts/UserInterface.gd" id="2_rva7x"] +[ext_resource type="PackedScene" uid="uid://bqwh0ar8cqyro" path="res://inventory.tscn" id="2_vgroc"] [sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_olttd"] texture = ExtResource("1_khfqp") @@ -156,3 +158,9 @@ text = "This is the game level placeholder" tile_set = SubResource("TileSet_b1e8q") format = 2 layer_0/tile_data = PackedInt32Array(524288, 131072, 2, 524289, 131072, 2, 524290, 131072, 2, 524291, 131072, 2, 524292, 131072, 2, 524293, 131072, 2, 524294, 131072, 2, 524295, 131072, 2, 524296, 131072, 2, 524297, 131072, 2, 524298, 131072, 2, 524299, 131072, 2, 524300, 131072, 2, 524301, 131072, 2, 524302, 131072, 2, 524303, 131072, 2, 524304, 131072, 2, 524305, 131072, 2, 458762, 327680, 1, 393226, 327680, 1, 327690, 327680, 1, 327691, 327680, 0, 327692, 327680, 0, 327693, 327680, 0, 327694, 327680, 0, 327695, 327680, 0, 327696, 327680, 0) + +[node name="UserInterface" type="CanvasLayer" parent="."] +script = ExtResource("2_rva7x") + +[node name="Inventory" parent="UserInterface" instance=ExtResource("2_vgroc")] +visible = false diff --git a/Game/LifeQuest/inv2760.tmp b/Game/LifeQuest/inv2760.tmp new file mode 100644 index 00000000..7b310173 --- /dev/null +++ b/Game/LifeQuest/inv2760.tmp @@ -0,0 +1,220 @@ +[gd_scene load_steps=7 format=3 uid="uid://bqwh0ar8cqyro"] + +[ext_resource type="Texture2D" uid="uid://5sk4vngac5ol" path="res://Sprites/Inventory no slots.png" id="1_2o6gc"] +[ext_resource type="Script" path="res://inventory.gd" id="1_b7bqe"] +[ext_resource type="Texture2D" uid="uid://y821cltturdo" path="res://Sprites/Equipment Icons/empty inventory slot.png" id="2_ynn2e"] +[ext_resource type="Script" path="res://Slot.gd" id="3_xgshx"] +[ext_resource type="Texture2D" uid="uid://boa8ywme3chfv" path="res://Sprites/equipment.png" id="5_24oe4"] + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_dhjvw"] +texture = ExtResource("2_ynn2e") + +[node name="Inventory" type="Node2D"] +position = Vector2(415, 707) +script = ExtResource("1_b7bqe") + +[node name="TextureRect" type="TextureRect" parent="."] +anchors_preset = 4 +anchor_top = 0.5 +anchor_bottom = 0.5 +offset_left = 2.0 +offset_top = -337.0 +offset_right = 1598.0 +offset_bottom = 743.0 +grow_vertical = 2 +scale = Vector2(0.250775, 0.250775) +texture = ExtResource("1_2o6gc") + +[node name="GridContainer" type="GridContainer" parent="."] +offset_left = 21.0 +offset_top = -280.0 +offset_right = 371.375 +offset_bottom = -91.895 +columns = 5 + +[node name="Slot1" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot2" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot3" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot4" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot5" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot6" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot7" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot8" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot9" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot10" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot11" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot12" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot13" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot14" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot15" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="TextureRect2" type="TextureRect" parent="."] +offset_left = 1.0 +offset_top = -694.0 +offset_right = 1619.0 +offset_bottom = 779.0 +scale = Vector2(0.25, 0.25) +texture = ExtResource("5_24oe4") + +[node name="EquipSlot" type="GridContainer" parent="."] +offset_left = 27.0 +offset_top = -612.0 +offset_right = 394.0 +offset_bottom = -305.0 +theme_override_constants/h_separation = 248 +theme_override_constants/v_separation = 11 +columns = 2 + +[node name="HeadSlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="PantsSlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="HandsSlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="ShoesSlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="WeaponSlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="AccessorySlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="EmptySlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="AccessorySlot2" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="QuitButton" type="Button" parent="."] +modulate = Color(1, 1, 1, 0) +offset_left = 374.0 +offset_top = -688.0 +offset_right = 396.0 +offset_bottom = -666.0 + +[connection signal="pressed" from="QuitButton" to="." method="_on_quit_button_pressed"] diff --git a/Game/LifeQuest/inv3C95.tmp b/Game/LifeQuest/inv3C95.tmp new file mode 100644 index 00000000..b0fd5193 --- /dev/null +++ b/Game/LifeQuest/inv3C95.tmp @@ -0,0 +1,134 @@ +[gd_scene load_steps=5 format=3 uid="uid://bqwh0ar8cqyro"] + +[ext_resource type="Texture2D" uid="uid://5sk4vngac5ol" path="res://Sprites/Inventory no slots.png" id="1_2o6gc"] +[ext_resource type="Texture2D" uid="uid://y821cltturdo" path="res://Sprites/Equipment Icons/empty inventory slot.png" id="2_ynn2e"] +[ext_resource type="Script" path="res://Slot.gd" id="3_xgshx"] + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_ue2ji"] +texture = ExtResource("2_ynn2e") + +[node name="Inventory" type="Node2D"] + +[node name="TextureRect" type="TextureRect" parent="."] +offset_left = 377.0 +offset_top = 314.0 +offset_right = 1995.0 +offset_bottom = 1402.0 +scale = Vector2(0.250775, 0.250775) +texture = ExtResource("1_2o6gc") + +[node name="GridContainer" type="GridContainer" parent="."] +offset_left = 396.0 +offset_top = 377.0 +offset_right = 448.36 +offset_bottom = 437.755 +scale = Vector2(7.105, 3.214) +columns = 6 + +[node name="Slot1" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot2" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot3" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot4" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot5" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot6" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot7" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot8" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot9" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot10" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot11" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot12" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot13" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot14" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot15" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot16" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot17" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot18" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") diff --git a/Game/LifeQuest/inv5AAB.tmp b/Game/LifeQuest/inv5AAB.tmp new file mode 100644 index 00000000..b0fd5193 --- /dev/null +++ b/Game/LifeQuest/inv5AAB.tmp @@ -0,0 +1,134 @@ +[gd_scene load_steps=5 format=3 uid="uid://bqwh0ar8cqyro"] + +[ext_resource type="Texture2D" uid="uid://5sk4vngac5ol" path="res://Sprites/Inventory no slots.png" id="1_2o6gc"] +[ext_resource type="Texture2D" uid="uid://y821cltturdo" path="res://Sprites/Equipment Icons/empty inventory slot.png" id="2_ynn2e"] +[ext_resource type="Script" path="res://Slot.gd" id="3_xgshx"] + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_ue2ji"] +texture = ExtResource("2_ynn2e") + +[node name="Inventory" type="Node2D"] + +[node name="TextureRect" type="TextureRect" parent="."] +offset_left = 377.0 +offset_top = 314.0 +offset_right = 1995.0 +offset_bottom = 1402.0 +scale = Vector2(0.250775, 0.250775) +texture = ExtResource("1_2o6gc") + +[node name="GridContainer" type="GridContainer" parent="."] +offset_left = 396.0 +offset_top = 377.0 +offset_right = 448.36 +offset_bottom = 437.755 +scale = Vector2(7.105, 3.214) +columns = 6 + +[node name="Slot1" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot2" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot3" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot4" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot5" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot6" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot7" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot8" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot9" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot10" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot11" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot12" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot13" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot14" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot15" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot16" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot17" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot18" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") diff --git a/Game/LifeQuest/inv8909.tmp b/Game/LifeQuest/inv8909.tmp new file mode 100644 index 00000000..b0fd5193 --- /dev/null +++ b/Game/LifeQuest/inv8909.tmp @@ -0,0 +1,134 @@ +[gd_scene load_steps=5 format=3 uid="uid://bqwh0ar8cqyro"] + +[ext_resource type="Texture2D" uid="uid://5sk4vngac5ol" path="res://Sprites/Inventory no slots.png" id="1_2o6gc"] +[ext_resource type="Texture2D" uid="uid://y821cltturdo" path="res://Sprites/Equipment Icons/empty inventory slot.png" id="2_ynn2e"] +[ext_resource type="Script" path="res://Slot.gd" id="3_xgshx"] + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_ue2ji"] +texture = ExtResource("2_ynn2e") + +[node name="Inventory" type="Node2D"] + +[node name="TextureRect" type="TextureRect" parent="."] +offset_left = 377.0 +offset_top = 314.0 +offset_right = 1995.0 +offset_bottom = 1402.0 +scale = Vector2(0.250775, 0.250775) +texture = ExtResource("1_2o6gc") + +[node name="GridContainer" type="GridContainer" parent="."] +offset_left = 396.0 +offset_top = 377.0 +offset_right = 448.36 +offset_bottom = 437.755 +scale = Vector2(7.105, 3.214) +columns = 6 + +[node name="Slot1" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot2" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot3" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot4" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot5" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot6" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot7" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot8" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot9" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot10" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot11" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot12" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot13" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot14" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot15" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot16" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot17" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") + +[node name="Slot18" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(4.65, 12.265) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_ue2ji") +script = ExtResource("3_xgshx") diff --git a/Game/LifeQuest/invFF61.tmp b/Game/LifeQuest/invFF61.tmp new file mode 100644 index 00000000..7b310173 --- /dev/null +++ b/Game/LifeQuest/invFF61.tmp @@ -0,0 +1,220 @@ +[gd_scene load_steps=7 format=3 uid="uid://bqwh0ar8cqyro"] + +[ext_resource type="Texture2D" uid="uid://5sk4vngac5ol" path="res://Sprites/Inventory no slots.png" id="1_2o6gc"] +[ext_resource type="Script" path="res://inventory.gd" id="1_b7bqe"] +[ext_resource type="Texture2D" uid="uid://y821cltturdo" path="res://Sprites/Equipment Icons/empty inventory slot.png" id="2_ynn2e"] +[ext_resource type="Script" path="res://Slot.gd" id="3_xgshx"] +[ext_resource type="Texture2D" uid="uid://boa8ywme3chfv" path="res://Sprites/equipment.png" id="5_24oe4"] + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_dhjvw"] +texture = ExtResource("2_ynn2e") + +[node name="Inventory" type="Node2D"] +position = Vector2(415, 707) +script = ExtResource("1_b7bqe") + +[node name="TextureRect" type="TextureRect" parent="."] +anchors_preset = 4 +anchor_top = 0.5 +anchor_bottom = 0.5 +offset_left = 2.0 +offset_top = -337.0 +offset_right = 1598.0 +offset_bottom = 743.0 +grow_vertical = 2 +scale = Vector2(0.250775, 0.250775) +texture = ExtResource("1_2o6gc") + +[node name="GridContainer" type="GridContainer" parent="."] +offset_left = 21.0 +offset_top = -280.0 +offset_right = 371.375 +offset_bottom = -91.895 +columns = 5 + +[node name="Slot1" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot2" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot3" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot4" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot5" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot6" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot7" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot8" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot9" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot10" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot11" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot12" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot13" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot14" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot15" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="TextureRect2" type="TextureRect" parent="."] +offset_left = 1.0 +offset_top = -694.0 +offset_right = 1619.0 +offset_bottom = 779.0 +scale = Vector2(0.25, 0.25) +texture = ExtResource("5_24oe4") + +[node name="EquipSlot" type="GridContainer" parent="."] +offset_left = 27.0 +offset_top = -612.0 +offset_right = 394.0 +offset_bottom = -305.0 +theme_override_constants/h_separation = 248 +theme_override_constants/v_separation = 11 +columns = 2 + +[node name="HeadSlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="PantsSlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="HandsSlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="ShoesSlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="WeaponSlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="AccessorySlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="EmptySlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="AccessorySlot2" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="QuitButton" type="Button" parent="."] +modulate = Color(1, 1, 1, 0) +offset_left = 374.0 +offset_top = -688.0 +offset_right = 396.0 +offset_bottom = -666.0 + +[connection signal="pressed" from="QuitButton" to="." method="_on_quit_button_pressed"] diff --git a/Game/LifeQuest/inventory.gd b/Game/LifeQuest/inventory.gd new file mode 100644 index 00000000..ab8d08f4 --- /dev/null +++ b/Game/LifeQuest/inventory.gd @@ -0,0 +1,37 @@ +extends Node2D +#need the Slot refrence as it goes hand in hand with inventory +const SlotClass = preload("res://Slot.gd") +# refrence to the Grid where the slots are at +@onready var inventoryslot = $GridContainer +#var for the item that the mouse has +var holditem = null + +# Called when the node enters the scene tree for the first time. +func _ready(): + for invslot in inventoryslot.get_children(): + invslot.gui_input.connect(slotinput.bind(invslot)) + +func slotinput(event:InputEvent, slot:SlotClass): + # check for mouse button input + if event is InputEventMouseButton: + if event.button_index == MOUSE_BUTTON_LEFT && event.pressed: + if holditem != null: + if !slot.item: #place item to slot + slot.putslot(holditem) + holditem = null + else: #we want to swap items with slot and held + var temp = slot.item + slot.pickslot() + temp.global_position = event.global_position + slot.putslot(holditem) + holditem = temp + elif slot.item: + holditem = slot.item + slot.pickslot() + holditem.global_position = get_global_mouse_position() + +func _input(event): + if holditem: + holditem.global_position = get_global_mouse_position() + + diff --git a/Game/LifeQuest/inventory.tscn b/Game/LifeQuest/inventory.tscn new file mode 100644 index 00000000..6ef9349b --- /dev/null +++ b/Game/LifeQuest/inventory.tscn @@ -0,0 +1,247 @@ +[gd_scene load_steps=21 format=3 uid="uid://bqwh0ar8cqyro"] + +[ext_resource type="Script" path="res://Scripts/inventory.gd" id="1_b7bqe"] +[ext_resource type="Texture2D" uid="uid://b7dsw5hv8iwfh" path="res://Sprites/profile empty.png" id="2_8lsk5"] +[ext_resource type="Texture2D" uid="uid://y821cltturdo" path="res://Sprites/Equipment Icons/empty inventory slot.png" id="2_ynn2e"] +[ext_resource type="Script" path="res://Scripts/Slot.gd" id="3_xgshx"] +[ext_resource type="Texture2D" uid="uid://b634a7cidtq6h" path="res://Sprites/Equipment Icons/Pants slot GUI.png" id="6_prdaf"] +[ext_resource type="Texture2D" uid="uid://bc2vgv8p417lg" path="res://Sprites/Equipment Icons/Head slot GUI.png" id="6_qq2ol"] +[ext_resource type="Texture2D" uid="uid://c8umopaoppk0o" path="res://Sprites/Equipment Icons/Hands slot GUI.png" id="7_gjnxf"] +[ext_resource type="Texture2D" uid="uid://cagfuqa8cby11" path="res://Sprites/Equipment Icons/Shoes slot GUI.png" id="8_qkutw"] +[ext_resource type="Texture2D" uid="uid://bj7l3kkbo4gq" path="res://Sprites/Equipment Icons/Weapon slot GUI.png" id="9_syub5"] +[ext_resource type="Texture2D" uid="uid://c2mhqes4s1w3c" path="res://Sprites/Equipment Icons/Accessory slot GUI.png" id="10_gdlxb"] + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_dhjvw"] +texture = ExtResource("2_ynn2e") + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_j2nmi"] +texture = ExtResource("6_qq2ol") + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_fdovx"] +texture = ExtResource("6_prdaf") + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_6mddo"] +texture = ExtResource("7_gjnxf") + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_jsdwa"] +texture = ExtResource("8_qkutw") + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_0xnx7"] +texture = ExtResource("9_syub5") + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_oy42p"] +texture = ExtResource("10_gdlxb") +expand_margin_left = 4.0 +expand_margin_right = 9.0 + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_j4o14"] +texture = ExtResource("10_gdlxb") +expand_margin_left = 4.0 +expand_margin_right = 9.0 + +[sub_resource type="CanvasTexture" id="CanvasTexture_xbbud"] + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_4n2pf"] +texture = SubResource("CanvasTexture_xbbud") + +[node name="Inventory" type="Node2D"] +position = Vector2(415, 707) +script = ExtResource("1_b7bqe") + +[node name="TextureRect2" type="TextureRect" parent="."] +offset_left = 4.0 +offset_top = -704.0 +offset_right = 1622.0 +offset_bottom = 1855.0 +scale = Vector2(0.25, 0.25) +texture = ExtResource("2_8lsk5") + +[node name="GridContainer" type="GridContainer" parent="."] +offset_left = 35.0 +offset_top = -280.0 +offset_right = 385.375 +offset_bottom = -91.895 +columns = 5 + +[node name="Slot1" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot2" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot3" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot4" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot5" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot6" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot7" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot8" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot9" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot10" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot11" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot12" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot13" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot14" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="Slot15" type="Panel" parent="GridContainer"] +custom_minimum_size = Vector2(60, 60) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="EquipSlot" type="GridContainer" parent="."] +offset_left = 27.0 +offset_top = -629.0 +offset_right = 394.0 +offset_bottom = -322.0 +theme_override_constants/h_separation = 248 +theme_override_constants/v_separation = 11 +columns = 2 + +[node name="HeadSlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_j2nmi") +script = ExtResource("3_xgshx") + +[node name="PantsSlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_fdovx") +script = ExtResource("3_xgshx") + +[node name="HandsSlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_6mddo") +script = ExtResource("3_xgshx") + +[node name="ShoesSlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_jsdwa") +script = ExtResource("3_xgshx") + +[node name="WeaponSlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_0xnx7") +script = ExtResource("3_xgshx") + +[node name="AccessorySlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_oy42p") +script = ExtResource("3_xgshx") + +[node name="EmptySlot" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +size_flags_horizontal = 0 +theme_override_styles/panel = SubResource("StyleBoxTexture_dhjvw") +script = ExtResource("3_xgshx") + +[node name="AccessorySlot2" type="Panel" parent="EquipSlot"] +custom_minimum_size = Vector2(52.655, 63.56) +layout_mode = 2 +theme_override_styles/panel = SubResource("StyleBoxTexture_j4o14") +script = ExtResource("3_xgshx") + +[node name="TooltipLabel" type="Label" parent="."] +visible = false +z_index = 1 +offset_left = 149.0 +offset_top = -246.0 +offset_right = 215.0 +offset_bottom = -222.0 +theme_override_colors/font_color = Color(0, 0, 0, 1) +theme_override_styles/normal = SubResource("StyleBoxTexture_4n2pf") +text = "Example" + +[node name="QuitButton" type="Button" parent="."] +modulate = Color(1, 1, 1, 0) +offset_left = 374.0 +offset_top = -688.0 +offset_right = 396.0 +offset_bottom = -666.0 + +[connection signal="pressed" from="QuitButton" to="." method="_on_quit_button_pressed"] diff --git a/Game/LifeQuest/project.godot b/Game/LifeQuest/project.godot index 3cb28c19..493796be 100644 --- a/Game/LifeQuest/project.godot +++ b/Game/LifeQuest/project.godot @@ -18,6 +18,15 @@ config/icon="res://icon.svg" [autoload] ItemDatabase="*res://Managers/ItemDatabase.gd" +PlayerInventory="*res://Scripts/PlayerInventory.gd" + +[input] + +inventory={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":73,"key_label":0,"unicode":0,"echo":false,"script":null) +] +} [rendering]