diff --git a/Scenes/ShotgunBullet.tscn b/Scenes/ShotgunBullet.tscn index c3cbc1f..7cb1b9d 100644 --- a/Scenes/ShotgunBullet.tscn +++ b/Scenes/ShotgunBullet.tscn @@ -1,6 +1,7 @@ -[gd_scene load_steps=5 format=3 uid="uid://bq40xbqibrk1y"] +[gd_scene load_steps=6 format=3 uid="uid://bq40xbqibrk1y"] [ext_resource type="Script" path="res://Scripts/ShotgunBullet.cs" id="1_binxs"] +[ext_resource type="Texture2D" uid="uid://dpln8jwtpqru0" path="res://Textures/Projectiles/fireball.png" id="2_cl026"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_5vpcx"] albedo_color = Color(0.584314, 0.0352941, 0.141176, 1) @@ -17,7 +18,7 @@ Cooldown = 0.5 _projectileSpeed = 15.0 [node name="RigidBody3D" type="RigidBody3D" parent="."] -transform = Transform3D(0.99863, 0, -0.052336, 0, 1, 0, 0.052336, 0, 0.99863, -1.27456, 0, 0) +transform = Transform3D(0.999848, 0, -0.0174524, 0, 1, 0, 0.0174524, 0, 0.999848, -1.27456, 0, 0) collision_layer = 2 collision_mask = 0 gravity_scale = 0.0 @@ -26,14 +27,19 @@ contact_monitor = true [node name="MeshInstance3D" type="MeshInstance3D" parent="RigidBody3D"] transform = Transform3D(0.647894, 0, 0.761731, 0, 1, 0, -0.761731, 0, 0.647894, 0, 0, 0) +visible = false mesh = SubResource("SphereMesh_ugmuv") skeleton = NodePath("../..") [node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"] shape = SubResource("SphereShape3D_o6kys") +[node name="Sprite3D" type="Sprite3D" parent="RigidBody3D"] +axis = 1 +texture = ExtResource("2_cl026") + [node name="RigidBody3D2" type="RigidBody3D" parent="."] -transform = Transform3D(0.99863, 0, 0.052336, 0, 1, 0, -0.052336, 0, 0.99863, 1.32, 0, 0) +transform = Transform3D(0.999848, 0, 0.0174524, 0, 1, 0, -0.0174524, 0, 0.999848, 1.32, 0, 0) collision_layer = 2 collision_mask = 0 gravity_scale = 0.0 @@ -41,12 +47,17 @@ continuous_cd = true contact_monitor = true [node name="MeshInstance3D" type="MeshInstance3D" parent="RigidBody3D2"] +visible = false mesh = SubResource("SphereMesh_ugmuv") skeleton = NodePath("../..") [node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D2"] shape = SubResource("SphereShape3D_o6kys") +[node name="Sprite3D" type="Sprite3D" parent="RigidBody3D2"] +axis = 1 +texture = ExtResource("2_cl026") + [node name="RigidBody3D3" type="RigidBody3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1.56619) collision_layer = 2 @@ -57,8 +68,13 @@ contact_monitor = true [node name="MeshInstance3D" type="MeshInstance3D" parent="RigidBody3D3"] transform = Transform3D(0.999848, 0, 0.0174524, 0, 1, 0, -0.0174524, 0, 0.999848, 0, 0, 0) +visible = false mesh = SubResource("SphereMesh_ugmuv") skeleton = NodePath("../..") [node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D3"] shape = SubResource("SphereShape3D_o6kys") + +[node name="Sprite3D" type="Sprite3D" parent="RigidBody3D3"] +axis = 1 +texture = ExtResource("2_cl026") diff --git a/Scenes/TestBullet.tscn b/Scenes/TestBullet.tscn index b2a21bb..281d9f8 100644 --- a/Scenes/TestBullet.tscn +++ b/Scenes/TestBullet.tscn @@ -1,6 +1,7 @@ -[gd_scene load_steps=5 format=3 uid="uid://si4byubqnng4"] +[gd_scene load_steps=6 format=3 uid="uid://si4byubqnng4"] [ext_resource type="Script" path="res://Scripts/TestBullet.cs" id="1_cavby"] +[ext_resource type="Texture2D" uid="uid://dpln8jwtpqru0" path="res://Textures/Projectiles/fireball.png" id="2_xa8hs"] [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_phgri"] albedo_color = Color(0.584314, 0.0352941, 0.141176, 1) @@ -24,8 +25,13 @@ continuous_cd = true contact_monitor = true [node name="MeshInstance3D" type="MeshInstance3D" parent="RigidBody3D"] +visible = false mesh = SubResource("SphereMesh_wuk0e") skeleton = NodePath("../..") [node name="CollisionShape3D" type="CollisionShape3D" parent="RigidBody3D"] shape = SubResource("SphereShape3D_rokeu") + +[node name="Sprite3D" type="Sprite3D" parent="RigidBody3D"] +axis = 1 +texture = ExtResource("2_xa8hs") diff --git a/Textures/Projectiles/fireball.png b/Textures/Projectiles/fireball.png new file mode 100644 index 0000000..86c4806 Binary files /dev/null and b/Textures/Projectiles/fireball.png differ diff --git a/Textures/Projectiles/fireball.png.import b/Textures/Projectiles/fireball.png.import new file mode 100644 index 0000000..7fb0c69 --- /dev/null +++ b/Textures/Projectiles/fireball.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dpln8jwtpqru0" +path.s3tc="res://.godot/imported/fireball.png-91cf052aa017f574a79b4d686f997e5c.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://Textures/Projectiles/fireball.png" +dest_files=["res://.godot/imported/fireball.png-91cf052aa017f574a79b4d686f997e5c.s3tc.ctex"] + +[params] + +compress/mode=2 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=true +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=0