diff --git a/assets/graphics/objects/grenade.png b/assets/graphics/objects/grenade.png new file mode 100644 index 0000000..1a69609 Binary files /dev/null and b/assets/graphics/objects/grenade.png differ diff --git a/assets/graphics/objects/grenade.png.import b/assets/graphics/objects/grenade.png.import new file mode 100644 index 0000000..26924e5 --- /dev/null +++ b/assets/graphics/objects/grenade.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://6vtsx7rnpd7w" +path="res://.godot/imported/grenade.png-d1c07918c8a2b35336be824628ce434f.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/graphics/objects/grenade.png" +dest_files=["res://.godot/imported/grenade.png-d1c07918c8a2b35336be824628ce434f.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/graphics/crate/small_crate.png b/assets/graphics/objects/small_crate.png similarity index 100% rename from assets/graphics/crate/small_crate.png rename to assets/graphics/objects/small_crate.png diff --git a/assets/graphics/crate/small_crate.png.import b/assets/graphics/objects/small_crate.png.import similarity index 75% rename from assets/graphics/crate/small_crate.png.import rename to assets/graphics/objects/small_crate.png.import index 6ece13d..e9893e8 100644 --- a/assets/graphics/crate/small_crate.png.import +++ b/assets/graphics/objects/small_crate.png.import @@ -3,15 +3,15 @@ importer="texture" type="CompressedTexture2D" uid="uid://dickh4ulsdmhi" -path="res://.godot/imported/small_crate.png-0e3ecffaca9502966cb5eefb84d8ab7d.ctex" +path="res://.godot/imported/small_crate.png-88965ed493b5b6f0bfa03d326f4036bf.ctex" metadata={ "vram_texture": false } [deps] -source_file="res://assets/graphics/crate/small_crate.png" -dest_files=["res://.godot/imported/small_crate.png-0e3ecffaca9502966cb5eefb84d8ab7d.ctex"] +source_file="res://assets/graphics/objects/small_crate.png" +dest_files=["res://.godot/imported/small_crate.png-88965ed493b5b6f0bfa03d326f4036bf.ctex"] [params] diff --git a/scenes/brown_box.tscn b/scenes/brown_box.tscn index b7d5919..26a680e 100644 --- a/scenes/brown_box.tscn +++ b/scenes/brown_box.tscn @@ -1,7 +1,7 @@ [gd_scene format=3 uid="uid://wt8o0uyqblsv"] [ext_resource type="Script" uid="uid://dn8v5sbqg05v3" path="res://scripts/brown_box.gd" id="1_g34fy"] -[ext_resource type="Texture2D" uid="uid://dickh4ulsdmhi" path="res://assets/graphics/crate/small_crate.png" id="2_g748q"] +[ext_resource type="Texture2D" uid="uid://dickh4ulsdmhi" path="res://assets/graphics/objects/small_crate.png" id="2_g748q"] [sub_resource type="RectangleShape2D" id="RectangleShape2D_o3qty"] diff --git a/scenes/grenade.tscn b/scenes/grenade.tscn index ad32e72..b222cab 100644 --- a/scenes/grenade.tscn +++ b/scenes/grenade.tscn @@ -1,6 +1,7 @@ [gd_scene format=3 uid="uid://cncmlpntwxxx5"] [ext_resource type="Script" uid="uid://bwjaypkvgpb6t" path="res://scripts/grenade.gd" id="1_cvyik"] +[ext_resource type="Texture2D" uid="uid://6vtsx7rnpd7w" path="res://assets/graphics/objects/grenade.png" id="2_wxtds"] [sub_resource type="CircleShape2D" id="CircleShape2D_1xt3t"] radius = 5.0 @@ -15,4 +16,8 @@ metadata/_edit_group_ = true shape = SubResource("CircleShape2D_1xt3t") debug_color = Color(0.8627451, 0.03137255, 0.20392157, 0.41960785) +[node name="Sprite2D" type="Sprite2D" parent="." unique_id=1803673568] +texture_filter = 1 +texture = ExtResource("2_wxtds") + [connection signal="body_entered" from="." to="." method="_on_body_entered"]