Added basic symbols for most of the resources and changed map to be revealed whilst robots are exploring.

This commit is contained in:
=
2026-04-29 19:19:13 +02:00
parent c54ff3088e
commit 95455597da
25 changed files with 350 additions and 24 deletions
+20 -2
View File
@@ -1,3 +1,4 @@
using System;
using Godot;
using static GameData;
@@ -7,14 +8,31 @@ public partial class Camera3d : Camera3D
[Export] public float MouseSensitivity = 0.2f;
[Export] public float ScrollStrength = 5.0f;
private bool isShowingMap = false;
private Vector3 previousPosition;
private Vector2 _mouseDelta;
public override void _Process(double delta)
{
if (canMove) MoveCamera(delta);
if (Input.IsActionJustPressed("map"))
{
isShowingMap = !isShowingMap;
canMove = !isShowingMap;
if (isShowingMap)
{
previousPosition = Position;
Position = new Vector3(layerSize * tileWidth / 2 - tileWidth / 2, 90 - visibleLayer * 4, layerSize * tileWidth / 2 - tileWidth / 2);
RotationDegrees = new Vector3(-90, 0, 0);
}
else
{
Position = previousPosition;
RotationDegrees = new Vector3(-75, 0, 0);
}
if (!canMove) return;
}
}
public void MoveCamera(double delta)