public override void Start()
 {
     tileMap = new TileMap();
     tileMap.LoadTileMap("Texts/MapBig");
     AddChild(tileMap);
     player = new Player();
     cameraPosition = player.GetPosition();
     tileMap.AddChild(player);
     ListenForUpdate(Update);
     AddChild(hudShadow);
     AddChild(hudStuff);
 }
Beispiel #2
0
    public void ChangeLevel(string value)
    {
        Futile.stage.RemoveChild(tileMap);
        Futile.stage.RemoveChild(HeadsUpDisplay);
        this.RemoveAllChildren();
        Player p = tileMap.getPlayer();
        tileMap = new TileMap(this);
        tileMap.LoadTileMap("Text/"+value);
        tileMap.setPlayer(p);
        tileMap.getPlayer().Position = tileMap.getLevelData().getPlayerSpawns()[0];

        Futile.stage.AddChild(tileMap);
        Futile.stage.AddChild(HeadsUpDisplay);
        p = null;
    }
Beispiel #3
0
    public override void Start()
    {
        tileMap = new TileMap(this);
        tileMap.LoadTileMap("Text/MainArea");
        tileMap.LevelType = 5;
        player = new Player();
        tileMap.setPlayer(player);
        tileMap.getPlayer().Position = tileMap.getLevelData().getPlayerSpawns()[0];
        Futile.stage.AddChild(tileMap);
        Futile.stage.AddChild(HeadsUpDisplay);

        ListenForUpdate(Update);
    }