From b1a9792ec7567a4251e1a3e0efb0cb8603669890 Mon Sep 17 00:00:00 2001 From: Skyball2000 Date: Thu, 30 Mar 2023 09:27:22 +0200 Subject: [PATCH] Renamed tutorial to grasslands --- project/data/config/config.json | 2 +- project/data/levels/levels.json | 6 +++--- project/main.py | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/project/data/config/config.json b/project/data/config/config.json index 19b8bdf..b7cb91a 100644 --- a/project/data/config/config.json +++ b/project/data/config/config.json @@ -10,7 +10,7 @@ ] }, "themes": [ - "tutorial", + "grasslands", "cave", "castle" ] diff --git a/project/data/levels/levels.json b/project/data/levels/levels.json index 335843c..e39c636 100644 --- a/project/data/levels/levels.json +++ b/project/data/levels/levels.json @@ -1,14 +1,14 @@ [ { "name": "playground", - "theme": "tutorial", + "theme": "grasslands", "abilities": [ ], "file": "playground.csv" }, { - "name": "tutorial", - "theme": "tutorial", + "name": "grasslands", + "theme": "grasslands", "abilities": [ ], "file": "0-tutorial.csv" diff --git a/project/main.py b/project/main.py index 8b00da5..f676a03 100644 --- a/project/main.py +++ b/project/main.py @@ -20,7 +20,7 @@ from ui_elements.ClickEvent import ClickEvent from ui_elements.KeyManager import KeyManager BACKGROUND_IMAGES_UNSCALED = { - 'tutorial': pygame.image.load('data/sprites/tutorial_bg.png'), + 'grasslands': pygame.image.load('data/sprites/tutorial_bg.png'), 'castle': pygame.image.load('data/sprites/castle_bg.png'), 'cave': pygame.image.load('data/sprites/cave_bg.png'), 'menu': pygame.image.load('data/sprites/intro_bg.png'), @@ -29,7 +29,7 @@ BACKGROUND_IMAGES_UNSCALED = { } BACKGROUND_IMAGES_SCALED = { - 'tutorial': pygame.transform.scale(BACKGROUND_IMAGES_UNSCALED['tutorial'], (1, 1)), + 'grasslands': pygame.transform.scale(BACKGROUND_IMAGES_UNSCALED['grasslands'], (1, 1)), 'castle': pygame.transform.scale(BACKGROUND_IMAGES_UNSCALED['castle'], (1, 1)), 'cave': pygame.transform.scale(BACKGROUND_IMAGES_UNSCALED['cave'], (1, 1)), 'menu': pygame.transform.scale(BACKGROUND_IMAGES_UNSCALED['menu'], (1, 1)), @@ -102,7 +102,7 @@ class MainLoop: self.level = level self.set_game_state(self.GAME_STATE_LEVEL) - def select_level_selection(self, theme: str = 'tutorial'): + def select_level_selection(self, theme: str = 'grasslands'): self.set_game_state(self.GAME_STATE_LEVEL_SELECTION) if self.screen_manager is not None and isinstance(self.screen_manager, LevelSelectionScreenManager): self.screen_manager.select_theme(theme)