[gd_scene load_steps=7 format=3 uid="uid://dpn82ibpmpb6u"] [ext_resource type="Script" path="res://entities/player/player.gd" id="1_jrd75"] [ext_resource type="Texture2D" uid="uid://dxkxa6e6ue1b6" path="res://entities/assets/bat.png" id="1_qfnf0"] [sub_resource type="Animation" id="Animation_ve5nf"] resource_name = "RESET" tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite2D:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [0] } [sub_resource type="Animation" id="Animation_ab576"] resource_name = "move" length = 0.5 loop_mode = 1 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Sprite2D:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.25), "transitions": PackedFloat32Array(1, 1), "update": 1, "values": [0, 1] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_dx4e7"] _data = { "RESET": SubResource("Animation_ve5nf"), "move": SubResource("Animation_ab576") } [sub_resource type="RectangleShape2D" id="RectangleShape2D_l7fhd"] size = Vector2(8, 8) [node name="Player" type="CharacterBody2D"] z_index = 1 collision_mask = 3 script = ExtResource("1_jrd75") speed = 40.0 [node name="Camera2D" type="Camera2D" parent="."] [node name="Sprite2D" type="Sprite2D" parent="."] texture_filter = 1 texture = ExtResource("1_qfnf0") hframes = 2 [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { "": SubResource("AnimationLibrary_dx4e7") } autoplay = "move" [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("RectangleShape2D_l7fhd") [node name="RayCast2D" type="RayCast2D" parent="."] target_position = Vector2(0, 8) collision_mask = 2