Fix maze floor

This commit is contained in:
2026-01-25 16:56:05 -08:00
parent 79dd6eb33a
commit 2622ed4423
8 changed files with 628 additions and 550 deletions

View File

@@ -1,4 +1,9 @@
[gd_scene load_steps=4 format=3 uid="uid://jx4x2weyky45"]
[gd_scene load_steps=5 format=3 uid="uid://jx4x2weyky45"]
[ext_resource type="Script" uid="uid://bd4q02maxynl3" path="res://src/minimap/MapRevealerCube.cs" id="1_sxj35"]
[sub_resource type="BoxShape3D" id="BoxShape3D_wug60"]
size = Vector3(4, 4, 4)
[sub_resource type="PlaneMesh" id="PlaneMesh_i1kg7"]
size = Vector2(4, 4)
@@ -7,17 +12,20 @@ size = Vector2(4, 4)
shading_mode = 0
albedo_color = Color(0, 0, 0, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_wug60"]
size = Vector3(4, 4, 4)
[node name="Reveal Cube" type="Node3D"]
script = ExtResource("1_sxj35")
[node name="Node3D" type="Node3D"]
[node name="Area3D" type="Area3D" parent="."]
unique_name_in_owner = true
collision_layer = 0
collision_mask = 64
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D"]
shape = SubResource("BoxShape3D_wug60")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
unique_name_in_owner = true
layers = 2
mesh = SubResource("PlaneMesh_i1kg7")
skeleton = NodePath("Area3D")
skeleton = NodePath("../Area3D")
surface_material_override/0 = SubResource("StandardMaterial3D_jqd72")
[node name="Area3D" type="Area3D" parent="MeshInstance3D"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/Area3D"]
shape = SubResource("BoxShape3D_wug60")

View File

@@ -0,0 +1,21 @@
using Chickensoft.AutoInject;
using Chickensoft.Introspection;
using Godot;
using System;
[Meta(typeof(IAutoNode))]
public partial class MapRevealerCube : Node3D
{
public override void _Notification(int what) => this.Notify(what);
[Node] public Area3D Area3D { get; set; }
[Node] public MeshInstance3D MeshInstance3D { get; set; }
public void OnReady()
{
Area3D.AreaEntered += Area3D_AreaEntered;
}
private void Area3D_AreaEntered(Area3D area) => MeshInstance3D.Hide();
}

View File

@@ -0,0 +1 @@
uid://bd4q02maxynl3

View File

@@ -2,7 +2,7 @@
[ext_resource type="PackedScene" uid="uid://jx4x2weyky45" path="res://src/minimap/Map Revealer Cube.tscn" id="1_np0l4"]
[node name="Node3D" type="Node3D"]
[node name="Reveal Map" type="Node3D"]
[node name="Node3D" parent="." instance=ExtResource("1_np0l4")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0, 2)