Animation für Slots fertig gestellt
This commit is contained in:
@@ -72,11 +72,12 @@ namespace Casino
|
||||
}
|
||||
private async Task Spin()
|
||||
{
|
||||
int[,] currentSlot = new int[3, 6];
|
||||
users[MainWindow.currentUser].Geld += 100;
|
||||
for (int i = 0; i < 50; i++)
|
||||
for (int i = 0; i < 15; i++)
|
||||
{
|
||||
int[,] currentSlot = new int[6, 3];
|
||||
for (int j = 6; j<_bilder.Count;j--)
|
||||
|
||||
for (int j = 5; j>=0;j--)
|
||||
{
|
||||
int randomBild = _random.Next(0, AlleBilder.Count);
|
||||
|
||||
@@ -94,9 +95,9 @@ namespace Casino
|
||||
}
|
||||
else
|
||||
{
|
||||
currentSlot[1, j] = currentSlot[0, j];
|
||||
LoadCard(_bilder[j + 12], currentSlot[1, j]);
|
||||
currentSlot[2, j] = currentSlot[1, j];
|
||||
LoadCard(_bilder[j + 12], currentSlot[1, j]);
|
||||
currentSlot[1, j] = currentSlot[0, j];
|
||||
LoadCard(_bilder[j + 6], currentSlot[0, j]);
|
||||
currentSlot[0, j] = randomBild;
|
||||
LoadCard(_bilder[j], randomBild);
|
||||
@@ -114,6 +115,7 @@ namespace Casino
|
||||
private async void Spin(object sender, RoutedEventArgs e)
|
||||
{
|
||||
await Spin();
|
||||
users[MainWindow.currentUser].Geld++;
|
||||
}
|
||||
|
||||
private void Hauptmenue(object sender, RoutedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user