Overflown/gamedata/scenes.py
2021-11-28 11:33:00 +01:00

35 lines
1016 B
Python

from gamedata.objects.ingame.player import Player
from gamedata.objects.ingame.tileset import TilesetRenderer
from gamedata.objects.ingame.water import Water
from gamedata.objects.results import Results
from gamedata.objects.cinematic import Cinematic
from gamedata.objects.endcinematic import EndCinematic
def ingame(game,level="Level 2"):
game.globals["camerax"] = 0
game.globals["cameray"] = 0
game.gameloop.reinit()
tileset = TilesetRenderer(0,0,game,level)
game.gameloop.summon(tileset)
water = Water(game)
game.gameloop.summon(water)
p1 = Player(game)
game.gameloop.summon(p1)
def overworld(game):
game.globals["camerax"] = 0
game.globals["cameray"] = 0
game.gameloop.reinit()
tileset = TilesetRenderer(0,0,game,"Overworld")
game.gameloop.summon(tileset)
def boot(game):
game.scaleCamera(416,234)
c = Cinematic(game)
game.gameloop.summon(c)
def end(game):
game.gameloop.reinit()
c = EndCinematic(game)
game.gameloop.summon(c)