toontown-just-works/toontown/minigame/MazeGameGlobals.py

33 lines
679 B
Python
Raw Normal View History

2024-07-07 18:08:39 -05:00
from direct.showbase import RandomNumGen
def getMazeName(gameDoId, numPlayers, mazeNames):
try:
return forcedMaze
except:
names = mazeNames[numPlayers - 1]
return names[RandomNumGen.randHash(gameDoId) % len(names)]
ENDLESS_GAME = config.GetBool('endless-maze-game', 0)
GAME_DURATION = 60.0
SHOWSCORES_DURATION = 2.0
SUIT_TIC_FREQ = int(256)
WALK_SAME_DIRECTION_PROB = 4
WALK_TURN_AROUND_PROB = 30
SUIT_START_POSITIONS = ((0.25, 0.25),
(0.75, 0.75),
(0.25, 0.75),
(0.75, 0.25),
(0.2, 0.5),
(0.8, 0.5),
(0.5, 0.2),
(0.5, 0.8),
(0.33, 0.0),
(0.66, 0.0),
(0.33, 1.0),
(0.66, 1.0),
(0.0, 0.33),
(0.0, 0.66),
(1.0, 0.33),
(1.0, 0.66))