In this commit I add a human character, a traveler that can move around a tiny world made of a single screen so far. :) Materials used so far: * 'HeartBeast' video lesons: https://goo.gl/3DtqPn * The very informative and rich documentation of Godot itself! For the Gamepad I used wonderful addon by fiaful: https://github.com/fiaful/Gamepad The beautiful arts are from "Open Pixel Project": https://openpixelproject.itch.io
101 lines
2.4 KiB
Text
101 lines
2.4 KiB
Text
[gd_scene load_steps=5 format=2]
|
|
|
|
[ext_resource path="res://assets/Gamepad/big_circle.png" type="Texture" id=1]
|
|
[ext_resource path="res://assets/Gamepad/small_circle.png" type="Texture" id=2]
|
|
|
|
[sub_resource type="Animation" id=1]
|
|
|
|
resource_name = "fade_in"
|
|
length = 1.0
|
|
loop = false
|
|
step = 0.2
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("ButtonFace:modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0, 1 ),
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
"update": 0,
|
|
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
|
|
}
|
|
|
|
[sub_resource type="Animation" id=2]
|
|
|
|
resource_name = "fade_out"
|
|
length = 1.0
|
|
loop = false
|
|
step = 0.1
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("ButtonFace:modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PoolRealArray( 0, 1 ),
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
"update": 0,
|
|
"values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
|
|
}
|
|
|
|
[node name="GamepadButtonTemplate" type="Control" index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_right = 192.0
|
|
margin_bottom = 192.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
_sections_unfolded = [ "Hint", "Rect", "Size Flags" ]
|
|
|
|
[node name="ButtonFace" type="TextureButton" parent="." index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
rect_pivot_offset = Vector2( 0, 0 )
|
|
rect_clip_content = false
|
|
focus_mode = 2
|
|
mouse_filter = 0
|
|
mouse_default_cursor_shape = 0
|
|
size_flags_horizontal = 1
|
|
size_flags_vertical = 1
|
|
toggle_mode = true
|
|
action_mode = 0
|
|
enabled_focus_mode = 2
|
|
shortcut = null
|
|
group = null
|
|
texture_normal = ExtResource( 1 )
|
|
texture_pressed = ExtResource( 2 )
|
|
expand = true
|
|
_sections_unfolded = [ "Size Flags", "Textures", "Visibility" ]
|
|
|
|
[node name="AutofireTimer" type="Timer" parent="." index="1"]
|
|
|
|
process_mode = 1
|
|
wait_time = 1.0
|
|
one_shot = false
|
|
autostart = false
|
|
|
|
[node name="ShowHideAnimation" type="AnimationPlayer" parent="." index="2"]
|
|
|
|
root_node = NodePath("..")
|
|
autoplay = ""
|
|
playback_process_mode = 1
|
|
playback_default_blend_time = 0.0
|
|
playback_speed = 1.0
|
|
anims/fade_in = SubResource( 1 )
|
|
anims/fade_out = SubResource( 2 )
|
|
blend_times = [ ]
|
|
|
|
|