Fix maze floor
This commit is contained in:
@@ -116,7 +116,7 @@ Sproingy = 1.0
|
||||
[node name="Floor06" type="Node" parent="MapOrder"]
|
||||
script = ExtResource("2_00xd7")
|
||||
FolderName = "Floor06"
|
||||
FloorOdds = Array[float]([0.2, 0.8])
|
||||
FloorOdds = Array[float]([0.2, 0.8, 0.5, 0.1])
|
||||
Sproingy = 1.0
|
||||
|
||||
[node name="Floor07" type="Node" parent="MapOrder"]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=14 format=3 uid="uid://bb5xm6p81w671"]
|
||||
[gd_scene load_steps=18 format=3 uid="uid://bb5xm6p81w671"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dwt6302nsf4vq" path="res://src/map/dungeon/code/DungeonFloor.cs" id="1_giyav"]
|
||||
[ext_resource type="PackedScene" uid="uid://dpec2lbt83dhe" path="res://src/map/dungeon/rooms/Set A/03. Antechamber A.tscn" id="2_tmolq"]
|
||||
@@ -13,6 +13,16 @@
|
||||
[ext_resource type="PackedScene" uid="uid://dv6umo0bmlyyj" path="res://src/map/dungeon/rooms/Set A/01. Small Block A1.tscn" id="11_uvfam"]
|
||||
[ext_resource type="PackedScene" uid="uid://cdkcvd7pwmr2r" path="res://src/map/dungeon/door/DOORA.tscn" id="11_xhpnf"]
|
||||
[ext_resource type="PackedScene" uid="uid://cxwyge2s1yswu" path="res://src/map/Placeables/A1-Socket.tscn" id="13_buew1"]
|
||||
[ext_resource type="PackedScene" uid="uid://biknctxhhf8g" path="res://src/minimap/Reveal Map.tscn" id="14_csng8"]
|
||||
[ext_resource type="Texture2D" uid="uid://chq0uk6hklu5p" path="res://src/map/dungeon/models/Area 2/Gesthemii/A2-Gesthemii_puli.png" id="15_buew1"]
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_tmm58"]
|
||||
shading_mode = 0
|
||||
albedo_texture = ExtResource("15_buew1")
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_iert2"]
|
||||
material = SubResource("StandardMaterial3D_tmm58")
|
||||
size = Vector2(150, 150)
|
||||
|
||||
[node name="Floor1a" type="Node3D"]
|
||||
script = ExtResource("1_giyav")
|
||||
@@ -87,3 +97,11 @@ transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 14.063
|
||||
|
||||
[node name="Node3D11" parent="." instance=ExtResource("13_buew1")]
|
||||
transform = Transform3D(0.96, 0, 0, 0, 1, 0, 0, 0, 1, -28.008, 0.0418303, 59.8829)
|
||||
|
||||
[node name="Node3D12" parent="." instance=ExtResource("14_csng8")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -130, 0, -16)
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -48, -2, 60)
|
||||
layers = 2
|
||||
mesh = SubResource("PlaneMesh_iert2")
|
||||
|
||||
File diff suppressed because one or more lines are too long
562
Zennysoft.Game.Ma/src/map/dungeon/rooms/Set A/MazeFloor.tscn
Normal file
562
Zennysoft.Game.Ma/src/map/dungeon/rooms/Set A/MazeFloor.tscn
Normal file
File diff suppressed because one or more lines are too long
@@ -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")
|
||||
|
||||
21
Zennysoft.Game.Ma/src/minimap/MapRevealerCube.cs
Normal file
21
Zennysoft.Game.Ma/src/minimap/MapRevealerCube.cs
Normal 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();
|
||||
}
|
||||
1
Zennysoft.Game.Ma/src/minimap/MapRevealerCube.cs.uid
Normal file
1
Zennysoft.Game.Ma/src/minimap/MapRevealerCube.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://bd4q02maxynl3
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user