Fixed headless server, view client, local

pull/2/head
kaqu 2 years ago
parent 1fb57dd0ed
commit c058cc74a2
  1. 2
      game_objects/pong_constants.py
  2. 2
      game_objects/pong_viewer.py
  3. 5
      pandemic_pong.py

@ -7,7 +7,7 @@ Pandemic Pong global constants
"""
DEVLOCAL = True # TODO: For client/server local development set to 'True'! For publication to 'False'!
DEVLOCAL = False # TODO: For client/server local development set to 'True'! For publication to 'False'!
"""Buttons in 'state<n>'"""
BTN_STATE_NONE = 0 # No Button pressed ...

@ -15,6 +15,8 @@ from PyQt5.QtWidgets import *
from PyQt5.QtCore import Qt, QTimer, pyqtSlot
from PyQt5.QtGui import QPainter, QBrush, QPen, QFont, QFontMetrics
from playsound import playsound
import game_objects.pong_constants as pgc # Pong global constants
import game_objects.pong_globalvars as pgv # Pong global variables
from game_objects.pong_player import PongPlayer

@ -32,9 +32,8 @@ if __name__ == '__main__':
pgv.bIsLocal = True # by default
player_index = 0 # Illegal, local
player_server = ""
if pgc.DEVLOCAL == True:
debug_x = 0 # Debug window positions
debug_y = 0
debug_x = 0 # Debug window positions
debug_y = 0
sMsg = "usage: ./pandemic_pong.py --[--sizeable|fullscreen] --[server | [viewer | player <1|2>] <ip_adress>]"
if len(sys.argv) > 1:
if sys.argv[1] == "--sizeable": # else=default=fullscreen assumed ...

Loading…
Cancel
Save