-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
executable file
·51 lines (44 loc) · 1.34 KB
/
main.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
#!/usr/bin/python3
# -*- coding: utf-8 -*-
print("### Welcome to Glamour ###")
print("This is an Open Source/Public Domain game developed by Oca Studios")
print('The game is based on the "Glamour" table-top game by Oca Studios')
print("in loving memory of Cilda and Patricia")
print("Feel free to contribute at www.ocastudios.com")
print("or visit the project at http://launchpad.net/glamour")
print("... lauching game ...")
print("Initializing Pygame Display")
import os
import pygame
import settings
from settings import directory
from interface.splash import splash
from interface.icon import set_icon
splash()
set_icon()
pygame.mixer.pre_init(44100, 16, 256)
settings.reset_scale()
pygame.mixer.init()
pygame.mixer.set_num_channels(9)
pygame.mixer.set_reserved(9)
pygame.init()
import interactive.universe as universe
import interface.menu as menu
import control
import settings
import sqlite3
import sys
try:
test = sys.argv[1] == 'test'
except IndexError:
test = False
if __name__ == "__main__":
universe = universe.Universe(test=test)
pygame.mouse.set_visible(0)
while True:
if universe.LEVEL == "menu":
control.main_menu(universe)
elif universe.LEVEL == "game":
control.stage(universe)
universe.update_all()
pygame.display.flip()