-
Notifications
You must be signed in to change notification settings - Fork 1
/
launcher.py
67 lines (55 loc) · 2.59 KB
/
launcher.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
#################################################################################
## _________ ____ ________ _______ __ _____ __ __ __________ __
## / ____/ | / __ \/_ __/ / / / ___// / / / | / //_// ____/ __ \/ /
## / __/ / /| | / /_/ / / / / /_/ /\__ \/ /_/ / /| | / ,< / __/ / /_/ / /
## / /___/ ___ |/ _, _/ / / / __ /___/ / __ / ___ |/ /| |/ /___/ _, _/_/
## /_____/_/ |_/_/ |_| /_/ /_/ /_//____/_/ /_/_/ |_/_/ |_/_____/_/ |_(_)
## ___ ______________________ _____ __ ______ ________ __
## / | / ____/_ __/ ____/ __ \/ ___// / / / __ \/ ____/ //_/
## / /| | / /_ / / / __/ / /_/ /\__ \/ /_/ / / / / / / ,<
## / ___ |/ __/ / / / /___/ _, _/___/ / __ / /_/ / /___/ /| |
## /_/ |_/_/ /_/ /_____/_/ |_|/____/_/ /_/\____/\____/_/ |_|
##
## A P-ROC Project by Scott Danesi, Copyright 2013-2014
## Built on the PyProcGame Framework from Adam Preble and Gerry Stellenberg
#################################################################################
#################################################################################
## __ ___ __ ___ __________ ____________
## / / / | / / / / | / / ____/ / / / ____/ __ \
## / / / /| |/ / / / |/ / / / /_/ / __/ / /_/ /
## / /___/ ___ / /_/ / /| / /___/ __ / /___/ _, _/
## /_____/_/ |_\____/_/ |_/\____/_/ /_/_____/_/ |_|
##
#################################################################################
import procgame.game
from procgame import *
import pinproc
class Launcher_Mode(game.Mode):
def __init__(self, game):
super(Launcher_Mode, self).__init__(game=game, priority=3)
def mode_started(self):
self.game.coils.flipperEnable.enable()
def mode_stopped(self):
pass
def sw_startButton_active_for_50ms(self, sw):
#if self.troughIsFull()==True:
#Game Starting
#self.game.modes.remove(self)
return procgame.game.SwitchContinue
def sw_outhole_active_for_1s(self, sw):
self.game.coils.acSelect.disable()
self.game.coils.flipperEnable.disable()
self.game.coils.outholeKicker_CaptiveFlashers.pulse(50)
self.game.score_display.set_text("GAME OVER",0)
self.game.score_display.set_text("Press Start",1)
return procgame.game.SwitchStop
def sw_jetLeft_active(self, sw):
return procgame.game.SwitchStop
def sw_jetRight_active(self, sw):
return procgame.game.SwitchStop
def sw_jetTop_active(self, sw):
return procgame.game.SwitchStop
def sw_slingL_active(self, sw):
return procgame.game.SwitchStop
def sw_slingR_active(self, sw):
return procgame.game.SwitchStop