Exemple #1
0
'''custome modules'''
import GameObject
import Player
import TrueRandomAttack as tra
import AttackWaves as atw
import ClassPack as cp
import Timer
import Socket_Client as socket

pg.init()
pg.font.init()
display_width = 800
display_height = 600

gameObject = GameObject.GameObject()
colors = GameObject.Colors()

#display x,y
#gameDisplay = pg.display.set_mode((display_width, display_height))
#pg.display.set_caption('Block Hunger Games')

#socket_client object
sc = socket.Sock_Con()

font = pg.font.SysFont(None, 25)


def message_to_screen(msg, color, gameDisplay):
    screen_text = font.render(msg, True, color)
    gameDisplay.blit(
        screen_text,