Renamed tutorial to grasslands

main
Skyball2000 2023-03-30 09:27:22 +02:00
parent 8651b44cf0
commit b1a9792ec7
3 changed files with 7 additions and 7 deletions

View File

@ -10,7 +10,7 @@
]
},
"themes": [
"tutorial",
"grasslands",
"cave",
"castle"
]

View File

@ -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"

View File

@ -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)