2024-08-08 15:23:31 +00:00
|
|
|
[gd_scene load_steps=11 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-08 04:13:53 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://ds40mib6ur8yf" path="res://Scenes/Bullet.tscn" id="2_nmop0"]
|
2024-08-08 15:23:31 +00:00
|
|
|
[ext_resource type="PackedScene" uid="uid://nu34biv4xo5k" path="res://Scenes/Brick.tscn" id="3_6sbto"]
|
2024-08-05 11:08:28 +00:00
|
|
|
[ext_resource type="Script" path="res://Scripts/Logic/PlayerInput.cs" id="3_tvoua"]
|
2024-08-08 04:13:53 +00:00
|
|
|
[ext_resource type="Script" path="res://Scripts/Effects/CameraShake.cs" id="4_fwngj"]
|
2024-08-04 15:00:26 +00:00
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_68yf8"]
|
2024-08-08 07:20:09 +00:00
|
|
|
radius = 25.6
|
2024-08-04 15:00:26 +00:00
|
|
|
|
2024-08-08 04:13:53 +00:00
|
|
|
[sub_resource type="FastNoiseLite" id="FastNoiseLite_cfnx7"]
|
|
|
|
|
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
|
2024-08-08 05:18:09 +00:00
|
|
|
properties/2/path = NodePath("RotationCentre:rotation")
|
|
|
|
properties/2/spawn = true
|
|
|
|
properties/2/replication_mode = 1
|
2024-08-08 07:20:09 +00:00
|
|
|
properties/3/path = NodePath(".:PlayerName")
|
|
|
|
properties/3/spawn = true
|
|
|
|
properties/3/replication_mode = 1
|
|
|
|
properties/4/path = NodePath(".:Health")
|
|
|
|
properties/4/spawn = true
|
|
|
|
properties/4/replication_mode = 1
|
|
|
|
properties/5/path = NodePath(".:MaxHealth")
|
|
|
|
properties/5/spawn = true
|
|
|
|
properties/5/replication_mode = 1
|
|
|
|
properties/6/path = NodePath(".:ActionPoints")
|
|
|
|
properties/6/spawn = true
|
|
|
|
properties/6/replication_mode = 1
|
|
|
|
properties/7/path = NodePath(".:MaxActionPoints")
|
|
|
|
properties/7/spawn = true
|
|
|
|
properties/7/replication_mode = 1
|
|
|
|
properties/8/path = NodePath(".:AmmoAmount")
|
|
|
|
properties/8/spawn = true
|
|
|
|
properties/8/replication_mode = 1
|
|
|
|
properties/9/path = NodePath(".:MaxAmmoAmount")
|
|
|
|
properties/9/spawn = true
|
|
|
|
properties/9/replication_mode = 1
|
2024-08-05 11:08:28 +00:00
|
|
|
|
|
|
|
[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
|
|
|
|
|
2024-08-05 15:54:22 +00:00
|
|
|
[node name="Player" type="CharacterBody2D" node_paths=PackedStringArray("PlayerCamera", "PlayerInput")]
|
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-08 04:13:53 +00:00
|
|
|
BulletScene = ExtResource("2_nmop0")
|
2024-08-08 15:23:31 +00:00
|
|
|
TileScene = ExtResource("3_6sbto")
|
|
|
|
TileSize = 50.0
|
2024-08-04 15:00:26 +00:00
|
|
|
|
2024-08-08 07:20:09 +00:00
|
|
|
[node name="Overlay" type="VBoxContainer" parent="."]
|
2024-08-08 05:18:09 +00:00
|
|
|
offset_left = -90.0
|
2024-08-08 07:20:09 +00:00
|
|
|
offset_top = -86.0
|
2024-08-08 05:18:09 +00:00
|
|
|
offset_right = 90.0
|
2024-08-08 07:20:09 +00:00
|
|
|
offset_bottom = -26.0
|
2024-08-08 05:18:09 +00:00
|
|
|
theme_override_constants/separation = 4
|
2024-08-08 04:42:48 +00:00
|
|
|
alignment = 1
|
|
|
|
|
2024-08-08 07:20:09 +00:00
|
|
|
[node name="NameTag" type="Label" parent="Overlay"]
|
2024-08-08 04:42:48 +00:00
|
|
|
layout_mode = 2
|
|
|
|
text = "Player"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
vertical_alignment = 1
|
|
|
|
clip_text = true
|
|
|
|
|
2024-08-08 07:20:09 +00:00
|
|
|
[node name="HealthBar" type="ProgressBar" parent="Overlay"]
|
2024-08-08 05:18:09 +00:00
|
|
|
custom_minimum_size = Vector2(2.08165e-12, 8)
|
2024-08-08 04:42:48 +00:00
|
|
|
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"]
|
2024-08-04 15:00:26 +00:00
|
|
|
position = Vector2(2.08165e-12, 2.08165e-12)
|
2024-08-08 07:20:09 +00:00
|
|
|
scale = Vector2(0.05, 0.05)
|
2024-08-04 15:00:26 +00:00
|
|
|
texture = ExtResource("1_cqpqa")
|
|
|
|
|
2024-08-08 04:42:48 +00:00
|
|
|
[node name="Muzzle" type="Marker2D" parent="RotationCentre"]
|
|
|
|
position = Vector2(2.08165e-12, -20)
|
|
|
|
|
2024-08-04 15:00:26 +00:00
|
|
|
[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-08 04:13:53 +00:00
|
|
|
script = ExtResource("4_fwngj")
|
|
|
|
Noise = SubResource("FastNoiseLite_cfnx7")
|
|
|
|
|
2024-08-08 09:10:48 +00:00
|
|
|
[node name="ReloadTimer" type="Timer" parent="."]
|
|
|
|
wait_time = 6.0
|
|
|
|
one_shot = 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
|
|
|
|
2024-08-08 05:18:09 +00:00
|
|
|
[node name="ProtectionCountdown" type="Timer" parent="."]
|
|
|
|
wait_time = 0.05
|
|
|
|
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")
|