Renamed tutorial to grasslands
parent
8651b44cf0
commit
b1a9792ec7
|
@ -10,7 +10,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"themes": [
|
"themes": [
|
||||||
"tutorial",
|
"grasslands",
|
||||||
"cave",
|
"cave",
|
||||||
"castle"
|
"castle"
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"name": "playground",
|
"name": "playground",
|
||||||
"theme": "tutorial",
|
"theme": "grasslands",
|
||||||
"abilities": [
|
"abilities": [
|
||||||
],
|
],
|
||||||
"file": "playground.csv"
|
"file": "playground.csv"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "tutorial",
|
"name": "grasslands",
|
||||||
"theme": "tutorial",
|
"theme": "grasslands",
|
||||||
"abilities": [
|
"abilities": [
|
||||||
],
|
],
|
||||||
"file": "0-tutorial.csv"
|
"file": "0-tutorial.csv"
|
||||||
|
|
|
@ -20,7 +20,7 @@ from ui_elements.ClickEvent import ClickEvent
|
||||||
from ui_elements.KeyManager import KeyManager
|
from ui_elements.KeyManager import KeyManager
|
||||||
|
|
||||||
BACKGROUND_IMAGES_UNSCALED = {
|
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'),
|
'castle': pygame.image.load('data/sprites/castle_bg.png'),
|
||||||
'cave': pygame.image.load('data/sprites/cave_bg.png'),
|
'cave': pygame.image.load('data/sprites/cave_bg.png'),
|
||||||
'menu': pygame.image.load('data/sprites/intro_bg.png'),
|
'menu': pygame.image.load('data/sprites/intro_bg.png'),
|
||||||
|
@ -29,7 +29,7 @@ BACKGROUND_IMAGES_UNSCALED = {
|
||||||
}
|
}
|
||||||
|
|
||||||
BACKGROUND_IMAGES_SCALED = {
|
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)),
|
'castle': pygame.transform.scale(BACKGROUND_IMAGES_UNSCALED['castle'], (1, 1)),
|
||||||
'cave': pygame.transform.scale(BACKGROUND_IMAGES_UNSCALED['cave'], (1, 1)),
|
'cave': pygame.transform.scale(BACKGROUND_IMAGES_UNSCALED['cave'], (1, 1)),
|
||||||
'menu': pygame.transform.scale(BACKGROUND_IMAGES_UNSCALED['menu'], (1, 1)),
|
'menu': pygame.transform.scale(BACKGROUND_IMAGES_UNSCALED['menu'], (1, 1)),
|
||||||
|
@ -102,7 +102,7 @@ class MainLoop:
|
||||||
self.level = level
|
self.level = level
|
||||||
self.set_game_state(self.GAME_STATE_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)
|
self.set_game_state(self.GAME_STATE_LEVEL_SELECTION)
|
||||||
if self.screen_manager is not None and isinstance(self.screen_manager, LevelSelectionScreenManager):
|
if self.screen_manager is not None and isinstance(self.screen_manager, LevelSelectionScreenManager):
|
||||||
self.screen_manager.select_theme(theme)
|
self.screen_manager.select_theme(theme)
|
||||||
|
|
Loading…
Reference in New Issue