include tetris
This commit is contained in:
parent
a87391ef17
commit
014a843268
|
@ -20,7 +20,7 @@ namespace RPI_Matrix {
|
|||
|
||||
SnakeGame.SnakeGame.Init(matrix, canvas);
|
||||
FlappyBird.FlappyBird.Init(matrix, canvas);
|
||||
// Tetris.Tetris.Init(matrix, canvas);
|
||||
Tetris.Tetris.Init(matrix, canvas);
|
||||
|
||||
RGBLedFont font = new("fonts/5x8.bdf");
|
||||
Color col = new(255, 255, 255);
|
||||
|
@ -29,12 +29,12 @@ namespace RPI_Matrix {
|
|||
while (startover) {
|
||||
Console.Clear();
|
||||
canvas.Clear();
|
||||
canvas.DrawText(font, 0, 8, col, "Spielauswahl:");
|
||||
canvas.DrawText(font, 0, 8, col, "Spielauswahl:");
|
||||
canvas.DrawText(font, 0, 24, col, "0) Beenden");
|
||||
canvas.DrawText(font, 0, 32, col, "1) SnakeGame");
|
||||
canvas.DrawText(font, 0, 40, col, "2) FlappyBird");
|
||||
canvas.DrawText(font, 0, 48, col, "3) Tetris");
|
||||
matrix.SwapOnVsync(canvas);
|
||||
canvas = matrix.SwapOnVsync(canvas);
|
||||
|
||||
bool selection = true;
|
||||
int frameCount = 0, keypressFrame = 0;
|
||||
|
@ -53,11 +53,11 @@ namespace RPI_Matrix {
|
|||
break;
|
||||
case ConsoleKey.D2:
|
||||
selection = false;
|
||||
FlappyBird.FlappyBird.Main(Array.Empty<string>());
|
||||
FlappyBird.FlappyBird.Main();
|
||||
break;
|
||||
case ConsoleKey.D3:
|
||||
selection = false;
|
||||
// Tetris.Tetris.Main(matrix, canvas);
|
||||
Tetris.Tetris.Main();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,10 +3,11 @@
|
|||
<!-- Reference to local copies of: -->
|
||||
<!-- https://git.baipyr.us/Baipyrus/MultiplayerSnakeGame/src/branch/rpi-rgb-led-matrix -->
|
||||
<!-- https://git.baipyr.us/Baipyrus/ConsoleFlappyBird/src/branch/rpi-rgb-led-matrix -->
|
||||
<!-- https://git.baipyr.us/Baipyrus/ConsoleTetris/src/branch/rpi-rgb-led-matrix -->
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\RPI-Snake\SnakeGame.csproj" />
|
||||
<ProjectReference Include="..\RPI-Flappy\FlappyBird.csproj" />
|
||||
<!-- <ProjectReference Include="..\RPI-Tetris\Tetris.csproj" />-->
|
||||
<ProjectReference Include="..\RPI-Tetris\Tetris.csproj" />
|
||||
<Reference Include="RGBLedMatrix.dll" />
|
||||
</ItemGroup>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user