Overflown/gamedata/scenes.py

25 lines
775 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
def ingame(game,level="Level 2"):
game.scaleCamera(416,234)
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.scaleCamera(416,234)
game.globals["camerax"] = 0
game.globals["cameray"] = 0
game.gameloop.reinit()
tileset = TilesetRenderer(0,0,game,"Overworld")
game.gameloop.summon(tileset)