[gd_scene load_steps=10 format=3 uid="uid://b3gx0bl43lku3"] [ext_resource type="Script" path="res://Scripts/Player.cs" id="1_0btyt"] [ext_resource type="Texture2D" uid="uid://c4als6t3k4myc" path="res://Sprites/Player.png" id="1_cqpqa"] [ext_resource type="PackedScene" uid="uid://ds40mib6ur8yf" path="res://Scenes/Bullet.tscn" id="2_nmop0"] [ext_resource type="Script" path="res://Scripts/Logic/PlayerInput.cs" id="3_tvoua"] [ext_resource type="Script" path="res://Scripts/Effects/CameraShake.cs" id="4_fwngj"] [sub_resource type="CircleShape2D" id="CircleShape2D_68yf8"] radius = 20.48 [sub_resource type="FastNoiseLite" id="FastNoiseLite_cfnx7"] [sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_bekoo"] properties/0/path = NodePath(".:position") properties/0/spawn = true properties/0/replication_mode = 1 properties/1/path = NodePath(".:PlayerId") properties/1/spawn = true properties/1/replication_mode = 1 [sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_hojn2"] properties/0/path = NodePath("InputSynchronizer:IsDashing") properties/0/spawn = true properties/0/replication_mode = 1 properties/1/path = NodePath("InputSynchronizer:MovementDirection") properties/1/spawn = true properties/1/replication_mode = 1 [node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("PlayerCamera", "PlayerInput")] script = ExtResource("1_0btyt") PlayerCamera = NodePath("Camera2D") PlayerInput = NodePath("InputSynchronizer") BulletScene = ExtResource("2_nmop0") [node name="HUD" type="VBoxContainer" parent="."] offset_left = -70.0 offset_top = -80.0 offset_right = 70.0 offset_bottom = -20.0 theme_override_constants/separation = 6 alignment = 1 [node name="NameTag" type="Label" parent="HUD"] layout_mode = 2 text = "Player" horizontal_alignment = 1 vertical_alignment = 1 clip_text = true [node name="HealthBar" type="ProgressBar" parent="HUD"] layout_mode = 2 rounded = true allow_greater = true allow_lesser = true show_percentage = false [node name="RotationCentre" type="Node2D" parent="."] [node name="Sprite2D" type="Sprite2D" parent="RotationCentre"] position = Vector2(2.08165e-12, 2.08165e-12) scale = Vector2(0.04, 0.04) texture = ExtResource("1_cqpqa") [node name="Muzzle" type="Marker2D" parent="RotationCentre"] position = Vector2(2.08165e-12, -20) [node name="CollisionShape2D" type="CollisionShape2D" parent="."] shape = SubResource("CircleShape2D_68yf8") [node name="Camera2D" type="Camera2D" parent="."] enabled = false process_callback = 0 position_smoothing_enabled = true rotation_smoothing_enabled = true script = ExtResource("4_fwngj") Noise = SubResource("FastNoiseLite_cfnx7") [node name="DashCountdown" type="Timer" parent="."] one_shot = true [node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."] replication_config = SubResource("SceneReplicationConfig_bekoo") [node name="InputSynchronizer" type="MultiplayerSynchronizer" parent="."] replication_config = SubResource("SceneReplicationConfig_hojn2") script = ExtResource("3_tvoua")