forked from reddit-pygame/snowboard-challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
17 lines (15 loc) · 628 Bytes
/
Copy pathmain.py
File metadata and controls
17 lines (15 loc) · 628 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import sys
import pygame as pg
from state_engine import Game, GameState
import prepare
import main_menu, course_selection_play, course_info_entry, editor, course_selection_edit, boarding
states = {"MAIN_MENU": main_menu.MainMenu(),
"COURSE_SELECT_PLAY": course_selection_play.CourseSelectPlay(),
"NEW_COURSE": course_info_entry.CourseInfoEntry(),
"EDITOR": editor.Editor(),
"COURSE_SELECT_EDIT": course_selection_edit.CourseSelectEdit(),
"BOARDING": boarding.Boarding()}
game = Game(prepare.SCREEN, states, "MAIN_MENU")
game.run()
pg.quit()
sys.exit()