port back to 1x64x64 matrix

This commit is contained in:
Baipyrus 2023-04-19 15:07:33 +02:00
parent 89ec44472a
commit b13493f27e
3 changed files with 9 additions and 7 deletions

View File

@ -13,7 +13,7 @@ namespace SnakeGame {
public static bool gameOver, selection;
private static int FPS = 10, timeout = 10;
public static List<string> players = new();
public static int width = 48, height = 48, sw = 4, sh = 4;
public static int width = 32, height = 32, sw = 2, sh = 2;
public static int frameCount, keypressFrame, selectionIndex;
public static Dictionary<string, Color> colors = new() {{"bot", new(0, 255, 0)}};
public static Dictionary<string, Snake> snakes = new() {{"bot", new(width / 2, height / 2)}};
@ -42,8 +42,8 @@ namespace SnakeGame {
// Initialize Variables
gameOver = false;
width = 192 / sw;
height = 192 / sh;
width = 64 / sw;
height = 64 / sh;
// Check CL_Args for parameters
foreach (string arg in args)
@ -68,9 +68,12 @@ namespace SnakeGame {
else {
matrix = new(
new RGBLedMatrixOptions {
HardwareMapping = "adafruit-hat",
LimitRefreshRateHz = 0,
GpioSlowdown = 5,
ChainLength = 3,
Parallel = 3,
ChainLength = 1,
Parallel = 1,
ScanMode = 1,
Rows = 64,
Cols = 64,
});

View File

@ -8,8 +8,7 @@
<MainEntryPoint>SnakeGame.SnakeGame</MainEntryPoint>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<RuntimeIdentifier>linux-arm64</RuntimeIdentifier>
<RuntimeIdentifier>linux-arm</RuntimeIdentifier>
<SelfContained>true</SelfContained>
<PublishReadyToRun>true</PublishReadyToRun>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>

Binary file not shown.