indicator for if sg is off the top of the screen
This commit is contained in:
parent
ae0e52f506
commit
8b1ccd366f
7 changed files with 127 additions and 2 deletions
44
objects/hud/off_level_indicator.tscn
Normal file
44
objects/hud/off_level_indicator.tscn
Normal file
|
@ -0,0 +1,44 @@
|
|||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://shaders/recolor_border.shader" type="Shader" id=1]
|
||||
[ext_resource path="res://graphics/player/palettes/default.png" type="Texture" id=2]
|
||||
[ext_resource path="res://graphics/hud/off_level_indicator.png" type="Texture" id=3]
|
||||
[ext_resource path="res://graphics/hud/sg_head.png" type="Texture" id=4]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id=1]
|
||||
shader = ExtResource( 1 )
|
||||
shader_param/border_color = Color( 0, 0, 0, 1 )
|
||||
shader_param/border_corners = true
|
||||
shader_param/palette = ExtResource( 2 )
|
||||
|
||||
[sub_resource type="Animation" id=2]
|
||||
resource_name = "wobble"
|
||||
loop = true
|
||||
tracks/0/type = "value"
|
||||
tracks/0/path = NodePath("Arrow:position")
|
||||
tracks/0/interp = 2
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/keys = {
|
||||
"times": PoolRealArray( 0, 0.5, 1 ),
|
||||
"transitions": PoolRealArray( 1, 1, 1 ),
|
||||
"update": 0,
|
||||
"values": [ Vector2( 1, 5 ), Vector2( 1, 3 ), Vector2( 1, 5 ) ]
|
||||
}
|
||||
|
||||
[node name="OffLevelIndicator" type="Node2D"]
|
||||
z_index = 4096
|
||||
|
||||
[node name="Head" type="Sprite" parent="."]
|
||||
material = SubResource( 1 )
|
||||
position = Vector2( 0, 15 )
|
||||
texture = ExtResource( 4 )
|
||||
|
||||
[node name="Arrow" type="Sprite" parent="."]
|
||||
position = Vector2( 1, 3.0437 )
|
||||
texture = ExtResource( 3 )
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
autoplay = "wobble"
|
||||
anims/wobble = SubResource( 2 )
|
Loading…
Add table
Add a link
Reference in a new issue