AceField/Scenes/Player.tscn

55 lines
2.1 KiB
Plaintext
Raw Normal View History

2024-08-05 11:08:28 +00:00
[gd_scene load_steps=7 format=3 uid="uid://b3gx0bl43lku3"]
2024-08-04 15:00:26 +00:00
[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"]
2024-08-05 11:08:28 +00:00
[ext_resource type="Script" path="res://Scripts/Logic/PlayerInput.cs" id="3_tvoua"]
2024-08-04 15:00:26 +00:00
[sub_resource type="CircleShape2D" id="CircleShape2D_68yf8"]
radius = 26.0768
2024-08-05 11:08:28 +00:00
[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", "PlayerDashCountdown")]
2024-08-04 15:00:26 +00:00
script = ExtResource("1_0btyt")
2024-08-05 11:08:28 +00:00
PlayerCamera = NodePath("Camera2D")
PlayerInput = NodePath("InputSynchronizer")
2024-08-05 08:30:50 +00:00
PlayerDashCountdown = NodePath("DashCountdown")
2024-08-04 15:00:26 +00:00
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(2.08165e-12, 2.08165e-12)
scale = Vector2(0.05, 0.05)
texture = ExtResource("1_cqpqa")
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_68yf8")
2024-08-05 08:30:50 +00:00
2024-08-05 11:08:28 +00:00
[node name="Camera2D" type="Camera2D" parent="."]
enabled = false
process_callback = 0
position_smoothing_enabled = true
rotation_smoothing_enabled = true
2024-08-05 08:30:50 +00:00
[node name="DashCountdown" type="Timer" parent="."]
one_shot = true
2024-08-05 11:08:28 +00:00
[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")