Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
170 changes: 170 additions & 0 deletions prefabs/spaces/conspiracy.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
[gd_scene format=3 uid="uid://b63r17aoq4ulj"]

[ext_resource type="Script" uid="uid://x0340t34h0g0" path="res://scripts/spaces/Conspiracy.cs" id="1_f3k8h"]
[ext_resource type="Texture2D" uid="uid://drdy0vqnqfkt0" path="res://textures/spaces/conspiracy/Illuminati.png" id="2_v26q4"]
[ext_resource type="Texture2D" uid="uid://bp8o83a0vokqg" path="res://textures/spaces/conspiracy/Scroll.png" id="3_em4na"]
[ext_resource type="Texture2D" uid="uid://b5wk51axojb11" path="res://textures/spaces/conspiracy/Money.png" id="3_mirhg"]
[ext_resource type="Texture2D" uid="uid://buhmtw5a1yrnq" path="res://textures/spaces/conspiracy/Globe.png" id="3_ycx0p"]
[ext_resource type="Texture2D" uid="uid://k2srca1qh3b2" path="res://textures/spaces/conspiracy/Front.png" id="4_xo752"]
[ext_resource type="Texture2D" uid="uid://bkitmwuvjiuqb" path="res://textures/spaces/conspiracy/back.png" id="5_iimi0"]

[sub_resource type="Environment" id="Environment_n6lso"]
background_mode = 1
background_color = Color(0.06053035, 0.06053035, 0.060530342, 1)
glow_intensity = 1.5
glow_bloom = 0.15
fog_enabled = true
fog_light_color = Color(0.05882353, 0.05882353, 0.05882353, 1)
fog_light_energy = 0.1
fog_density = 0.05

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_fp3uj"]
render_priority = 1
transparency = 1
cull_mode = 2
shading_mode = 0
disable_fog = true
albedo_texture = ExtResource("2_v26q4")
stencil_flags = 2

[sub_resource type="PlaneMesh" id="PlaneMesh_gdxgs"]
lightmap_size_hint = Vector2i(12, 12)
material = SubResource("StandardMaterial3D_fp3uj")

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_617tn"]
render_priority = 1
transparency = 1
cull_mode = 2
shading_mode = 0
disable_fog = true
albedo_texture = ExtResource("3_mirhg")
stencil_flags = 2

[sub_resource type="PlaneMesh" id="PlaneMesh_cc1be"]
lightmap_size_hint = Vector2i(12, 12)
material = SubResource("StandardMaterial3D_617tn")

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_mbtdg"]
render_priority = 1
transparency = 1
cull_mode = 2
shading_mode = 0
disable_fog = true
albedo_texture = ExtResource("3_ycx0p")
stencil_flags = 2

[sub_resource type="PlaneMesh" id="PlaneMesh_fhhd8"]
lightmap_size_hint = Vector2i(12, 12)
material = SubResource("StandardMaterial3D_mbtdg")

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_rc4du"]
transparency = 1
cull_mode = 2
shading_mode = 0
diffuse_mode = 1
disable_fog = true
albedo_texture = ExtResource("3_em4na")
uv1_scale = Vector3(1, 10, 0)

[sub_resource type="PlaneMesh" id="PlaneMesh_fp3uj"]
material = SubResource("StandardMaterial3D_rc4du")

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ay2bh"]
transparency = 1
shading_mode = 0
albedo_texture = ExtResource("4_xo752")
uv1_scale = Vector3(1, 20, 1)

[sub_resource type="PlaneMesh" id="PlaneMesh_rc4du"]
material = SubResource("StandardMaterial3D_ay2bh")

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_qdw3y"]
transparency = 1
shading_mode = 0
albedo_texture = ExtResource("5_iimi0")
uv1_scale = Vector3(1, 20, 1)

[sub_resource type="PlaneMesh" id="PlaneMesh_xig5v"]
lightmap_size_hint = Vector2i(12, 12)
material = SubResource("StandardMaterial3D_qdw3y")

[node name="Conspiracy" type="Node3D" unique_id=1958332010]
script = ExtResource("1_f3k8h")

[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=495103429]
environment = SubResource("Environment_n6lso")

[node name="Icons" type="Node3D" parent="." unique_id=256731023]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -3.954605)

[node name="RIllu" type="MeshInstance3D" parent="Icons" unique_id=1690814416]
transform = Transform3D(5.8470845, -4.6656594, -0.541502, 0.3267105, 1.2665545, -7.3850555, 4.6856003, 5.733887, 1.1906635, 32.59851, -11.157616, -31.747986)
transparency = 0.5
cast_shadow = 0
mesh = SubResource("PlaneMesh_gdxgs")
skeleton = NodePath("")

[node name="RMoney" type="MeshInstance3D" parent="Icons" unique_id=992529906]
transform = Transform3D(2.9223795, -2.7311902, -0.017496193, -0.50015396, -0.5099538, -3.935709, 2.6850605, 2.8775966, -0.7140733, 26.030668, 4.7692785, -20.048704)
transparency = 0.5
cast_shadow = 0
mesh = SubResource("PlaneMesh_cc1be")
skeleton = NodePath("")

[node name="RGlobe" type="MeshInstance3D" parent="Icons" unique_id=504987486]
transform = Transform3D(3.4610326, -1.969467, 0.37743923, -0.488691, -1.5585567, -3.6513133, 1.9448497, 3.1132152, -1.5891691, 20, 16, -24)
transparency = 0.5
cast_shadow = 0
custom_aabb = AABB(0, 0, 0, 0, 10, 0)
mesh = SubResource("PlaneMesh_fhhd8")
skeleton = NodePath("")

[node name="LIllu" type="MeshInstance3D" parent="Icons" unique_id=2057192540]
transform = Transform3D(5.621934, 4.7847614, -1.3228353, 0.40752319, -2.4366205, -7.081439, -4.947502, 5.236306, -2.0864563, -32, 15, -30)
transparency = 0.5
cast_shadow = 0
mesh = SubResource("PlaneMesh_gdxgs")

[node name="LMoney" type="MeshInstance3D" parent="Icons" unique_id=1366443893]
transform = Transform3D(2.8191392, 2.7699506, 0.6163019, 0.4957598, 0.37461472, -3.9514437, -2.7940428, 2.8613024, -0.07928384, -26.6644, -3.938541, -20.045391)
transparency = 0.5
cast_shadow = 0
mesh = SubResource("PlaneMesh_cc1be")
skeleton = NodePath("")

[node name="LGlobe" type="MeshInstance3D" parent="Icons" unique_id=797287533]
transform = Transform3D(3.384025, 1.9644992, 0.8301336, -0.0761631, 1.6672957, -3.6351528, -2.1313324, 3.0595553, 1.4479486, -19.999998, -16, -23.999996)
transparency = 0.5
cast_shadow = 0
custom_aabb = AABB(0, 0, 0, 0, 10, 0)
mesh = SubResource("PlaneMesh_fhhd8")
skeleton = NodePath("")

[node name="ScrollingQuestionMarks" type="Node3D" parent="." unique_id=402794691]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -3.954605)

[node name="Left" type="MeshInstance3D" parent="ScrollingQuestionMarks" unique_id=2139618599]
transform = Transform3D(7.3954983, 6.7292447, 1.5452654, 0.013135073, 0.21514565, -99.97681, -6.7310066, 7.393984, 1.5027192, -36, 13, -36)
transparency = 0.95
mesh = SubResource("PlaneMesh_fp3uj")
skeleton = NodePath("../../Icons")

[node name="Right" type="MeshInstance3D" parent="ScrollingQuestionMarks" unique_id=1278742386]
transform = Transform3D(7.3962126, -6.7285557, -1.5013845, -0.012785042, 0.20903364, -99.97806, 6.7302165, 7.3947835, 1.4600326, 36, 13, -36)
transparency = 0.95
mesh = SubResource("PlaneMesh_fp3uj")

[node name="ScrollingText" type="Node3D" parent="." unique_id=76553647]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2.5, -50)

[node name="Top" type="MeshInstance3D" parent="ScrollingText" unique_id=2040982941]
transform = Transform3D(5, 0, 0, 0, 5, 0, 0, 0, 80, 0, -3.262, 0)
transparency = 0.9
visibility_range_fade_mode = 1
mesh = SubResource("PlaneMesh_rc4du")

[node name="Bottom" type="MeshInstance3D" parent="ScrollingText" unique_id=622556042]
transform = Transform3D(5, 0, 0, 0, 5, 0, 0, 0, 80, -0.6745815, -4.4326196, 0)
transparency = 0.95
visibility_range_fade_mode = 1
mesh = SubResource("PlaneMesh_xig5v")
4 changes: 2 additions & 2 deletions prefabs/spaces/galaxy.tscn
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[gd_scene format=4 uid="uid://bjvwg8rpogjo2"]

[ext_resource type="Script" uid="uid://dhxblx0bm60g6" path="res://scripts/spaces/Galaxy.cs" id="1_6wq32"]
[ext_resource type="Texture2D" uid="uid://drj0rof0q81b5" path="res://textures/galaxy_skybox.png" id="2_6wq32"]
[ext_resource type="Texture2D" uid="uid://d4n3duxjt288o" path="res://textures/galaxy_rainbow.png" id="3_tgxn1"]
[ext_resource type="Texture2D" uid="uid://drj0rof0q81b5" path="res://textures/spaces/galaxy/galaxy_skybox.png" id="2_6wq32"]
[ext_resource type="Texture2D" uid="uid://d4n3duxjt288o" path="res://textures/spaces/galaxy/galaxy_rainbow.png" id="3_tgxn1"]

[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_rhgfa"]
panorama = ExtResource("2_6wq32")
Expand Down
2 changes: 1 addition & 1 deletion prefabs/spaces/grid.tscn
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[gd_scene format=3 uid="uid://dtkff13bgd1u4"]

[ext_resource type="Script" uid="uid://bxx72dwqlrh2o" path="res://scripts/spaces/Grid.cs" id="1_wac2s"]
[ext_resource type="Texture2D" uid="uid://cnqebcj2iorfr" path="res://textures/grid_tile.png" id="2_83vuq"]
[ext_resource type="Texture2D" uid="uid://cnqebcj2iorfr" path="res://textures/spaces/grid/grid_tile.png" id="2_83vuq"]

[sub_resource type="Environment" id="Environment_ge866"]
ambient_light_source = 1
Expand Down
6 changes: 3 additions & 3 deletions prefabs/spaces/tunnel.tscn
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[gd_scene format=3 uid="uid://deift37sj4byw"]

[ext_resource type="Script" uid="uid://dppxcyrky5dtp" path="res://scripts/spaces/Tunnel.cs" id="1_hk1of"]
[ext_resource type="Texture2D" uid="uid://rvoiaddddovf" path="res://textures/tunnel_ring_b.png" id="2_5m0re"]
[ext_resource type="Texture2D" uid="uid://dj66qsxt3lvm5" path="res://textures/tunnel_space_a.png" id="3_frc3x"]
[ext_resource type="Texture2D" uid="uid://frwrbwqgan5x" path="res://textures/tunnel_neonroad.png" id="4_5ioxn"]
[ext_resource type="Texture2D" uid="uid://rvoiaddddovf" path="res://textures/spaces/tunnel/tunnel_ring_b.png" id="2_5m0re"]
[ext_resource type="Texture2D" uid="uid://dj66qsxt3lvm5" path="res://textures/spaces/tunnel/tunnel_space_a.png" id="3_frc3x"]
[ext_resource type="Texture2D" uid="uid://frwrbwqgan5x" path="res://textures/spaces/tunnel/tunnel_neonroad.png" id="4_5ioxn"]

[sub_resource type="Environment" id="Environment_i2qd1"]
ambient_light_source = 1
Expand Down
27 changes: 3 additions & 24 deletions scenes/game.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,7 @@ font_size = 50

[sub_resource type="LabelSettings" id="LabelSettings_pause_counter_title"]
font = ExtResource("12_axsek")
font_size = 20

[sub_resource type="LabelSettings" id="LabelSettings_pause_counter_value"]
font = ExtResource("12_axsek")
font_size = 42
font_size = 50

[sub_resource type="ViewportTexture" id="ViewportTexture_suyxu"]
viewport_path = NodePath("Runner/HUD/PanelRight/PanelRightViewport")
Expand Down Expand Up @@ -423,7 +419,7 @@ text = "1x"
label_settings = SubResource("LabelSettings_usmyc")
horizontal_alignment = 1

[node name="PauseTitle" type="Label" parent="Runner/HUD/PanelLeft/PanelLeftViewport" unique_id=531787894]
[node name="ComboCount" type="Label" parent="Runner/HUD/PanelLeft/PanelLeftViewport" unique_id=531787894]
visible = false
anchors_preset = -1
anchor_left = 0.5
Expand All @@ -436,25 +432,8 @@ offset_right = 90.0
offset_bottom = 18.0
grow_horizontal = 2
grow_vertical = 2
text = "PAUSES"
label_settings = SubResource("LabelSettings_pause_counter_title")
horizontal_alignment = 1

[node name="PauseCount" type="Label" parent="Runner/HUD/PanelLeft/PanelLeftViewport" unique_id=1695472366]
visible = false
anchors_preset = -1
anchor_left = 0.5
anchor_top = 0.93
anchor_right = 0.5
anchor_bottom = 0.93
offset_left = -90.0
offset_top = -26.0
offset_right = 90.0
offset_bottom = 26.0
grow_horizontal = 2
grow_vertical = 2
text = "0"
label_settings = SubResource("LabelSettings_pause_counter_value")
label_settings = SubResource("LabelSettings_pause_counter_title")
horizontal_alignment = 1

[node name="PanelRight" type="MeshInstance3D" parent="Runner/HUD" unique_id=1993445313]
Expand Down
18 changes: 16 additions & 2 deletions scripts/database/settings/SettingsProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,12 @@ public partial class SettingsProfile
[Order]
public SettingsItem<bool> SuperSimpleHUD { get; private set; }

/// <summary>
/// Moves the Combo Counter to the HUD
/// </summary>
[Order]
public SettingsItem<bool> AltComboCounter { get; private set; }

/// <summary>
/// Toggles a popup on a hit
/// </summary>
Expand Down Expand Up @@ -614,7 +620,7 @@ public SettingsProfile()
UpdateAction = (_, init) => { if (!init) { SkinManager.Load(); } },
List = new("skin")
{
Values = ["skin", "void", "grid", "squircles", "waves", "galaxy", "tunnel", "tritunnel", "vortex", "solid", "relic"]
Values = ["skin", "void", "grid", "squircles", "waves", "galaxy", "tunnel", "tritunnel", "vortex", "solid", "relic", "conspiracy"]
}
};

Expand All @@ -627,7 +633,7 @@ public SettingsProfile()
UpdateAction = (_, init) => { if (!init) { SkinManager.Load(); } },
List = new("skin")
{
Values = ["skin", "void", "grid", "squircles", "waves", "galaxy", "tunnel", "tritunnel", "vortex", "solid", "relic"]
Values = ["skin", "void", "grid", "squircles", "waves", "galaxy", "tunnel", "tritunnel", "vortex", "solid", "relic", "conspiracy"]
}
};

Expand Down Expand Up @@ -857,6 +863,14 @@ public SettingsProfile()
Section = SettingsSection.Visual,
};

AltComboCounter = new(false)
{
Id = "AltComboCounter",
Title = "Alt. Combo Counter",
Description = "Moves the Combo Counter to the HUD",
Section = SettingsSection.Visual,
};

HitPopups = new(true)
{
Id = "HitPopups",
Expand Down
6 changes: 3 additions & 3 deletions scripts/game/ui/Combo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ public override void OnExitTree()
public override void Init()
{
label = GetNode<Label3D>("Label");

if (Runner.Attempt.Settings.SuperSimpleHUD)
label.Visible = Runner.Attempt.Settings.SuperSimpleHUD ? false : true;
if (!Runner.Attempt.Settings.SuperSimpleHUD)
{
label.Visible = false;
label.Visible = Runner.Attempt.Settings.AltComboCounter ? false : true;
}

Runner.AttemptStatsUpdated += OnStatsUpdated;
Expand Down
7 changes: 2 additions & 5 deletions scripts/game/ui/HealthBar.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,8 @@ public override void Init()

healthBarTexture.Modulate = new(0xffffffff);

if (Runner.Attempt.Settings.SuperSimpleHUD)
{
healthBarTexture.Visible = false;
healthBarBGTexture.Visible = false;
}
healthBarTexture.Visible = !Runner.Attempt.Settings.SuperSimpleHUD;
healthBarBGTexture.Visible = !Runner.Attempt.Settings.SuperSimpleHUD;

Runner.AttemptStatsUpdated += OnStatsUpdated;
}
Expand Down
14 changes: 10 additions & 4 deletions scripts/game/ui/PanelLeft.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public partial class PanelLeft : UIComponent
private Tween multiplierTween;

private Label score, multiplier;
private Label altCombo;

public override void _ExitTree()
{
Expand All @@ -25,6 +26,7 @@ public override void Init()
viewport.GetNode<TextureRect>("Background").Texture = SkinManager.Instance.Skin.PanelLeftBackgroundImage;
score = viewport.GetNode<Label>("Score");
multiplier = viewport.GetNode<Label>("Multiplier");
altCombo = viewport.GetNode<Label>("ComboCount");

multiplierProgressMaterial = viewport.GetNode<Panel>("MultiplierProgress").Material as ShaderMaterial;
multiplierProgressMaterial.SetShaderParameter("progress", targetMultiplierProgress);
Expand All @@ -33,12 +35,15 @@ public override void Init()

Runner.AttemptStatsUpdated += OnStatsUpdated;

if (Runner.Attempt.Settings.SimpleHUD || Runner.Attempt.Settings.SuperSimpleHUD)
bool isVisible = !Runner.Attempt.Settings.SimpleHUD && !Runner.Attempt.Settings.SuperSimpleHUD;

Godot.Collections.Array<Node> widgets = viewport.GetChildren();
foreach (Node widget in widgets)
{
Godot.Collections.Array<Node> widgets = viewport.GetChildren();
foreach (Node widget in widgets)
(widget as CanvasItem).Visible = false;
(widget as CanvasItem).Visible = isVisible;
}

altCombo.Visible = isVisible && Runner.Attempt.Settings.AltComboCounter;
}

public override void _PhysicsProcess(double delta)
Expand All @@ -53,6 +58,7 @@ public void OnStatsUpdated(Attempt attempt)
{
score.Text = Util.String.PadMagnitude(attempt.Score.ToString());
multiplier.Text = $"{attempt.ComboMultiplier}x";
altCombo.Text = $"{attempt.Combo}";

targetMultiplierProgress = (float)attempt.ComboMultiplierProgress / attempt.ComboMultiplierIncrement;

Expand Down
10 changes: 5 additions & 5 deletions scripts/game/ui/PanelRight.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ public override void Init()
Runner.AttemptStatsUpdated += OnStatsUpdated;
Runner.HitResultChanged += OnHitStateChanged;

if (Runner.Attempt.Settings.SimpleHUD || Runner.Attempt.Settings.SuperSimpleHUD)
bool isVisible = !Runner.Attempt.Settings.SimpleHUD && !Runner.Attempt.Settings.SuperSimpleHUD;

Godot.Collections.Array<Node> widgets = viewport.GetChildren();
foreach (Node widget in widgets)
{
Godot.Collections.Array<Node> widgets = viewport.GetChildren();
foreach (Node widget in widgets)
(widget as CanvasItem).Visible = false;
simpleMisses.Visible = true;
(widget as CanvasItem).Visible = isVisible;
}
}

Expand Down
Loading
Loading