Overflown/gamedata/scenes.py

35 lines
1016 B
Python
Raw Normal View History

2021-11-21 12:28:27 +01:00
from gamedata.objects.ingame.player import Player
from gamedata.objects.ingame.tileset import TilesetRenderer
from gamedata.objects.ingame.water import Water
2021-11-24 15:47:52 +01:00
from gamedata.objects.results import Results
2021-11-27 20:24:50 +01:00
from gamedata.objects.cinematic import Cinematic
2021-11-28 11:33:00 +01:00
from gamedata.objects.endcinematic import EndCinematic
2021-06-25 14:42:35 +02:00
2021-11-21 18:02:46 +01:00
def ingame(game,level="Level 2"):
2021-11-23 11:11:13 +01:00
game.globals["camerax"] = 0
game.globals["cameray"] = 0
2021-06-25 16:13:52 +02:00
game.gameloop.reinit()
2021-11-21 12:28:27 +01:00
tileset = TilesetRenderer(0,0,game,level)
2021-06-25 16:13:52 +02:00
game.gameloop.summon(tileset)
2021-11-21 12:28:27 +01:00
water = Water(game)
2021-11-16 11:32:31 +01:00
game.gameloop.summon(water)
2021-07-03 00:26:02 +02:00
p1 = Player(game)
game.gameloop.summon(p1)
2021-06-25 16:13:52 +02:00
2021-11-22 22:14:09 +01:00
def overworld(game):
2021-11-23 11:11:13 +01:00
game.globals["camerax"] = 0
game.globals["cameray"] = 0
2021-11-22 22:14:09 +01:00
game.gameloop.reinit()
tileset = TilesetRenderer(0,0,game,"Overworld")
game.gameloop.summon(tileset)
2021-11-27 20:24:50 +01:00
def boot(game):
game.scaleCamera(416,234)
c = Cinematic(game)
game.gameloop.summon(c)
2021-11-28 11:33:00 +01:00
def end(game):
game.gameloop.reinit()
c = EndCinematic(game)
game.gameloop.summon(c)