pyqt5 info missing (& streamlined imports)

pull/2/head
kaqu 2 years ago
parent 4955a1b732
commit af77b5828e
  1. 8
      README.md
  2. 4
      pandemic_pong.py

@ -17,6 +17,8 @@ Also, we will have to play some game typical sounds. I chose the **playsound** [
Unfortunately it does not support async operation w/ linux, yet for short samples that does no significant harm!
Almost forgot: You'll have to have [pyqt5](https://pypi.org/project/PyQt5/) installed.
With these installed we're prep'ed & ready!
## 2. Game usage & capabilities ##
@ -50,6 +52,12 @@ If a tainted ball approaches a player, he has to vaccinate himself w/ the same c
Yet, the vaccine diminishes over time as well ...
If the player chooses the wrong colour or no vaccine at all, the ball passes right through the player. The point is counted as a miss, the opponent gains a point.
### 2.3 Exiting ###
The [Select] button to terminate the program is always available ...
For sizeable windows, use the GUI button ;)
## 3. Troubleshooting ##
In case you have other (differing) USB gamepads, you may need to identify button usage & other gamepad specifics.

@ -18,9 +18,9 @@ import time
from playsound import playsound
from PyQt5.QtGui import (QPixmap, QPaintDevice, QImage, QMouseEvent, QColor)
from PyQt5.QtGui import QPixmap
from PyQt5.QtWidgets import *
from PyQt5.QtCore import Qt, QTimer, pyqtSlot, QEvent
from PyQt5.QtCore import Qt, QTimer, pyqtSlot
from PyQt5.QtGui import QPainter, QBrush, QPen, QFont, QFontMetrics
import pong_constants as pgc # Pong global constants

Loading…
Cancel
Save