DistributedTagGame: added MML and DG tag arenas (randomizer)

This commit is contained in:
Wilee999 2015-03-28 18:38:13 +00:00
parent 4a787248e9
commit 1d7b082758

View file

@ -49,7 +49,8 @@ class DistributedTagGame(DistributedMinigame):
self.itText = OnscreenText.OnscreenText('itText', fg=(0.95, 0.95, 0.65, 1), scale=0.14, font=ToontownGlobals.getSignFont(), pos=(0.0, -0.8), wordwrap=15, mayChange=1) self.itText = OnscreenText.OnscreenText('itText', fg=(0.95, 0.95, 0.65, 1), scale=0.14, font=ToontownGlobals.getSignFont(), pos=(0.0, -0.8), wordwrap=15, mayChange=1)
self.itText.hide() self.itText.hide()
self.sky = loader.loadModel('phase_3.5/models/props/TT_sky') self.sky = loader.loadModel('phase_3.5/models/props/TT_sky')
self.ground = loader.loadModel('phase_4/models/minigames/tag_arena') self.groundList = ['phase_4/models/minigames/tag_arena', 'phase_6/models/neighborhoods/minnies_melody_land', 'phase_8/models/neighborhoods/daisys_garden']
self.ground = random.choice(loader.loadModel(self.groundList))
self.music = base.loadMusic('phase_4/audio/bgm/MG_toontag.ogg') self.music = base.loadMusic('phase_4/audio/bgm/MG_toontag.ogg')
self.tagSfx = base.loadSfx('phase_4/audio/sfx/MG_Tag_C.ogg') self.tagSfx = base.loadSfx('phase_4/audio/sfx/MG_Tag_C.ogg')
self.itPointer = loader.loadModel('phase_4/models/minigames/bboard-pointer') self.itPointer = loader.loadModel('phase_4/models/minigames/bboard-pointer')
@ -283,4 +284,4 @@ class DistributedTagGame(DistributedMinigame):
return return
self.notify.debug('setTreasureScore: %s' % scores) self.notify.debug('setTreasureScore: %s' % scores)
for i in xrange(len(self.scorePanels)): for i in xrange(len(self.scorePanels)):
self.scorePanels[i].setScore(scores[i]) self.scorePanels[i].setScore(scores[i])