This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create 15 x 6 2d array // let top left tile be (0, 0) | |
create vectors of coordinates named zonetransition, hallway, 3way, 4way, endcap | |
place tile of type room173 at (7, 5) | |
roll 1d3 +2 for number of zone transitions | |
generate that number of random numbers in range 0 to 14, difference between each number must be >1 | |
generate start index offset in range 0 to (14 - max of those numbers) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Erin Eccleston 2018 | |
// Still buggy, btw... | |
using System; | |
using System.Timers; | |
using static System.Console; | |
using System.Collections.Generic; | |
static class Tetris | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Cinemachine; | |
using UnityEngine; | |
using UnityEngine.U2D; | |
using System.Reflection; | |
/// <summary> | |
/// Add this component to a camera that has PixelPerfectCamera and CinemachineBrain | |
/// components to prevent the active CinemachineVirtualCamera from overwriting the | |
/// correct orthographic size as calculated by the PixelPerfectCamera. | |
/// </summary> |