[gd_scene load_steps=5 format=2] [ext_resource path="res://Player.gd" type="Script" id=1] [ext_resource path="res://player.png" type="Texture" id=2] [ext_resource path="res://CharTween.gd" type="Script" id=3] [sub_resource type="RectangleShape2D" id=1] extents = Vector2( 16, 16 ) [node name="Player" type="Area2D"] script = ExtResource( 1 ) [node name="Sprite" type="Sprite" parent="."] texture = ExtResource( 2 ) __meta__ = { "_edit_lock_": true } [node name="HitBox" type="CollisionShape2D" parent="."] shape = SubResource( 1 ) __meta__ = { "_edit_lock_": true } [node name="RayFront" type="RayCast2D" parent="."] position = Vector2( 0, -30 ) enabled = true exclude_parent = false cast_to = Vector2( 0, -64 ) __meta__ = { "_edit_lock_": true } [node name="RayLeft" type="RayCast2D" parent="."] position = Vector2( -30, 0 ) enabled = true exclude_parent = false cast_to = Vector2( -64, 0 ) __meta__ = { "_edit_lock_": true } [node name="RayRight" type="RayCast2D" parent="."] position = Vector2( 30, 0 ) enabled = true exclude_parent = false cast_to = Vector2( 64, 0 ) __meta__ = { "_edit_lock_": true } [node name="Tween" type="Tween" parent="."] script = ExtResource( 3 ) duration = 0.1 [connection signal="body_entered" from="." to="." method="_on_crash"]