29 lines
863 B
Python
29 lines
863 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
|
|
|
|
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)
|