-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
20 lines (17 loc) · 975 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class grid:
BLOCK_SIZE = 100 # Number of pixels per block, for when viewing game locally
WIDTH = 1000 # Number of building windows wide, multiplied by block_size
HEIGHT = 500 # Number of building windows high, multiplied by block_size
class artnet:
OSC = "2.0.0.100" # IP of OSC host
TARGET = '255.255.255.255' # Specify the IP of Art-Net node
BROADCAST = True # We can send Art-Net data via network broadcast (i.e. target is 255.255.255.255)
UNIVERSE_BASE = 21 # Specify our Art-Net universe base, each floor is +1 added to this
PACKET_SIZE = 1024 # We can be more efficient by sending minimum data - Number of lights per floor (universe) * 3 (RGB channels)
class colour:
SNAKE = (0, 255, 0)
FOOD = (255, 0, 0)
BACKGROUND = (0, 0, 0)
SCORE = (255, 255, 255)
class misc:
SPEED = 1.5 # Game play speed... 1=slow, 10=fast