Finished first EA Version #1
Binary file not shown.
@@ -1,4 +1,5 @@
|
||||
using Godot;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class DecorationHandler
|
||||
@@ -26,8 +27,6 @@ public class DecorationHandler
|
||||
|
||||
decoration.Position = placeholder.pos;
|
||||
|
||||
decoration.Rotate(Vector3.Up, Mathf.DegToRad(-90));
|
||||
|
||||
if (key == "light")
|
||||
{
|
||||
decoration.AddChild(new OmniLight3D()
|
||||
|
||||
@@ -6,7 +6,7 @@ public class Placeholder
|
||||
public Vector3 pos;
|
||||
|
||||
public Placeholder(string name, Vector3 pos){
|
||||
this.name = name;
|
||||
this.name = name.Split("_")[0];
|
||||
this.pos = pos;
|
||||
GD.Print($"Generated placeholder {this.name}");
|
||||
}
|
||||
|
||||
+7
-1
@@ -16,6 +16,12 @@ public partial class World : Node3D
|
||||
Layer layerNode;
|
||||
|
||||
private MultiMeshHandler multiMeshHandler;
|
||||
FastNoiseLite noise = new FastNoiseLite()
|
||||
{
|
||||
NoiseType = FastNoiseLite.NoiseTypeEnum.Perlin,
|
||||
Frequency = 0.05f,
|
||||
Seed = 1337
|
||||
};
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
@@ -80,6 +86,7 @@ public partial class World : Node3D
|
||||
if (Input.IsActionJustPressed("layer_down") && currentLayer < ruinSize - 1) currentLayer++;
|
||||
if (currentLayer != visibleLayer)
|
||||
{
|
||||
map[visibleLayer].ClearDecorations();
|
||||
HandleRenderData(BuildRenderData(currentLayer));
|
||||
visibleLayer = currentLayer;
|
||||
}
|
||||
@@ -109,7 +116,6 @@ public partial class World : Node3D
|
||||
for (int y = 0; y < layerSize; y++)
|
||||
{
|
||||
Tile tile = layer.tiles[x, y];
|
||||
|
||||
result.Add(new TileRenderData
|
||||
{
|
||||
Tile = tile,
|
||||
|
||||
Reference in New Issue
Block a user