Setup for basic Editor for map, started gameplay screen

This commit is contained in:
2026-05-20 15:58:06 +02:00
parent cc0a92060b
commit 6283fb0d5a
13 changed files with 383 additions and 59 deletions
+5 -26
View File
@@ -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()