-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
28 lines (22 loc) · 830 Bytes
/
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
"""
The main file to control the game
"""
import pathlib
import arcade
from constants import *
import views
from window import Window
import pyglet.image
if __name__ == "__main__":
window = Window(SCREEN_WIDTH, SCREEN_HEIGHT, SCREEN_TITLE)
window.set_icon(pyglet.image.load(IMAGES_PATH /
"characters"/"aliens"/"enemy.png"))
window.views = {
"Menu": views.Menu(), "LevelSelect": views.LevelSelection(),
"LevelUp": views.LevelUpView(), "GameOver": views.GameOverView(),
"HowToPlay": views.HowToPlay(), "Settings": views.SettingsView(),
"Pause": views.PauseScreen(), "Trophies": views.Trophies()
}
window.show_view(window.views["Menu"])
arcade.set_background_color(arcade.color.SKY_BLUE)
arcade.run()