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
+3 -11
View File
@@ -4,22 +4,14 @@ using Godot;
public class ResourceDistributor
{
public static List<string> resourceNames = new()
{
"Iron ore",
"Stone",
"Copper ore",
"Spiderweb",
"Mushroom",
"Tin ore"
};
public static Dictionary<string, Texture2D> resources = ResourceLoader.LoadResourceSymbols();
public static string GetResource(List<string> current)
{
List<string> diff = resourceNames.Except(current).ToList();
List<string> diff = resources.Keys.Except(current).ToList();
if (diff.Count <= 0)
{
return resourceNames[GameData.rand.Next(resourceNames.Count)];
return resources.Keys.ToList()[GameData.rand.Next(resources.Keys.Count)];
}
else
{