-
Notifications
You must be signed in to change notification settings - Fork 4
/
mode_1.py
70 lines (57 loc) · 3.04 KB
/
mode_1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#################################################################################
## _________ ____ ________ _______ __ _____ __ __ __________ __
## / ____/ | / __ \/_ __/ / / / ___// / / / | / //_// ____/ __ \/ /
## / __/ / /| | / /_/ / / / / /_/ /\__ \/ /_/ / /| | / ,< / __/ / /_/ / /
## / /___/ ___ |/ _, _/ / / / __ /___/ / __ / ___ |/ /| |/ /___/ _, _/_/
## /_____/_/ |_/_/ |_| /_/ /_/ /_//____/_/ /_/_/ |_/_/ |_/_____/_/ |_(_)
## ___ ______________________ _____ __ ______ ________ __
## / | / ____/_ __/ ____/ __ \/ ___// / / / __ \/ ____/ //_/
## / /| | / /_ / / / __/ / /_/ /\__ \/ /_/ / / / / / / ,<
## / ___ |/ __/ / / / /___/ _, _/___/ / __ / /_/ / /___/ /| |
## /_/ |_/_/ /_/ /_____/_/ |_|/____/_/ /_/\____/\____/_/ |_|
##
## A P-ROC Project by Scott Danesi, Copyright 2013-2014
## Built on the PyProcGame Framework from Adam Preble and Gerry Stellenberg
#################################################################################
#################################################################################
## _____ __ ______ __________ ___________________
## / ___// / / / __ \/ ____/ __ \ / / ____/_ __/ ___/
## \__ \/ / / / /_/ / __/ / /_/ / __ / / __/ / / \__ \
## ___/ / /_/ / ____/ /___/ _, _/ / /_/ / /___ / / ___/ /
## /____/\____/_/ /_____/_/ |_| \____/_____/ /_/ /____/
##
#################################################################################
import procgame
from procgame import *
import locale
import logging
class Mode1(game.Mode):
"""docstring for Bonus"""
def __init__(self, game, priority):
super(Mode1, self).__init__(game, priority)
def mode_started(self):
self.game.utilities.set_player_stats('mode1_status',0)
self.update_lamps()
def mode_stopped(self):
self.game.utilities.set_player_stats('mode1_status',1)
def update_lamps(self):
print "Update Lamps: Mode 1 Jet Bumpers"
self.game.lamps.jetLeftLamp.schedule(schedule=0x000F000F, cycle_seconds=0, now=True)
self.game.lamps.jetRightLamp.schedule(schedule=0xF0F0F0F0, cycle_seconds=0, now=True)
self.game.lamps.jetTopLamp.schedule(schedule=0x0F000F00, cycle_seconds=0, now=True)
self.game.lamps.jetCenter.schedule(schedule=0x0F0F0F0F, cycle_seconds=0, now=True)
def sw_jetLeft_active(self, sw):
self.game.sound.play('jet_super')
self.game.utilities.acFlashPulse(coilname='californiaFault_CenterRampFlashers3',pulsetime=60)
self.game.utilities.score(5000)
return procgame.game.SwitchStop
def sw_jetRight_active(self, sw):
self.game.sound.play('jet_super')
self.game.utilities.acFlashPulse(coilname='californiaFault_CenterRampFlashers3',pulsetime=60)
self.game.utilities.score(5000)
return procgame.game.SwitchStop
def sw_jetTop_active(self, sw):
self.game.sound.play('jet_super')
self.game.utilities.acFlashPulse(coilname='californiaFault_CenterRampFlashers3',pulsetime=60)
self.game.utilities.score(5000)
return procgame.game.SwitchStop