Implementing HUD & Changing HUD Style
This commit is contained in:
31
Player.tscn
31
Player.tscn
@@ -1,20 +1,21 @@
|
||||
[gd_scene load_steps=19 format=2]
|
||||
[gd_scene load_steps=20 format=2]
|
||||
|
||||
[ext_resource path="res://Player.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Sprites/Player.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Sprites/Player_Down.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Sprites/Player_Up.png" type="Texture" id=4]
|
||||
[ext_resource path="res://Inventory.tscn" type="PackedScene" id=5]
|
||||
|
||||
[sub_resource type="SpriteFrames" id=1]
|
||||
animations = [ {
|
||||
"frames": [ ExtResource( 4 ) ],
|
||||
"frames": [ ExtResource( 2 ) ],
|
||||
"loop": false,
|
||||
"name": "look_up",
|
||||
"name": "look_left",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 2 ) ],
|
||||
"loop": false,
|
||||
"name": "look_left",
|
||||
"name": "look_right",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 3 ) ],
|
||||
@@ -22,9 +23,9 @@ animations = [ {
|
||||
"name": "look_down",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 2 ) ],
|
||||
"frames": [ ExtResource( 4 ) ],
|
||||
"loop": false,
|
||||
"name": "look_right",
|
||||
"name": "look_up",
|
||||
"speed": 5.0
|
||||
} ]
|
||||
|
||||
@@ -146,26 +147,26 @@ tracks/1/keys = {
|
||||
"values": [ false ]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id=15]
|
||||
[sub_resource type="AnimationNodeAnimation" id=8]
|
||||
animation = "Look Left"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id=16]
|
||||
[sub_resource type="AnimationNodeAnimation" id=9]
|
||||
animation = "Look Down"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id=17]
|
||||
[sub_resource type="AnimationNodeAnimation" id=10]
|
||||
animation = "Look Right"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id=18]
|
||||
[sub_resource type="AnimationNodeAnimation" id=11]
|
||||
animation = "Look Up"
|
||||
|
||||
[sub_resource type="AnimationNodeBlendSpace2D" id=12]
|
||||
blend_point_0/node = SubResource( 15 )
|
||||
blend_point_0/node = SubResource( 8 )
|
||||
blend_point_0/pos = Vector2( -1.01, 0 )
|
||||
blend_point_1/node = SubResource( 16 )
|
||||
blend_point_1/node = SubResource( 9 )
|
||||
blend_point_1/pos = Vector2( 0, 1.1 )
|
||||
blend_point_2/node = SubResource( 17 )
|
||||
blend_point_2/node = SubResource( 10 )
|
||||
blend_point_2/pos = Vector2( 1, 0 )
|
||||
blend_point_3/node = SubResource( 18 )
|
||||
blend_point_3/node = SubResource( 11 )
|
||||
blend_point_3/pos = Vector2( 0, -1.1 )
|
||||
min_space = Vector2( -1.01, -1.1 )
|
||||
max_space = Vector2( 1, 1.1 )
|
||||
@@ -210,3 +211,5 @@ anim_player = NodePath("../AnimationPlayer")
|
||||
active = true
|
||||
parameters/playback = SubResource( 14 )
|
||||
parameters/Idle/blend_position = Vector2( 0.993787, 0.0189655 )
|
||||
|
||||
[node name="Inventory" parent="." instance=ExtResource( 5 )]
|
||||
|
Reference in New Issue
Block a user