Setup for basic Editor for map, started gameplay screen
This commit is contained in:
@@ -1,29 +1,8 @@
|
||||
import pygame as pg
|
||||
import pygame_gui
|
||||
|
||||
from constants import Config
|
||||
from game.game import Game
|
||||
from editor import Editor
|
||||
|
||||
def main():
|
||||
game = Game()
|
||||
# editor = Editor()
|
||||
|
||||
running = True
|
||||
|
||||
pg.init()
|
||||
# pygame.mixer.init()
|
||||
pg.display.set_caption('Portal')
|
||||
screen = pg.display.set_mode(Config.WINDOW_SIZE)
|
||||
manager = pygame_gui.UIManager(Config.WINDOW_SIZE, theme_path="data/theme/theme.json")
|
||||
|
||||
clock = pg.time.Clock()
|
||||
|
||||
# implement game
|
||||
game = Game(screen, clock, manager)
|
||||
|
||||
while running:
|
||||
|
||||
running = game.run()
|
||||
|
||||
pg.quit()
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
game.run()
|
||||
# editor.run()
|
||||
Reference in New Issue
Block a user