From 5f25fea962905c9ceb10b52490cc56d3ccd463db Mon Sep 17 00:00:00 2001 From: Matheus Date: Mon, 10 Nov 2025 17:03:01 -0300 Subject: skibidi --- assets/Oserif-j98vR.ttf | Bin 0 -> 88980 bytes assets/Oserif-j98vR.ttf.import | 36 +++++++++++++++++++ assets/definitions/Items/big_potion_of_heals.tres | 23 ++++++++++++ assets/definitions/actor/toilet.tres | 18 ++++++++++ assets/sprites/actors/ToiletMan.png | Bin 0 -> 280 bytes assets/sprites/actors/ToiletMan.png.import | 40 +++++++++++++++++++++ assets/sprites/inter-face/button_texture.png | Bin 0 -> 156 bytes .../sprites/inter-face/button_texture.png.import | 40 +++++++++++++++++++++ assets/sprites/items/big_health_potion.png | Bin 0 -> 306 bytes assets/sprites/items/big_health_potion.png.import | 40 +++++++++++++++++++++ assets/sprites/tiles/floor.png | Bin 200 -> 213 bytes assets/sprites/tiles/wall.png | Bin 232 -> 215 bytes project.godot | 4 +++ scenes/GUI/Leaderboard.tscn | 4 ++- scenes/GUI/button.tres | 10 ++++++ scenes/GUI/main_menu.tscn | 7 +++- scenes/name_thyself.tscn | 14 +++++++- scripts/Map/DungeonGenerator.cs | 4 ++- 18 files changed, 236 insertions(+), 4 deletions(-) create mode 100644 assets/Oserif-j98vR.ttf create mode 100644 assets/Oserif-j98vR.ttf.import create mode 100644 assets/definitions/Items/big_potion_of_heals.tres create mode 100644 assets/definitions/actor/toilet.tres create mode 100644 assets/sprites/actors/ToiletMan.png create mode 100644 assets/sprites/actors/ToiletMan.png.import create mode 100644 assets/sprites/inter-face/button_texture.png create mode 100644 assets/sprites/inter-face/button_texture.png.import create mode 100644 assets/sprites/items/big_health_potion.png create mode 100644 assets/sprites/items/big_health_potion.png.import create mode 100644 scenes/GUI/button.tres diff --git a/assets/Oserif-j98vR.ttf b/assets/Oserif-j98vR.ttf new file mode 100644 index 0000000..ec2b5dd Binary files /dev/null and b/assets/Oserif-j98vR.ttf differ diff --git a/assets/Oserif-j98vR.ttf.import b/assets/Oserif-j98vR.ttf.import new file mode 100644 index 0000000..fdd9950 --- /dev/null +++ b/assets/Oserif-j98vR.ttf.import @@ -0,0 +1,36 @@ +[remap] + +importer="font_data_dynamic" +type="FontFile" +uid="uid://bkhmc8y1sdhb1" +path="res://.godot/imported/Oserif-j98vR.ttf-699afbfb4c56b9ebc9e584f218277179.fontdata" + +[deps] + +source_file="res://assets/Oserif-j98vR.ttf" +dest_files=["res://.godot/imported/Oserif-j98vR.ttf-699afbfb4c56b9ebc9e584f218277179.fontdata"] + +[params] + +Rendering=null +antialiasing=1 +generate_mipmaps=false +disable_embedded_bitmaps=true +multichannel_signed_distance_field=false +msdf_pixel_range=8 +msdf_size=48 +allow_system_fallback=true +force_autohinter=false +modulate_color_glyphs=false +hinting=1 +subpixel_positioning=4 +keep_rounding_remainders=true +oversampling=0.0 +Fallbacks=null +fallbacks=[] +Compress=null +compress=true +preload=[] +language_support={} +script_support={} +opentype_features={} diff --git a/assets/definitions/Items/big_potion_of_heals.tres b/assets/definitions/Items/big_potion_of_heals.tres new file mode 100644 index 0000000..81c5e0b --- /dev/null +++ b/assets/definitions/Items/big_potion_of_heals.tres @@ -0,0 +1,23 @@ +[gd_resource type="Resource" script_class="ItemResource" load_steps=7 format=3 uid="uid://dm0v0aoarb4dp"] + +[ext_resource type="Script" uid="uid://bslt4pbvwvsj1" path="res://scripts/Magic/HealEffect.cs" id="1_2x33w"] +[ext_resource type="Script" uid="uid://bybli1lduvm3n" path="res://scripts/Entities/Items/ItemResource.cs" id="1_vsyyt"] +[ext_resource type="Script" uid="uid://b72fwkwul1wet" path="res://scripts/Entities/Items/SpellEffectItemActivation.cs" id="2_l4xm8"] +[ext_resource type="Texture2D" uid="uid://dftr4yuf72gg2" path="res://assets/sprites/items/big_health_potion.png" id="3_4nt2e"] + +[sub_resource type="Resource" id="Resource_8peth"] +script = ExtResource("1_2x33w") +Healing = 20 +metadata/_custom_type_script = "uid://bslt4pbvwvsj1" + +[sub_resource type="Resource" id="Resource_jdsxe"] +script = ExtResource("2_l4xm8") +effect = SubResource("Resource_8peth") +metadata/_custom_type_script = "uid://b72fwkwul1wet" + +[resource] +script = ExtResource("1_vsyyt") +DisplayName = "Poção de cura grande" +Icon = ExtResource("3_4nt2e") +Activation = SubResource("Resource_jdsxe") +metadata/_custom_type_script = "uid://bybli1lduvm3n" diff --git a/assets/definitions/actor/toilet.tres b/assets/definitions/actor/toilet.tres new file mode 100644 index 0000000..f33a878 --- /dev/null +++ b/assets/definitions/actor/toilet.tres @@ -0,0 +1,18 @@ +[gd_resource type="Resource" script_class="EnemyDefinition" load_steps=4 format=3 uid="uid://bbj06osf7pjor"] + +[ext_resource type="Script" uid="uid://dkfdm2m2scyks" path="res://scripts/Entities/Actors/EnemyDefinition.cs" id="1_mh1wq"] +[ext_resource type="Texture2D" uid="uid://w0808ug4al66" path="res://assets/sprites/actors/generic_grave.png" id="1_tv8qd"] +[ext_resource type="Texture2D" uid="uid://j1b2vbolwsch" path="res://assets/sprites/actors/ToiletMan.png" id="3_riy75"] + +[resource] +script = ExtResource("1_mh1wq") +AI = 1 +deathTexture = ExtResource("1_tv8qd") +Hp = 16 +Atk = 6 +Def = 2 +Men = 3 +name = "SKIBIDI" +texture = ExtResource("3_riy75") +Type = 2 +metadata/_custom_type_script = "uid://dkfdm2m2scyks" diff --git a/assets/sprites/actors/ToiletMan.png b/assets/sprites/actors/ToiletMan.png new file mode 100644 index 0000000..a257313 Binary files /dev/null and b/assets/sprites/actors/ToiletMan.png differ diff --git a/assets/sprites/actors/ToiletMan.png.import b/assets/sprites/actors/ToiletMan.png.import new file mode 100644 index 0000000..9b18b96 --- /dev/null +++ b/assets/sprites/actors/ToiletMan.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://j1b2vbolwsch" +path="res://.godot/imported/ToiletMan.png-f992a71b96595fd93fe0692465c52574.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/actors/ToiletMan.png" +dest_files=["res://.godot/imported/ToiletMan.png-f992a71b96595fd93fe0692465c52574.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +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/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +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/assets/sprites/inter-face/button_texture.png b/assets/sprites/inter-face/button_texture.png new file mode 100644 index 0000000..aca4745 Binary files /dev/null and b/assets/sprites/inter-face/button_texture.png differ diff --git a/assets/sprites/inter-face/button_texture.png.import b/assets/sprites/inter-face/button_texture.png.import new file mode 100644 index 0000000..00f222d --- /dev/null +++ b/assets/sprites/inter-face/button_texture.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dwg5pwgld1xrr" +path="res://.godot/imported/button_texture.png-6946e2ce5b57b5b0f0334c9bd99a877f.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/inter-face/button_texture.png" +dest_files=["res://.godot/imported/button_texture.png-6946e2ce5b57b5b0f0334c9bd99a877f.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +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/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +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/assets/sprites/items/big_health_potion.png b/assets/sprites/items/big_health_potion.png new file mode 100644 index 0000000..81e8dbd Binary files /dev/null and b/assets/sprites/items/big_health_potion.png differ diff --git a/assets/sprites/items/big_health_potion.png.import b/assets/sprites/items/big_health_potion.png.import new file mode 100644 index 0000000..6c59746 --- /dev/null +++ b/assets/sprites/items/big_health_potion.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dftr4yuf72gg2" +path="res://.godot/imported/big_health_potion.png-9796650ac3c4679880ae8cb9cebfbe7c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/sprites/items/big_health_potion.png" +dest_files=["res://.godot/imported/big_health_potion.png-9796650ac3c4679880ae8cb9cebfbe7c.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +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/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +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/assets/sprites/tiles/floor.png b/assets/sprites/tiles/floor.png index 2f93b12..f0e248e 100644 Binary files a/assets/sprites/tiles/floor.png and b/assets/sprites/tiles/floor.png differ diff --git a/assets/sprites/tiles/wall.png b/assets/sprites/tiles/wall.png index 3b2e058..2a94ef4 100644 Binary files a/assets/sprites/tiles/wall.png and b/assets/sprites/tiles/wall.png differ diff --git a/project.godot b/project.godot index 1cd62bd..a2bb69f 100644 --- a/project.godot +++ b/project.godot @@ -30,6 +30,10 @@ window/stretch/mode="canvas_items" project/assembly_name="projeto-fantasia" +[gui] + +theme/custom_font="uid://bkhmc8y1sdhb1" + [input] walk-up={ diff --git a/scenes/GUI/Leaderboard.tscn b/scenes/GUI/Leaderboard.tscn index 05471f3..5724e34 100644 --- a/scenes/GUI/Leaderboard.tscn +++ b/scenes/GUI/Leaderboard.tscn @@ -1,8 +1,9 @@ -[gd_scene load_steps=6 format=3 uid="uid://ddxrecok5ctss"] +[gd_scene load_steps=7 format=3 uid="uid://ddxrecok5ctss"] [ext_resource type="Script" uid="uid://bj6r5oalajbmc" path="res://scenes/GUI/Leaderboard.cs" id="1_8w6tf"] [ext_resource type="Texture2D" uid="uid://bxjwbucke02gl" path="res://assets/bg.png" id="1_dlctp"] [ext_resource type="PackedScene" uid="uid://w4oy340d3ugn" path="res://scenes/GUI/leaderboard_item.tscn" id="2_8w6tf"] +[ext_resource type="StyleBox" uid="uid://krfa04v10vwc" path="res://scenes/GUI/button.tres" id="4_kxih3"] [sub_resource type="InputEventKey" id="InputEventKey_8w6tf"] device = -1 @@ -47,5 +48,6 @@ layout_mode = 2 [node name="exit" type="Button" parent="VBoxContainer"] layout_mode = 2 +theme_override_styles/normal = ExtResource("4_kxih3") shortcut = SubResource("Shortcut_kxih3") text = "[V] Voltar" diff --git a/scenes/GUI/button.tres b/scenes/GUI/button.tres new file mode 100644 index 0000000..601c8f7 --- /dev/null +++ b/scenes/GUI/button.tres @@ -0,0 +1,10 @@ +[gd_resource type="StyleBoxTexture" load_steps=2 format=3 uid="uid://krfa04v10vwc"] + +[ext_resource type="Texture2D" uid="uid://dwg5pwgld1xrr" path="res://assets/sprites/inter-face/button_texture.png" id="1_dju77"] + +[resource] +texture = ExtResource("1_dju77") +texture_margin_left = 2.0 +texture_margin_top = 2.0 +texture_margin_right = 2.0 +texture_margin_bottom = 2.0 diff --git a/scenes/GUI/main_menu.tscn b/scenes/GUI/main_menu.tscn index f2ed0ae..95700a0 100644 --- a/scenes/GUI/main_menu.tscn +++ b/scenes/GUI/main_menu.tscn @@ -1,7 +1,8 @@ -[gd_scene load_steps=12 format=3 uid="uid://cppjdsdfkkxtm"] +[gd_scene load_steps=13 format=3 uid="uid://cppjdsdfkkxtm"] [ext_resource type="Script" uid="uid://dx0fxht2oadb6" path="res://scripts/GUI/MainMenu.cs" id="1_b4h60"] [ext_resource type="Texture2D" uid="uid://bxjwbucke02gl" path="res://assets/bg.png" id="1_tbt31"] +[ext_resource type="StyleBox" uid="uid://krfa04v10vwc" path="res://scenes/GUI/button.tres" id="3_kebck"] [sub_resource type="LabelSettings" id="LabelSettings_b4h60"] font_size = 32 @@ -79,23 +80,27 @@ label_settings = SubResource("LabelSettings_b4h60") [node name="neogame" type="Button" parent="VBoxContainer/CenterContainer/VBoxContainer"] layout_mode = 2 +theme_override_styles/normal = ExtResource("3_kebck") shortcut = SubResource("Shortcut_b4h60") shortcut_feedback = false text = "[N] Novo jogo" [node name="continue" type="Button" parent="VBoxContainer/CenterContainer/VBoxContainer"] layout_mode = 2 +theme_override_styles/normal = ExtResource("3_kebck") shortcut = SubResource("Shortcut_1ei6q") shortcut_feedback = false text = "[C] Continuar" [node name="leaderboard" type="Button" parent="VBoxContainer/CenterContainer/VBoxContainer"] layout_mode = 2 +theme_override_styles/normal = ExtResource("3_kebck") shortcut = SubResource("Shortcut_kebck") text = "[P] Placar" [node name="quit" type="Button" parent="VBoxContainer/CenterContainer/VBoxContainer"] layout_mode = 2 +theme_override_styles/normal = ExtResource("3_kebck") shortcut = SubResource("Shortcut_h03jd") text = "[S] Sair" diff --git a/scenes/name_thyself.tscn b/scenes/name_thyself.tscn index d2c3650..e4f75b3 100644 --- a/scenes/name_thyself.tscn +++ b/scenes/name_thyself.tscn @@ -1,7 +1,17 @@ -[gd_scene load_steps=3 format=3 uid="uid://baio67tv5ifph"] +[gd_scene load_steps=6 format=3 uid="uid://baio67tv5ifph"] [ext_resource type="Texture2D" uid="uid://bxjwbucke02gl" path="res://assets/bg.png" id="1_c644k"] [ext_resource type="Script" uid="uid://cmtn05tqqh0t4" path="res://scripts/GUI/PlayerName.cs" id="1_jhpgh"] +[ext_resource type="Texture2D" uid="uid://dwg5pwgld1xrr" path="res://assets/sprites/inter-face/button_texture.png" id="3_c5fbr"] +[ext_resource type="StyleBox" uid="uid://krfa04v10vwc" path="res://scenes/GUI/button.tres" id="4_jndhp"] + +[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_x2lmy"] +texture = ExtResource("3_c5fbr") +texture_margin_left = 2.0 +texture_margin_top = 2.0 +texture_margin_right = 2.0 +texture_margin_bottom = 2.0 +modulate_color = Color(0.39308554, 0.3930855, 0.39308548, 1) [node name="NameThyself" type="Control"] layout_mode = 3 @@ -42,9 +52,11 @@ text = "Quem é você?" [node name="thename" type="LineEdit" parent="VBoxContainer"] layout_mode = 2 +theme_override_styles/normal = SubResource("StyleBoxTexture_x2lmy") placeholder_text = "Player" expand_to_text_length = true [node name="Button" type="Button" parent="VBoxContainer"] layout_mode = 2 +theme_override_styles/normal = ExtResource("4_jndhp") text = "Iniciar" diff --git a/scripts/Map/DungeonGenerator.cs b/scripts/Map/DungeonGenerator.cs index 7f57353..d9585a7 100644 --- a/scripts/Map/DungeonGenerator.cs +++ b/scripts/Map/DungeonGenerator.cs @@ -44,11 +44,13 @@ public partial class DungeonGenerator : Node GD.Load("res://assets/definitions/actor/Skeleton.tres"), GD.Load("res://assets/definitions/actor/morcegao.tres"), GD.Load("res://assets/definitions/actor/Shadow.tres"), + GD.Load("res://assets/definitions/actor/toilet.tres") ]; private static readonly Godot.Collections.Array items = [ GD.Load("res://assets/definitions/Items/small_healing_potion.tres"), - GD.Load("res://assets/definitions/Items/mana_bolt_grimoire.tres") + GD.Load("res://assets/definitions/Items/mana_bolt_grimoire.tres"), + GD.Load("res://assets/definitions/Items/big_potion_of_heals.tres") ]; /// -- cgit v1.2.3