Player.tscn 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. [gd_scene load_steps=26 format=3 uid="uid://ijfntxr822tg"]
  2. [ext_resource type="Script" uid="uid://bmtn1x85p6i63" path="res://Scripts/Player.gd" id="1"]
  3. [ext_resource type="Script" uid="uid://bi11j8yvisf2u" path="res://Scripts/ui_handler.gd" id="2"]
  4. [ext_resource type="Texture2D" uid="uid://db1igregnmakb" path="res://Textures/Controls/MLG Hitmarker.png" id="3"]
  5. [ext_resource type="PackedScene" uid="uid://di1fvicjwhp2a" path="res://Scenes/pause_screen.tscn" id="4"]
  6. [ext_resource type="PackedScene" uid="uid://cjrl3cgbr8py5" path="res://Scenes/death_screen.tscn" id="5"]
  7. [ext_resource type="Script" uid="uid://qc7f0meblvt3" path="res://Scripts/Inventory.gd" id="6"]
  8. [ext_resource type="PackedScene" uid="uid://dmr0fcamx7t56" path="res://addons/virtual_joystick/virtual_joystick_scene.tscn" id="8"]
  9. [ext_resource type="Texture2D" uid="uid://cunjv0lj0krd1" path="res://Textures/Controls/jump.png" id="9"]
  10. [ext_resource type="Texture2D" uid="uid://clgt4oy12723p" path="res://Textures/Controls/jump_pressed.png" id="10"]
  11. [ext_resource type="Texture2D" uid="uid://bljc2vayshggi" path="res://Textures/Controls/reload.png" id="11"]
  12. [ext_resource type="Texture2D" uid="uid://u4gf0cr1rlrc" path="res://Textures/Controls/reload_pressed.png" id="12"]
  13. [ext_resource type="Texture2D" uid="uid://dg1br6xx7uc1t" path="res://Textures/Controls/interact.png" id="13"]
  14. [ext_resource type="Texture2D" uid="uid://bgytct4238m2b" path="res://Textures/Controls/interact_pressed.png" id="14"]
  15. [ext_resource type="Texture2D" uid="uid://dguwvgwjdjwe0" path="res://Textures/Controls/shoot.png" id="15"]
  16. [ext_resource type="Texture2D" uid="uid://cbq4ix6tjmf3k" path="res://Textures/Controls/shoot_pressed.png" id="16"]
  17. [ext_resource type="Texture2D" uid="uid://ch7lay8kmpcp3" path="res://Textures/Controls/pause.png" id="17"]
  18. [ext_resource type="Texture2D" uid="uid://ch3irnvh44bvu" path="res://Textures/Controls/pause_pressed.png" id="18"]
  19. [ext_resource type="AudioStream" uid="uid://bbr1enmvln5vj" path="res://Audio/sfx/footstep 1.wav" id="21_qidb7"]
  20. [ext_resource type="AudioStream" uid="uid://pjunjs66vfso" path="res://Audio/sfx/footstep 2.wav" id="22_70hv0"]
  21. [ext_resource type="AudioStream" uid="uid://vg1p1sp7i5sy" path="res://Audio/sfx/footstep 3.wav" id="23_8flut"]
  22. [ext_resource type="AudioStream" uid="uid://lguad0fwoc73" path="res://Audio/sfx/footstep 4.wav" id="24_u7x0b"]
  23. [sub_resource type="CapsuleMesh" id="CapsuleMesh_bn3cl"]
  24. [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_mf8yx"]
  25. radius = 0.224981
  26. [sub_resource type="CircleShape2D" id="CircleShape2D_j4t3y"]
  27. radius = 256.0
  28. [sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_utwlt"]
  29. streams_count = 4
  30. stream_0/stream = ExtResource("21_qidb7")
  31. stream_1/stream = ExtResource("22_70hv0")
  32. stream_2/stream = ExtResource("23_8flut")
  33. stream_3/stream = ExtResource("24_u7x0b")
  34. [node name="Player" type="CharacterBody3D"]
  35. process_mode = 1
  36. floor_max_angle = 1.22173
  37. script = ExtResource("1")
  38. [node name="MeshInstance3D" type="MeshInstance3D" parent="."]
  39. mesh = SubResource("CapsuleMesh_bn3cl")
  40. skeleton = NodePath("")
  41. [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
  42. shape = SubResource("CapsuleShape3D_mf8yx")
  43. [node name="Neck" type="Node3D" parent="."]
  44. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.549726, 0)
  45. [node name="Camera3D" type="Camera3D" parent="Neck"]
  46. fov = 90.0
  47. script = ExtResource("2")
  48. [node name="Pause Screen" parent="Neck/Camera3D" instance=ExtResource("4")]
  49. [node name="hitmarker" type="Sprite2D" parent="Neck/Camera3D"]
  50. position = Vector2(225, 200)
  51. scale = Vector2(0.0142857, 0.0142857)
  52. texture = ExtResource("3")
  53. [node name="objectives" type="Panel" parent="Neck/Camera3D"]
  54. visible = false
  55. offset_left = 260.0
  56. offset_top = 2.0
  57. offset_right = 451.0
  58. offset_bottom = 108.0
  59. mouse_filter = 2
  60. [node name="text" type="Label" parent="Neck/Camera3D/objectives"]
  61. layout_mode = 0
  62. offset_left = 4.0
  63. offset_top = -1.0
  64. offset_right = 87.0
  65. offset_bottom = 22.0
  66. text = "objectives:"
  67. [node name="container" type="BoxContainer" parent="Neck/Camera3D/objectives"]
  68. layout_mode = 0
  69. offset_left = 2.0
  70. offset_top = 21.0
  71. offset_right = 190.0
  72. offset_bottom = 106.0
  73. vertical = true
  74. [node name="Death Screen" parent="Neck/Camera3D" instance=ExtResource("5")]
  75. visible = false
  76. [node name="interaction" type="Label" parent="Neck/Camera3D"]
  77. offset_left = 130.0
  78. offset_top = 204.0
  79. offset_right = 321.0
  80. offset_bottom = 298.0
  81. horizontal_alignment = 1
  82. autowrap_mode = 2
  83. metadata/_edit_use_anchors_ = true
  84. [node name="inventory" type="HBoxContainer" parent="Neck/Camera3D"]
  85. offset_left = 230.0
  86. offset_top = 354.0
  87. offset_right = 446.0
  88. offset_bottom = 394.0
  89. alignment = 2
  90. script = ExtResource("6")
  91. [node name="AudioListener3D" type="AudioListener3D" parent="Neck/Camera3D"]
  92. current = true
  93. [node name="RayCast3D" type="RayCast3D" parent="Neck/Camera3D"]
  94. target_position = Vector3(0, 0, -200)
  95. [node name="mobile controls" type="CanvasLayer" parent="Neck/Camera3D"]
  96. visible = false
  97. [node name="Move" parent="Neck/Camera3D/mobile controls" instance=ExtResource("8")]
  98. anchors_preset = -1
  99. offset_top = -129.0
  100. offset_right = 297.0
  101. offset_bottom = 153.0
  102. scale = Vector2(0.45, 0.45)
  103. clampzone_size = 60.0
  104. metadata/_edit_use_anchors_ = true
  105. [node name="jump" type="TouchScreenButton" parent="Neck/Camera3D/mobile controls"]
  106. position = Vector2(370, 284)
  107. scale = Vector2(0.0976562, 0.0976562)
  108. texture_normal = ExtResource("9")
  109. texture_pressed = ExtResource("10")
  110. shape = SubResource("CircleShape2D_j4t3y")
  111. action = "jump"
  112. [node name="reload" type="TouchScreenButton" parent="Neck/Camera3D/mobile controls"]
  113. position = Vector2(327, 242)
  114. scale = Vector2(0.0703124, 0.0703124)
  115. texture_normal = ExtResource("11")
  116. texture_pressed = ExtResource("12")
  117. shape = SubResource("CircleShape2D_j4t3y")
  118. action = "reload"
  119. [node name="interact" type="TouchScreenButton" parent="Neck/Camera3D/mobile controls"]
  120. position = Vector2(309, 287)
  121. scale = Vector2(0.0976562, 0.0976562)
  122. texture_normal = ExtResource("13")
  123. texture_pressed = ExtResource("14")
  124. shape = SubResource("CircleShape2D_j4t3y")
  125. action = "interact"
  126. [node name="shoot" type="TouchScreenButton" parent="Neck/Camera3D/mobile controls"]
  127. position = Vector2(370, 222)
  128. scale = Vector2(0.0976562, 0.0976562)
  129. texture_normal = ExtResource("15")
  130. texture_pressed = ExtResource("16")
  131. shape = SubResource("CircleShape2D_j4t3y")
  132. action = "mobile_fire"
  133. [node name="pause" type="TouchScreenButton" parent="Neck/Camera3D/mobile controls"]
  134. position = Vector2(429, 5.96046e-08)
  135. scale = Vector2(0.0410156, 0.0410156)
  136. texture_normal = ExtResource("17")
  137. texture_pressed = ExtResource("18")
  138. shape = SubResource("CircleShape2D_j4t3y")
  139. action = "pause"
  140. [node name="Hand" type="Node3D" parent="Neck"]
  141. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.92744, -0.647957, -1.13801)
  142. [node name="footstep" type="AudioStreamPlayer3D" parent="."]
  143. transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1.01009, 0)
  144. stream = SubResource("AudioStreamRandomizer_utwlt")
  145. bus = &"Reverb"