[gd_scene load_steps=20 format=2] [ext_resource path="res://player.gd" type="Script" id=1] [ext_resource path="res://robot_demo.png" type="Texture" id=2] [ext_resource path="res://sound_jump.wav" type="AudioStream" id=3] [ext_resource path="res://sound_shoot.wav" type="AudioStream" id=4] [ext_resource path="res://osb_left.png" type="Texture" id=5] [ext_resource path="res://osb_right.png" type="Texture" id=6] [ext_resource path="res://osb_jump.png" type="Texture" id=7] [ext_resource path="res://osb_fire.png" type="Texture" id=8] [sub_resource type="Animation" id=1] resource_name = "crouch" length = 0.01 loop = true step = 0.25 tracks/0/type = "value" tracks/0/path = NodePath("sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 22 ] } [sub_resource type="Animation" id=2] resource_name = "falling" length = 0.01 loop = true step = 0.25 tracks/0/type = "value" tracks/0/path = NodePath("sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 21 ] } [sub_resource type="Animation" id=3] resource_name = "falling_weapon" length = 0.5 loop = true step = 0.25 tracks/0/type = "value" tracks/0/path = NodePath("sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 26 ] } [sub_resource type="Animation" id=4] length = 7.0 loop = true step = 0.25 tracks/0/type = "value" tracks/0/path = NodePath("sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/keys = { "times": PoolRealArray( 0, 1.25, 1.5, 2, 4.5, 4.75, 5, 5.25 ), "transitions": PoolRealArray( 1, 1, 1, 1, 1, 1, 1, 1 ), "update": 1, "values": [ 16, 17, 18, 16, 19, 20, 19, 16 ] } [sub_resource type="Animation" id=5] length = 0.5 loop = true step = 0.25 tracks/0/type = "value" tracks/0/path = NodePath("sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 25 ] } [sub_resource type="Animation" id=6] length = 0.5 loop = true step = 0.25 tracks/0/type = "value" tracks/0/path = NodePath("sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/keys = { "times": PoolRealArray( 0, 0.25, 0.5 ), "transitions": PoolRealArray( 1, 1, 1 ), "update": 1, "values": [ 23, 24, 23 ] } [sub_resource type="Animation" id=7] length = 0.5 loop = true step = 0.25 tracks/0/type = "value" tracks/0/path = NodePath("sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/keys = { "times": PoolRealArray( 0 ), "transitions": PoolRealArray( 1 ), "update": 1, "values": [ 26 ] } [sub_resource type="Animation" id=8] length = 1.25 loop = true step = 0.25 tracks/0/type = "value" tracks/0/path = NodePath("sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/keys = { "times": PoolRealArray( 0, 0.25, 0.5, 0.75, 1, 1.25 ), "transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ), "update": 1, "values": [ 0, 1, 2, 3, 4, 0 ] } [sub_resource type="Animation" id=9] length = 1.25 loop = true step = 0.25 tracks/0/type = "value" tracks/0/path = NodePath("sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/keys = { "times": PoolRealArray( 0, 0.25, 0.5, 0.75, 1, 1.25 ), "transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ), "update": 1, "values": [ 5, 6, 7, 8, 9, 5 ] } [sub_resource type="Animation" id=10] length = 1.25 loop = true step = 0.25 tracks/0/type = "value" tracks/0/path = NodePath("sprite:frame") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/keys = { "times": PoolRealArray( 0, 0.25, 0.5, 0.75, 1, 1.25 ), "transitions": PoolRealArray( 1, 1, 1, 1, 1, 1 ), "update": 1, "values": [ 10, 11, 12, 13, 14, 5 ] } [sub_resource type="CapsuleShape2D" id=11] custom_solver_bias = 0.0 radius = 10.0 height = 44.4787 [node name="player" type="KinematicBody2D"] input_pickable = false collision_layer = 1 collision_mask = 1 collision/safe_margin = 0.08 script = ExtResource( 1 ) [node name="sprite" type="Sprite" parent="."] texture = ExtResource( 2 ) vframes = 2 hframes = 16 frame = 22 [node name="smoke" type="Node2D" parent="sprite"] position = Vector2( 20.7312, 3.21187 ) rotation = -1.45648 [node name="bullet_shoot" type="Position2D" parent="sprite"] position = Vector2( 30.6589, 6.13176 ) [node name="anim" type="AnimationPlayer" parent="."] playback_process_mode = 1 playback_default_blend_time = 0.0 root_node = NodePath("..") anims/crouch = SubResource( 1 ) anims/falling = SubResource( 2 ) anims/falling_weapon = SubResource( 3 ) anims/idle = SubResource( 4 ) anims/idle_weapon = SubResource( 5 ) anims/jumping = SubResource( 6 ) anims/jumping_weapon = SubResource( 7 ) anims/run = SubResource( 8 ) anims/run_weapon = SubResource( 9 ) anims/standing_weapon_ready = SubResource( 10 ) playback/active = true playback/speed = 2.0 blend_times = [ ] autoplay = "" [node name="camera" type="Camera2D" parent="."] anchor_mode = 1 rotating = false current = true zoom = Vector2( 1, 1 ) limit_left = 0 limit_top = 0 limit_right = 10000000 limit_bottom = 10000000 limit_smoothed = false drag_margin_h_enabled = true drag_margin_v_enabled = true smoothing_enabled = false smoothing_speed = 5.0 drag_margin_left = 0.2 drag_margin_top = 0.2 drag_margin_right = 0.2 drag_margin_bottom = 0.2 editor_draw_screen = true editor_draw_limits = false editor_draw_drag_margin = false [node name="CollisionShape2D" type="CollisionShape2D" parent="."] position = Vector2( 0.291992, -0.835023 ) shape = SubResource( 11 ) [node name="sound_jump" type="AudioStreamPlayer2D" parent="."] stream = ExtResource( 3 ) volume_db = 0.0 autoplay = false max_distance = 2000.0 attenuation = 1.0 bus = "Master" area_mask = 1 [node name="sound_shoot" type="AudioStreamPlayer2D" parent="."] stream = ExtResource( 4 ) volume_db = 0.0 autoplay = false max_distance = 2000.0 attenuation = 1.0 bus = "Master" area_mask = 1 [node name="ui" type="CanvasLayer" parent="."] layer = 0 offset = Vector2( 0, 0 ) rotation = 0.0 scale = Vector2( 1, 1 ) [node name="left" type="TouchScreenButton" parent="ui"] position = Vector2( 27.7593, 360.87 ) scale = Vector2( 1.49157, 1.46265 ) normal = ExtResource( 5 ) pressed = null bitmask = null shape = null shape_centered = true shape_visible = true passby_press = true action = "move_left" visibility_mode = 1 [node name="right" type="TouchScreenButton" parent="ui"] position = Vector2( 121.542, 361.415 ) scale = Vector2( 1.49157, 1.46265 ) normal = ExtResource( 6 ) pressed = null bitmask = null shape = null shape_centered = true shape_visible = true passby_press = true action = "move_right" visibility_mode = 1 [node name="jump" type="TouchScreenButton" parent="ui"] position = Vector2( 666.224, 359.02 ) scale = Vector2( 1.49157, 1.46265 ) normal = ExtResource( 7 ) pressed = null bitmask = null shape = null shape_centered = true shape_visible = true passby_press = false action = "jump" visibility_mode = 1 [node name="fire" type="TouchScreenButton" parent="ui"] position = Vector2( 668.073, 262.788 ) scale = Vector2( 1.49157, 1.46265 ) normal = ExtResource( 8 ) pressed = null bitmask = null shape = null shape_centered = true shape_visible = true passby_press = false action = "shoot" visibility_mode = 1