added emotion
This commit is contained in:
parent
bb702a88f0
commit
807cfb4b57
19 changed files with 340 additions and 14 deletions
3
ui/hud.gd
Normal file
3
ui/hud.gd
Normal file
|
@ -0,0 +1,3 @@
|
|||
extends Control
|
||||
|
||||
@onready var face = %Face
|
1
ui/hud.gd.uid
Normal file
1
ui/hud.gd.uid
Normal file
|
@ -0,0 +1 @@
|
|||
uid://utw0yjt02c0v
|
108
ui/hud.tscn
Normal file
108
ui/hud.tscn
Normal file
|
@ -0,0 +1,108 @@
|
|||
[gd_scene load_steps=16 format=3 uid="uid://bnmtddab1b33d"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://utw0yjt02c0v" path="res://ui/hud.gd" id="1_7ihmi"]
|
||||
[ext_resource type="Texture2D" uid="uid://evvl4jklinky" path="res://assets/graphics/ui/smileyface.png" id="1_rbyyf"]
|
||||
[ext_resource type="Texture2D" uid="uid://fjgddkynnder" path="res://assets/graphics/ui/face_happy.png" id="3_1v5rv"]
|
||||
[ext_resource type="Texture2D" uid="uid://cf4jyuwvoyu43" path="res://assets/graphics/ui/face_mad.png" id="3_en2x2"]
|
||||
[ext_resource type="Texture2D" uid="uid://bbcsjswtsq5vg" path="res://assets/graphics/ui/face_neutral.png" id="5_q43x7"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_spcu4"]
|
||||
atlas = ExtResource("3_1v5rv")
|
||||
region = Rect2(0, 0, 100, 100)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ff8ar"]
|
||||
atlas = ExtResource("3_1v5rv")
|
||||
region = Rect2(100, 0, 100, 100)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_m0eg6"]
|
||||
atlas = ExtResource("3_1v5rv")
|
||||
region = Rect2(200, 0, 100, 100)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1v5rv"]
|
||||
atlas = ExtResource("3_en2x2")
|
||||
region = Rect2(0, 0, 100, 100)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_q43x7"]
|
||||
atlas = ExtResource("3_en2x2")
|
||||
region = Rect2(100, 0, 100, 100)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_srpbi"]
|
||||
atlas = ExtResource("3_en2x2")
|
||||
region = Rect2(200, 0, 100, 100)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_b00kl"]
|
||||
atlas = ExtResource("5_q43x7")
|
||||
region = Rect2(0, 0, 100, 100)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_so1yu"]
|
||||
atlas = ExtResource("5_q43x7")
|
||||
region = Rect2(100, 0, 100, 100)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_65xic"]
|
||||
atlas = ExtResource("5_q43x7")
|
||||
region = Rect2(200, 0, 100, 100)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_en2x2"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_spcu4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ff8ar")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_m0eg6")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"happy",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1v5rv")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_q43x7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_srpbi")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"mad",
|
||||
"speed": 10.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_b00kl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_so1yu")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_65xic")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"neutral",
|
||||
"speed": 10.0
|
||||
}]
|
||||
|
||||
[node name="Control" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
script = ExtResource("1_7ihmi")
|
||||
|
||||
[node name="Smileyface" type="Sprite2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(53, 50)
|
||||
texture = ExtResource("1_rbyyf")
|
||||
|
||||
[node name="Face" type="AnimatedSprite2D" parent="."]
|
||||
unique_name_in_owner = true
|
||||
position = Vector2(50, 50)
|
||||
sprite_frames = SubResource("SpriteFrames_en2x2")
|
||||
animation = &"neutral"
|
||||
autoplay = "neutral"
|
||||
frame_progress = 0.807805
|
Loading…
Add table
Add a link
Reference in a new issue