From: Eduardo Date: Fri, 9 Feb 2024 01:59:21 +0000 (+0100) Subject: the base enemy now has the unicorn sprite (just provisional til the model is done) X-Git-Url: http://git.edufdez.es/?a=commitdiff_plain;h=b4de4657f5b5714c63132cde9eb09004c0fac2d0;p=ScaryGame.git the base enemy now has the unicorn sprite (just provisional til the model is done) --- diff --git a/enemies/base_enemy.tscn b/enemies/base_enemy.tscn index 1ddd6ac..e435ed3 100644 --- a/enemies/base_enemy.tscn +++ b/enemies/base_enemy.tscn @@ -1,11 +1,24 @@ -[gd_scene load_steps=4 format=3 uid="uid://6v0x74t1fjxk"] +[gd_scene load_steps=8 format=3 uid="uid://6v0x74t1fjxk"] [ext_resource type="Script" path="res://enemies/base_enemy.gd" id="1_kxqsq"] +[ext_resource type="Texture2D" uid="uid://dqa5hdpx62r20" path="res://enemies/unicorn/uniconrn.png" id="2_2668t"] [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_aahun"] [sub_resource type="CapsuleMesh" id="CapsuleMesh_uypfm"] +[sub_resource type="CylinderShape3D" id="CylinderShape3D_mr4c1"] +height = 6.0 +radius = 10.0 + +[sub_resource type="CylinderShape3D" id="CylinderShape3D_vgfwf"] +height = 6.0 +radius = 25.0 + +[sub_resource type="CylinderShape3D" id="CylinderShape3D_x3f0e"] +height = 6.0 +radius = 50.0 + [node name="BaseEnemy" type="CharacterBody3D"] script = ExtResource("1_kxqsq") @@ -17,6 +30,22 @@ shape = SubResource("CapsuleShape3D_aahun") [node name="MeshInstance3D" type="MeshInstance3D" parent="."] transform = Transform3D(1.91069e-15, 4.37114e-08, 1, 1, -4.37114e-08, 0, 4.37114e-08, 1, -4.37114e-08, 0, 1, 0) +visible = false mesh = SubResource("CapsuleMesh_uypfm") [node name="NavigationAgent3D" type="NavigationAgent3D" parent="."] + +[node name="Area3D" type="Area3D" parent="."] + +[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"] +shape = SubResource("CylinderShape3D_mr4c1") + +[node name="CollisionShape3D2" type="CollisionShape3D" parent="Area3D"] +shape = SubResource("CylinderShape3D_vgfwf") + +[node name="CollisionShape3D3" type="CollisionShape3D" parent="Area3D"] +shape = SubResource("CylinderShape3D_x3f0e") + +[node name="Sprite3D" type="Sprite3D" parent="."] +transform = Transform3D(0.18611, 0, -0.18611, 0, 0.2632, 0, 0.18611, 0, 0.18611, 0, 1.1, -0.130601) +texture = ExtResource("2_2668t") diff --git a/enemies/unicorn/uniconrn.png b/enemies/unicorn/uniconrn.png new file mode 100644 index 0000000..3b82ab4 Binary files /dev/null and b/enemies/unicorn/uniconrn.png differ diff --git a/enemies/unicorn/uniconrn.png.import b/enemies/unicorn/uniconrn.png.import new file mode 100644 index 0000000..3df9d8f --- /dev/null +++ b/enemies/unicorn/uniconrn.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dqa5hdpx62r20" +path.s3tc="res://.godot/imported/uniconrn.png-87f5269956f6c38b1a91c3c18138f2aa.s3tc.ctex" +metadata={ +"imported_formats": ["s3tc_bptc"], +"vram_texture": true +} + +[deps] + +source_file="res://enemies/unicorn/uniconrn.png" +dest_files=["res://.godot/imported/uniconrn.png-87f5269956f6c38b1a91c3c18138f2aa.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