Reworked tile generation, removed map, redone colour scheme, v1.2.0

This commit is contained in:
Nicola Sovic
2022-04-06 21:07:26 +02:00
parent 4e46d21a63
commit f472ff1449
28 changed files with 1376 additions and 4541 deletions

View File

@@ -41,12 +41,7 @@ public class Controls : MonoBehaviour
if (uihandler.canPlayerMove())
{
player.GetComponent<Player>().move();
if (Input.GetKeyDown(KeyCode.M))
{
worldGen.GetComponent<WorldGenerator>().prepareMap();
uihandler.switchMap();
}
else if (Input.GetKeyDown(KeyCode.E))
if (Input.GetKeyDown(KeyCode.E))
{
GameObject target = playerCam.GetComponent<PlayerCamera>().interactWithObject();
if (target != null)