Ignore:
Timestamp:
2016-07-04 17:25:02 (3 years ago)
Author:
sieerinn
Message:

Liikkuvia tasanteita

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2016/27/ohjaajat/VenienteFragore/VenienteFragore/VenienteFragore/VenienteFragore.cs

    r7733 r7734  
    2121        objectMethods.Add("ball", TestBall); 
    2222        objectMethods.Add("player", CreatePlayer); 
     23        objectMethods.Add("moving", CreatePlayer); 
    2324 
    2425        var tileMap = TiledTileMap.FromLevelAsset("thehub"); 
     
    5657    { 
    5758         
     59    } 
     60 
     61    private void CreateMovingPlatform(Vector position, double width, double height, Dictionary<string, string> properties) 
     62    { 
     63        var dirX = double.Parse(properties["directionx"]); 
     64        var dirY = double.Parse(properties["directiony"]); 
     65        var distance = double.Parse(properties["distance"]); 
     66        var platform = new MovingPlatform(position, new Vector(dirX, dirY), distance, width, height); 
     67        Add(platform); 
    5868    } 
    5969 
Note: See TracChangeset for help on using the changeset viewer.