mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-27 13:42:28 -06:00
33 lines
679 B
Python
33 lines
679 B
Python
|
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))
|