-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
25 lines (21 loc) · 786 Bytes
/
__init__.py
File metadata and controls
25 lines (21 loc) · 786 Bytes
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
from cmu_112_graphics import *
from splashScreenMode import *
from originalGameMode import *
from singlePlayerMode import *
from sidescrollGameMode import *
from instructionsMode import *
# run this file!
# animation framework attained from
# http://www.cs.cmu.edu/~112/notes/notes-animaations-part1.html
# from http://www.cs.cmu.edu/~112/notes/notes-animations-part2.html
# #subclassing ModalApp
class MyModalApp(ModalApp):
def appStarted(app):
app.splashScreenMode=SplashScreenMode()
app.demoMode=OriginalGameMode()
app.singleMode=SinglePlayerMode()
app.scrollMode=SideScrollGameMode()
app.instructions=InstructionsMode()
app.setActiveMode(app.splashScreenMode)
app.timerDelay=50
app = MyModalApp(width=750, height=500)