Post Jam updates (Fullscreen, Demo Mode, Calm the AI down)

This commit is contained in:
Texel 2021-05-03 05:20:03 -04:00
parent 95579bcc3e
commit 1c0607804f
17 changed files with 913 additions and 26 deletions

View file

@ -19,12 +19,12 @@ public class Tutorial : MonoBehaviour {
public GameBoard board;
void Drop() => board.board = board.DropNow(board.board);
WaitUntil UntilDrop() => new WaitUntil(()=>board.delayState.Equals(GameBoard.DelayState.None));
WaitUntil UntilDrop() => new WaitUntil(() => board.delayState.Equals(GameBoard.DelayState.None));
// Start is called before the first frame update
void Start() {
board.Setup();
board.StartGame();
board.StartGame();
board.AIEnabled = true; // Disable player input on the board
tutorialText = GetComponent<TMP_Text>();
@ -35,7 +35,7 @@ public class Tutorial : MonoBehaviour {
IEnumerator TutorialRoutine() {
board.board = BoardStateExtension.Initialize();
board.nextPair = (new TileInfo(TileKind.Block,TileColor.Yellow), new TileInfo(TileKind.Block, TileColor.Yellow));
board.nextPair = (new TileInfo(TileKind.Block, TileColor.Yellow), new TileInfo(TileKind.Block, TileColor.Yellow));
board.currentPair = (new TileInfo(TileKind.Block, TileColor.Yellow), new TileInfo(TileKind.Block, TileColor.Yellow));
SetText("TUTORIAL_INTRO", "Welcome to Touhou: Luminous Strike!");
@ -72,7 +72,7 @@ public class Tutorial : MonoBehaviour {
SetText("TUTORIAL_COLORS", "But of course, lanterns come in a variety of colors");
activePatchyNumber = 1;
for(int i = 0; i < GameBoard.COLUMN; ++i) {
for (int i = 0; i < GameBoard.COLUMN; ++i) {
bs[i].AddRange(new[] {
new TileInfo(TileKind.Block, TileColor.Red),
new TileInfo(TileKind.Block, TileColor.Blue),
@ -144,7 +144,7 @@ public class Tutorial : MonoBehaviour {
yield return new WaitForSeconds(2f);
SetText("TUTORIAL_EXTRA", "Lanterns always come in pairs, but you can swap with the next pair by pressing [Z]");
activePatchyNumber = 3;
for(int i = 0; i < 5; ++i) {
for (int i = 0; i < 5; ++i) {
board.SwapTiles();
yield return new WaitForSeconds(1f);
}
@ -160,7 +160,7 @@ public class Tutorial : MonoBehaviour {
activePatchyNumber = 3;
SetText("TUTORIAL_EXTRA3", "Finally, be cautious, as if your board fills up, it will collapse and you will lose.");
for(int i = 0; i < 12; ++i) {
for (int i = 0; i < 12; ++i) {
yield return new WaitForSeconds(0.15f);
for (int j = 0; j < GameBoard.COLUMN; ++j) {
yield return new WaitForSeconds(0.05f);
@ -168,7 +168,7 @@ public class Tutorial : MonoBehaviour {
}
}
board.Clear();
board.Clear();
yield return new WaitForSeconds(5f);
activePatchyNumber = 1;