[gd_scene load_steps=45 format=3 uid="uid://cjqhmd3158nb7"] [ext_resource type="Script" path="res://scripts/dudecontroller.gd" id="1_u27sl"] [ext_resource type="Texture2D" uid="uid://1h4aupwklktd" path="res://assets/graphics/player/death/Player Death 64x64.png" id="2_puyd6"] [ext_resource type="Texture2D" uid="uid://cjuaglcx1l8mq" path="res://assets/graphics/player/idle/Player Idle 48x48.png" id="2_s31uh"] [ext_resource type="Texture2D" uid="uid://chrp31s6hw6fp" path="res://assets/graphics/player/hurt/Player Hurt 48x48.png" id="2_t63lx"] [ext_resource type="Texture2D" uid="uid://b82ecqnclroum" path="res://assets/graphics/player/jump/player jump 48x48.png" id="3_5pc3d"] [ext_resource type="Texture2D" uid="uid://bddwju2m8xvbj" path="res://assets/graphics/player/run/player run 48x48.png" id="3_pvg6g"] [ext_resource type="Texture2D" uid="uid://c8v2hylsdn8bd" path="res://assets/graphics/pickups/Toy-gun.jpg" id="7_mx582"] [sub_resource type="CircleShape2D" id="CircleShape2D_pg3nc"] radius = 18.1108 [sub_resource type="AtlasTexture" id="AtlasTexture_lewcv"] atlas = ExtResource("2_puyd6") region = Rect2(0, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_7vgrw"] atlas = ExtResource("2_puyd6") region = Rect2(48, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_ax0dy"] atlas = ExtResource("2_puyd6") region = Rect2(96, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_h3um1"] atlas = ExtResource("2_puyd6") region = Rect2(144, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_xpfml"] atlas = ExtResource("2_puyd6") region = Rect2(192, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_crvik"] atlas = ExtResource("2_puyd6") region = Rect2(240, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_l42x7"] atlas = ExtResource("2_puyd6") region = Rect2(288, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_ux8dt"] atlas = ExtResource("2_puyd6") region = Rect2(336, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_7w8ul"] atlas = ExtResource("2_puyd6") region = Rect2(384, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_js8u6"] atlas = ExtResource("2_puyd6") region = Rect2(432, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_li3qm"] atlas = ExtResource("2_t63lx") region = Rect2(0, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_h1vht"] atlas = ExtResource("2_t63lx") region = Rect2(48, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_hrho2"] atlas = ExtResource("2_t63lx") region = Rect2(96, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_ur1h8"] atlas = ExtResource("2_t63lx") region = Rect2(144, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_mirx3"] atlas = ExtResource("2_s31uh") region = Rect2(0, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_ur0m7"] atlas = ExtResource("2_s31uh") region = Rect2(48, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_m2fh1"] atlas = ExtResource("2_s31uh") region = Rect2(96, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_lqxd8"] atlas = ExtResource("2_s31uh") region = Rect2(144, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_q1uhj"] atlas = ExtResource("2_s31uh") region = Rect2(192, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_3nxhs"] atlas = ExtResource("2_s31uh") region = Rect2(240, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_uly7f"] atlas = ExtResource("2_s31uh") region = Rect2(288, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_a0rgn"] atlas = ExtResource("2_s31uh") region = Rect2(336, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_vl0t4"] atlas = ExtResource("2_s31uh") region = Rect2(384, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_ywq8a"] atlas = ExtResource("2_s31uh") region = Rect2(432, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_qbdur"] atlas = ExtResource("3_5pc3d") region = Rect2(0, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_e0phq"] atlas = ExtResource("3_5pc3d") region = Rect2(48, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_aagb2"] atlas = ExtResource("3_5pc3d") region = Rect2(96, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_waibj"] atlas = ExtResource("3_pvg6g") region = Rect2(0, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_royxn"] atlas = ExtResource("3_pvg6g") region = Rect2(48, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_58lgm"] atlas = ExtResource("3_pvg6g") region = Rect2(96, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_sh18f"] atlas = ExtResource("3_pvg6g") region = Rect2(144, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_1wubr"] atlas = ExtResource("3_pvg6g") region = Rect2(192, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_v0216"] atlas = ExtResource("3_pvg6g") region = Rect2(240, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_ddbn2"] atlas = ExtResource("3_pvg6g") region = Rect2(288, 0, 48, 48) [sub_resource type="AtlasTexture" id="AtlasTexture_txi2q"] atlas = ExtResource("3_pvg6g") region = Rect2(336, 0, 48, 48) [sub_resource type="SpriteFrames" id="SpriteFrames_p5ykk"] animations = [{ "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_lewcv") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_7vgrw") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ax0dy") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_h3um1") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_xpfml") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_crvik") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_l42x7") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ux8dt") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_7w8ul") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_js8u6") }], "loop": false, "name": &"death", "speed": 12.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_li3qm") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_h1vht") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_hrho2") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ur1h8") }], "loop": false, "name": &"hurt", "speed": 12.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_mirx3") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ur0m7") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_m2fh1") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_lqxd8") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_q1uhj") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_3nxhs") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_uly7f") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_a0rgn") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_vl0t4") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ywq8a") }], "loop": true, "name": &"idle", "speed": 12.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_qbdur") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_e0phq") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_aagb2") }], "loop": false, "name": &"jump", "speed": 8.0 }, { "frames": [{ "duration": 1.0, "texture": SubResource("AtlasTexture_waibj") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_royxn") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_58lgm") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_sh18f") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_1wubr") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_v0216") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_ddbn2") }, { "duration": 1.0, "texture": SubResource("AtlasTexture_txi2q") }], "loop": true, "name": &"run", "speed": 12.0 }] [node name="CharacterBody2D" type="CharacterBody2D" groups=["player"]] script = ExtResource("1_u27sl") [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2(0, 2) scale = Vector2(0.8, 0.8) shape = SubResource("CircleShape2D_pg3nc") debug_color = Color(0.178776, 0.565003, 0.825276, 0.42) [node name="RightRay" type="RayCast2D" parent="."] target_position = Vector2(17, 0) [node name="LeftRay" type="RayCast2D" parent="."] target_position = Vector2(-19, 0) [node name="RightTarget" type="Node2D" parent="."] position = Vector2(18, -5) [node name="LeftTarget" type="Node2D" parent="."] position = Vector2(-18, -5) [node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."] texture_filter = 1 sprite_frames = SubResource("SpriteFrames_p5ykk") animation = &"idle" autoplay = "run" [node name="Camera2D" type="Camera2D" parent="."] position = Vector2(-1, 0) offset = Vector2(0, -40) [node name="Gun" type="Sprite2D" parent="."] position = Vector2(22, 1) scale = Vector2(0.016357, 0.0194301) texture = ExtResource("7_mx582") [connection signal="animation_finished" from="AnimatedSprite2D" to="." method="_on_animation_finished"]