Added NPC ArrowGirl
This commit is contained in:
14
ArrowGirl/ArrowGirl.gd
Normal file
14
ArrowGirl/ArrowGirl.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
class_name ArrowGirl extends Area2D
|
||||
|
||||
@onready var _sprite = $AnimatedSprite2D
|
||||
|
||||
#boilerplate
|
||||
func _ready():
|
||||
_sprite.play("idle", 1)
|
||||
|
||||
#animation stuff
|
||||
func _on_animation_finished() -> void:
|
||||
if randf() < 0.2:
|
||||
_sprite.play("idle_glance", 2)
|
||||
else:
|
||||
_sprite.play("idle", 2)
|
||||
1
ArrowGirl/ArrowGirl.gd.uid
Normal file
1
ArrowGirl/ArrowGirl.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://dqnhd2oej7xbw
|
||||
BIN
ArrowGirl/ArrowGirl.png
Normal file
BIN
ArrowGirl/ArrowGirl.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 762 B |
40
ArrowGirl/ArrowGirl.png.import
Normal file
40
ArrowGirl/ArrowGirl.png.import
Normal file
@@ -0,0 +1,40 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dvuvwdk6nr4nb"
|
||||
path="res://.godot/imported/ArrowGirl.png-d4d75df81e356cd6ff3873d27dc6b64f.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ArrowGirl/ArrowGirl.png"
|
||||
dest_files=["res://.godot/imported/ArrowGirl.png-d4d75df81e356cd6ff3873d27dc6b64f.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
|
||||
55
ArrowGirl/ArrowGirl.tscn
Normal file
55
ArrowGirl/ArrowGirl.tscn
Normal file
@@ -0,0 +1,55 @@
|
||||
[gd_scene format=3 uid="uid://cn8srrkyt4h8e"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://dvuvwdk6nr4nb" path="res://ArrowGirl/ArrowGirl.png" id="1_5i1ac"]
|
||||
[ext_resource type="Script" uid="uid://dqnhd2oej7xbw" path="res://ArrowGirl/ArrowGirl.gd" id="1_53v1e"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_y2354"]
|
||||
atlas = ExtResource("1_5i1ac")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ni31j"]
|
||||
atlas = ExtResource("1_5i1ac")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xlvrw"]
|
||||
atlas = ExtResource("1_5i1ac")
|
||||
region = Rect2(32, 0, 32, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_73fnb"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_y2354")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"idle",
|
||||
"speed": 1.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ni31j")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xlvrw")
|
||||
}],
|
||||
"loop": false,
|
||||
"name": &"idle_glance",
|
||||
"speed": 1.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_53v1e"]
|
||||
size = Vector2(32, 32)
|
||||
|
||||
[node name="ArrowGirl" type="Area2D" unique_id=869288979]
|
||||
script = ExtResource("1_53v1e")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="." unique_id=1672878033]
|
||||
sprite_frames = SubResource("SpriteFrames_73fnb")
|
||||
animation = &"idle_glance"
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1190138841]
|
||||
shape = SubResource("RectangleShape2D_53v1e")
|
||||
metadata/_edit_lock_ = true
|
||||
|
||||
[connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animation_finished"]
|
||||
BIN
ArrowGirl/ArrowGirl.xcf
Normal file
BIN
ArrowGirl/ArrowGirl.xcf
Normal file
Binary file not shown.
Reference in New Issue
Block a user