-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPremier Empire.py
43 lines (27 loc) · 879 Bytes
/
Premier Empire.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
import sys
import pygame.display
sys.path.insert(0, 'C:\\Users\\symrb\\Documents\\dev\\python\\baopig')
from library.loading import set_progression
set_progression(.05)
set_progression(.1)
set_progression(.15)
set_progression(.2)
import baopig as bp
set_progression(.3)
from library.theme import MyTheme
from library.game import Game, memory
set_progression(.7)
class PremierEmpireApp(bp.Application):
def _update_display(self):
super()._update_display()
if self.size == pygame.display.list_modes()[0]:
memory.set("screen_size", "fullscreen")
else:
memory.set("screen_size", self.size)
app = PremierEmpireApp(name="Premier Empire", theme=MyTheme(), size=memory.screen_size.get())
app.set_debug(launchtime=True)
set_progression(.8)
game = Game(app)
set_progression(1)
if __name__ == "__main__":
app.launch()