alai/godot/characters/player/Player.tscn

34 lines
1.0 KiB
Plaintext
Raw Normal View History

2022-04-09 22:16:27 -04:00
[gd_scene load_steps=5 format=2]
2022-04-05 14:51:59 -04:00
[ext_resource path="res://characters/player/sprites/green.tres" type="SpriteFrames" id=1]
2022-04-09 22:16:27 -04:00
[ext_resource path="res://characters/player/states/Idle.gdns" type="Script" id=2]
[ext_resource path="res://characters/player/Player.gdns" type="Script" id=3]
2022-04-05 14:51:59 -04:00
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 7, 11.5 )
2022-04-05 14:51:59 -04:00
[node name="Player" type="KinematicBody2D"]
2022-04-09 22:16:27 -04:00
script = ExtResource( 3 )
2022-04-05 14:51:59 -04:00
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = ExtResource( 1 )
animation = "idle"
centered = false
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 12, 12.5 )
2022-04-05 14:51:59 -04:00
shape = SubResource( 1 )
2022-04-09 22:16:27 -04:00
[node name="StateMachine" type="Node" parent="."]
[node name="Idle" type="Node" parent="StateMachine"]
script = ExtResource( 2 )
[node name="Move" type="Node" parent="StateMachine"]
[node name="Jump" type="Node" parent="StateMachine"]
[node name="DoubleJump" type="Node" parent="StateMachine"]
[node name="Fall" type="Node" parent="StateMachine"]