From 102fd4f34a3265c8691ad595d7dabde7cb17ad85 Mon Sep 17 00:00:00 2001 From: RealMelwei Date: Sat, 20 Sep 2025 01:15:57 +0200 Subject: [PATCH] "Fixed" my editor bug and fixed arrow facing right when shot to the left --- items/active_items/bow/bow.gd | 2 ++ main.tscn | 8 ++++++- utils/empty.png | Bin 0 -> 593 bytes utils/empty.png.import | 40 ++++++++++++++++++++++++++++++++++ 4 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 utils/empty.png create mode 100644 utils/empty.png.import diff --git a/items/active_items/bow/bow.gd b/items/active_items/bow/bow.gd index cbe1588..9515847 100644 --- a/items/active_items/bow/bow.gd +++ b/items/active_items/bow/bow.gd @@ -13,4 +13,6 @@ func activate(): arrow.position = player.position arrow.rotation = player.rotation arrow.direction = player.earth_aligner.global_from_local(Vector2(player.facing, 0)) + if(player.facing == -1): + arrow.get_node("Sprite2D").scale.x = - arrow.get_node("Sprite2D").scale.x $SoundBowRelease.play() diff --git a/main.tscn b/main.tscn index 218b46d..c26f383 100644 --- a/main.tscn +++ b/main.tscn @@ -1,10 +1,11 @@ -[gd_scene load_steps=13 format=3 uid="uid://cxo6bq26huau7"] +[gd_scene load_steps=14 format=3 uid="uid://cxo6bq26huau7"] [ext_resource type="PackedScene" uid="uid://cmaovvr15b3qk" path="res://player/player.tscn" id="2_1bvp3"] [ext_resource type="Texture2D" uid="uid://d3fpq76anm4t7" path="res://world/Background Prototype/Background prototype.png" id="3_kek77"] [ext_resource type="PackedScene" uid="uid://jjoyj1ldafkf" path="res://world/earth.tscn" id="3_lquwl"] [ext_resource type="Script" uid="uid://colvx6wq0e8n7" path="res://world/building_generator.gd" id="4_1bvp3"] [ext_resource type="PackedScene" uid="uid://snvs7fty1l5a" path="res://ui/initial_text/initial_text.tscn" id="4_dg77c"] +[ext_resource type="Texture2D" uid="uid://c6bd4kakb1tr3" path="res://utils/empty.png" id="4_ycdy4"] [ext_resource type="PackedScene" uid="uid://73g8y37skebh" path="res://ui/item_ui/item_ui.tscn" id="6_4c57u"] [ext_resource type="PackedScene" uid="uid://cjsrtswk4vgf2" path="res://ui/healthbar/healthbar.tscn" id="6_7mycd"] [ext_resource type="PackedScene" uid="uid://dpdn2php3ydsv" path="res://ui/death_screen/death_screen.tscn" id="7_5vw27"] @@ -41,6 +42,11 @@ autostart = true [node name="UIOverlay" type="CanvasLayer" parent="."] +[node name="TextureRect" type="TextureRect" parent="UIOverlay"] +offset_right = 40.0 +offset_bottom = 40.0 +texture = ExtResource("4_ycdy4") + [node name="InitialText" parent="UIOverlay" instance=ExtResource("4_dg77c")] [node name="Healthbar" parent="UIOverlay" instance=ExtResource("6_7mycd")] diff --git a/utils/empty.png b/utils/empty.png new file mode 100644 index 0000000000000000000000000000000000000000..a78fcb5c851d826e2b5d4d329fa3959de4e3261f GIT binary patch literal 593 zcmV-X0EX>4Tx04R}tkv&MmKpe$iKcp%ZhZYoZ$WWc^q9Ts9 z3Pq?8YK2xEOfLO`CJjl7i=*ILaPVWX>fqw6tAnc`2!4RL3r>nIQsV!TLW>v=j{EWM z-sA2a;BQu$Y6cU4s#!)Rl@xOMRU!0>K148tAR-bo^*K>Y!*hJy!^hXVIM4Dv_vaW; z3MK=50&#-rhDE$VJhN%(ocD>NtSl+S=fo2RU6A;Z>$1yloJ$V-d1lneX6A{b#6qcy zER!7{35wza#g^{v49#>NRA);4}N!R7N;iNq;L}Gd9m$}F(9-Hv>LYkeQevU z6Cm&mTxlJDtqIJ2lHTZOu_It`8@RacX!0I#xdRM8>5?HiQh=tvSOnhB=$rCD5Fh{nm-koK00000NkvXXu0mjf=4$YP literal 0 HcmV?d00001 diff --git a/utils/empty.png.import b/utils/empty.png.import new file mode 100644 index 0000000..6d79fd8 --- /dev/null +++ b/utils/empty.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c6bd4kakb1tr3" +path="res://.godot/imported/empty.png-00c5c0f7757ec52809099cf633300943.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://utils/empty.png" +dest_files=["res://.godot/imported/empty.png-00c5c0f7757ec52809099cf633300943.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