Jam10/Units/Player.tscn

48 lines
1.4 KiB
Plaintext

[gd_scene load_steps=8 format=2]
[ext_resource path="res://Scripts/Units/Player.gd" type="Script" id=1]
[ext_resource path="res://Graphics/Units/Player.png" type="Texture" id=2]
[ext_resource path="res://Graphics/Units/PlayerJump2.png" type="Texture" id=3]
[ext_resource path="res://Graphics/Units/PlayerJump1.png" type="Texture" id=4]
[ext_resource path="res://Graphics/Animations/PlayerWalk.tres" type="SpriteFrames" id=5]
[ext_resource path="res://Graphics/Units/PlayerRecoil.png" type="Texture" id=6]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 6, 14 )
[node name="Player" type="Area2D"]
z_index = 1
collision_layer = 0
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0, -14 )
shape = SubResource( 1 )
[node name="Idle" type="Sprite" parent="."]
visible = false
texture = ExtResource( 2 )
offset = Vector2( 0, -15 )
[node name="Walk" type="AnimatedSprite" parent="."]
visible = false
frames = ExtResource( 5 )
offset = Vector2( 0, -15 )
[node name="Jump1" type="Sprite" parent="."]
visible = false
texture = ExtResource( 4 )
offset = Vector2( 0, -15 )
[node name="Jump2" type="Sprite" parent="."]
visible = false
texture = ExtResource( 3 )
offset = Vector2( 0, -15 )
[node name="Recoil" type="Sprite" parent="."]
visible = false
texture = ExtResource( 6 )
offset = Vector2( 0, -15 )
[connection signal="area_entered" from="." to="." method="_on_Player_area_entered"]