Skip to content

Commit

Permalink
Show Titus screen on start
Browse files Browse the repository at this point in the history
TODO: implement display logic from the original game.
  • Loading branch information
tvasenin committed Dec 3, 2017
1 parent bf960aa commit 6990f79
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Pre2/Pre2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ static int Main()

window = Window.Create(null, WindowFlags.Vsync | WindowFlags.S5);

ShowTitusScreen();

int levelIdx = 0;
PlayLevel(levelIdx);

Expand Down Expand Up @@ -100,5 +102,18 @@ private static void PlayLevel(int levelIdx)
window.DrawFrame(frame++);
}
}

private static void ShowTitusScreen()
{
engine.BackgroundBitmap = AssetConverter.GetTitusBitmap();
while (window.Process())
{
if (window.GetInput(Input.Down))
{
break;
}
window.DrawFrame(frame++);
}
}
}
}

0 comments on commit 6990f79

Please sign in to comment.