Working on inventory and crafting system. Translated Excel-Itemlist to .json.
This commit is contained in:
@@ -17,6 +17,7 @@ public partial class GameData
|
||||
public static float robotSpeed = 20f;
|
||||
public static float tileWidth = 6;
|
||||
public static float tileHeight = 4;
|
||||
public static Dictionary<Ingredient, Texture2D> availableIngredients = ResourceLoader.LoadIngredients();
|
||||
|
||||
//--- PLAYER ADJUSTABLE VALUES ---
|
||||
//Color used in primary objects (e.g. Robots)
|
||||
@@ -29,5 +30,8 @@ public partial class GameData
|
||||
public static int layerSize = 20;
|
||||
//Seed used for all random generation except WFC
|
||||
public static int seed = 12345;
|
||||
|
||||
//--- PLAYER VALUES ---
|
||||
public static Inventory inventory = new Inventory();
|
||||
|
||||
}
|
||||
|
||||
@@ -62,12 +62,24 @@ public partial class ResourceLoader
|
||||
{
|
||||
Dictionary<string, Texture2D> symbols = new()
|
||||
{
|
||||
{ "Iron ore", GD.Load<Texture2D>($"res://Assets/IronSymbol.png") },
|
||||
{ "Tin ore", GD.Load<Texture2D>($"res://Assets/TinSymbol.png") },
|
||||
{ "Copper ore", GD.Load<Texture2D>($"res://Assets/CopperSymbol.png") },
|
||||
{ "Mushroom", GD.Load<Texture2D>($"res://Assets/MushroomSymbol.png") },
|
||||
{ "Spiderweb", GD.Load<Texture2D>($"res://Assets/SpiderwebSymbol.png") },
|
||||
{ "Iron ore", GD.Load<Texture2D>($"res://Assets/Images/Resources/IronSymbol.png") },
|
||||
{ "Tin ore", GD.Load<Texture2D>($"res://Assets/Images/Resources/TinSymbol.png") },
|
||||
{ "Copper ore", GD.Load<Texture2D>($"res://Assets/Images/Resources/CopperSymbol.png") },
|
||||
{ "Mushroom", GD.Load<Texture2D>($"res://Assets/Images/Resources/MushroomSymbol.png") },
|
||||
{ "Spiderweb", GD.Load<Texture2D>($"res://Assets/Images/Resources/SpiderSilkSymbol.png") },
|
||||
{ "Coal", GD.Load<Texture2D>($"res://Assets/Images/Resources/CoalSymbol.png") },
|
||||
{ "Water", GD.Load<Texture2D>($"res://Assets/Images/Resources/WaterSymbol.png") },
|
||||
{ "Stone", GD.Load<Texture2D>($"res://Assets/Images/Resources/StoneSymbol.png") },
|
||||
};
|
||||
return symbols;
|
||||
}
|
||||
|
||||
public static Dictionary<Ingredient, Texture2D> LoadIngredients()
|
||||
{
|
||||
Dictionary<Ingredient, Texture2D> ingredients = new()
|
||||
{
|
||||
|
||||
};
|
||||
return ingredients;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user