Added the eyeball enemy base setup

todo: move the iris based on player position
todo: rotate the tentacles to match the angle of movement
This commit is contained in:
Jenna Charleston 2024-10-17 21:11:27 -07:00
parent d26bb49b00
commit b9ed54df77
12 changed files with 230 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ba16is2pmwcyq"
path="res://.godot/imported/Eyeball Center.png-44fd0bc4d7fd030f0a8ce05d22fe7de9.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Eyeball Center.png"
dest_files=["res://.godot/imported/Eyeball Center.png-44fd0bc4d7fd030f0a8ce05d22fe7de9.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
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/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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bgfs8dp7hxre5"
path="res://.godot/imported/Eyeball tentacles 1.png-9fa0098f61a4ef1bbc324223601beb94.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Eyeball tentacles 1.png"
dest_files=["res://.godot/imported/Eyeball tentacles 1.png-9fa0098f61a4ef1bbc324223601beb94.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
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/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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://t7rfy3nkknuu"
path="res://.godot/imported/Eyeball tentacles 2.png-b92df62cff6c7417125a65ae09b6e6e4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Eyeball tentacles 2.png"
dest_files=["res://.godot/imported/Eyeball tentacles 2.png-b92df62cff6c7417125a65ae09b6e6e4.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
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/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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bbh0076ummars"
path="res://.godot/imported/Eyeball tentacles 3.png-e42ba5a95b86fc317575cc6896ffeb8d.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/Eyeball tentacles 3.png"
dest_files=["res://.godot/imported/Eyeball tentacles 3.png-e42ba5a95b86fc317575cc6896ffeb8d.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
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/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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bafnrn6op1sks"
path="res://.godot/imported/eyeball enemy.png-88b5760b9447cc821b80f144639db4f4.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://assets/eyeball enemy.png"
dest_files=["res://.godot/imported/eyeball enemy.png-88b5760b9447cc821b80f144639db4f4.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
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/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

View File

@ -0,0 +1,11 @@
extends Area2D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass

View File

@ -0,0 +1,49 @@
[gd_scene load_steps=9 format=3 uid="uid://b1iu27y3u2hkh"]
[ext_resource type="Script" path="res://eyeball.gd" id="1_nw4j4"]
[ext_resource type="Texture2D" uid="uid://bafnrn6op1sks" path="res://assets/eyeball enemy.png" id="2_aq74w"]
[ext_resource type="Texture2D" uid="uid://bgfs8dp7hxre5" path="res://assets/Eyeball tentacles 1.png" id="3_pcrml"]
[ext_resource type="Texture2D" uid="uid://t7rfy3nkknuu" path="res://assets/Eyeball tentacles 2.png" id="4_1qlwt"]
[ext_resource type="Texture2D" uid="uid://bbh0076ummars" path="res://assets/Eyeball tentacles 3.png" id="5_o0i1g"]
[ext_resource type="Texture2D" uid="uid://ba16is2pmwcyq" path="res://assets/Eyeball Center.png" id="6_og1wa"]
[sub_resource type="SpriteFrames" id="SpriteFrames_1buim"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("3_pcrml")
}, {
"duration": 1.0,
"texture": ExtResource("4_1qlwt")
}, {
"duration": 1.0,
"texture": ExtResource("5_o0i1g")
}, {
"duration": 1.0,
"texture": ExtResource("4_1qlwt")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_cgpfj"]
radius = 40.0
[node name="Eyeball" type="Area2D"]
script = ExtResource("1_nw4j4")
[node name="Eyeball" type="Sprite2D" parent="."]
texture = ExtResource("2_aq74w")
[node name="Tails" type="AnimatedSprite2D" parent="."]
z_index = -1
scale = Vector2(1.25, 1.25)
sprite_frames = SubResource("SpriteFrames_1buim")
offset = Vector2(0, 45)
[node name="Iris" type="Sprite2D" parent="."]
texture = ExtResource("6_og1wa")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_cgpfj")