https://duffdl.itch.io/day-2-morning-game-jam
You should be able to see and play my 'game' now maybe?? Let me know if it isn't displaying right, i added a check in my MapGenerator's Update function to see if the screen changed size and if so, it rebuilds the map and essentially restarts the game. I'm not really a fan of that behavior but i think i'm gonna leave it like that unless i have time to investigate later or if someone has a better idea. Here is my ugly Update function:
void Update()
{ // Updates the entire maze on screen resize. idk if this is a good fix for the resolution issue on itch.io
int newHeight = Mathf.FloorToInt(2f * cam.orthographicSize / tileGrid.transform.localScale.y);
int newWidth = Mathf.FloorToInt(height * cam.aspect);
if (newHeight != height || newWidth != width)
{
InitializeMaze();
GameManager.Instance.DestroyPlayer();
GameManager.Instance.SpawnPlayer();
}
}
