neue version von slot animation (unfertig)

This commit is contained in:
NBTEMP\bib
2026-09-09 12:00:25 +02:00
parent ba93910b68
commit bce2f51a7b
2 changed files with 29 additions and 4 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ namespace Casino
private void Sound_Click(object sender, RoutedEventArgs e)
{
Database data = new Database();
byte[] blobData = data.GetSound(1);
byte[] blobData = data.GetSound(2);
var audioService = new Audioplayer();
audioService.PlayMusic(blobData);
}
+27 -2
View File
@@ -75,14 +75,39 @@ namespace Casino
users[MainWindow.currentUser].Geld += 100;
for (int i = 0; i < 50; i++)
{
foreach (var image in _bilder)
int[,] currentSlot = new int[6, 3];
for (int j = 6; j<_bilder.Count;j--)
{
int randomBild = _random.Next(0, AlleBilder.Count);
LoadCard(image, randomBild);
if (i == 0)
{
currentSlot[0,j] = randomBild;
LoadCard(_bilder[j], randomBild);
}
else if (i == 1)
{
currentSlot[1, j] = currentSlot[0, j];
LoadCard(_bilder[j + 6], currentSlot[0,j]);
currentSlot[0, j] = randomBild;
LoadCard(_bilder[j], randomBild);
}
else
{
currentSlot[1, j] = currentSlot[0, j];
LoadCard(_bilder[j + 12], currentSlot[1, j]);
currentSlot[2, j] = currentSlot[1, j];
LoadCard(_bilder[j + 6], currentSlot[0, j]);
currentSlot[0, j] = randomBild;
LoadCard(_bilder[j], randomBild);
}
await Task.Delay(70);
}
await Task.Delay(70);
}
}