23.09.2026

This commit is contained in:
alstergym
2026-09-23 10:57:59 +02:00
parent 1e8b750acf
commit f409c2d56e
26 changed files with 15 additions and 5 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.
+3 -2
View File
@@ -20,8 +20,6 @@ Eine Monster Energy slot Maschine mit 3 Feldern und 5 möglichen Dosen. Bei 3 gl
[Monster Energy Nitro Cosmic Peach] (https://wickedsweets.com.au/wp-content/uploads/2024/10/original-73.jpeg)
[Slot Maschine] (https://img.freepik.com/premium-psd/slot-machine-with-empty-wheels_202497-997.jpg?w=1480)
## Protokoll
### 09.09.2026
@@ -32,3 +30,6 @@ Eine Monster Energy slot Maschine mit 3 Feldern und 5 möglichen Dosen. Bei 3 gl
### 22.09.2026
Heute habe ich die Dosen doch nur in 2 Teile geteilt und versucht sie einzufügen. Aber statt den Bildern, die ich auf 60x60 pixel skaliert habe, wird das Feld nur schwarz angezeigt.
### 23.09.2026
Heute habe ich den Text angepasst der oben am Fenster steht und die Bilder eingefügt. Das einzige was jetzt noch fehlt ist der code damit beim Drücken einer bestimmten Taste zufällige dosen ausgewählt werden.
+9 -1
View File
@@ -4,7 +4,7 @@ import pygame
class MeinSpiel:
bilder = ["Bilder/Grass.jpg","Bilder/monster_white_top.xcf", "Bilder/monster_white_bottom.xcf"]
bilder = ["Bilder/Grass.jpg","Bilder/monster_white_top.png", "Bilder/monster_white_bottom.png", "Bilder/monster_mango_top.jpg", "Bilder/monster_mango_bottom.jpg", "Bilder/monster_pacific_top.jpg", "Bilder/monster_pacific_bottom.jpg", "Bilder/monster_nitro_top.jpeg", "Bilder/monster_nitro_bottom.jpeg", "Bilder/monster_pipeline_top.jpg", "Bilder/monster_pipeline_bottom.jpg"]
spielfeld = []
@@ -17,6 +17,14 @@ class MeinSpiel:
def anfangsKonfiguration(self):
self.spielfeld[4][5] = 1
self.spielfeld[4][6] = 2
self.spielfeld[5][5] = 3
self.spielfeld[5][6] = 4
self.spielfeld[6][5] = 5
self.spielfeld[6][6] = 6
self.spielfeld[7][5] = 7
self.spielfeld[7][6] = 8
self.spielfeld[8][5] = 9
self.spielfeld[8][6] = 10
def tasteGedrueckt(self, taste):
print("taste gedrückt")
+2 -1
View File
@@ -24,7 +24,7 @@ meinSpiel.anfangsKonfiguration()
# Definieren und Öffnen eines neuen Fensters
fenster = pygame.display.set_mode((Breite, Hoehe))
pygame.display.set_caption("Mein erstes Spiel")
pygame.display.set_caption("Let's go gambling!")
clock = pygame.time.Clock()
# Schleife Hauptprogramm
@@ -38,6 +38,7 @@ while True:
# Spiellogik
if event.type==KEYDOWN:
meinSpiel.tasteGedrueckt(event.key)
# Spielfeld löschen
for x in range(FelderX):
for y in range(FelderY):