Ignore:
Timestamp:
2015-06-26 03:34:53 (5 years ago)
Author:
mijoliim
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2015/26/MikkoL/JRPG/JRPG/JRPG/Overworld/CollisionMap.cs

    r6376 r6415  
    3232        _CollisionMap.SetTileMethod("00ffff", SetWalkableWaterTile); 
    3333        _CollisionMap.SetTileMethod("0080ff", SetUnpassableWaterTile); 
     34        _CollisionMap.SetTileMethod("ff80ff", SetExit01); 
    3435        _CollisionMap.SetTileMethod(Color.Transparent, SetEmptyTile); 
    3536        _CollisionMap.ColorTolerance = 0; 
     
    7071        CollisionMapArray.SetValue(UnpassableWater, (int)Position.X + (int)Math.Floor((double)CollisionMapArray.GetLength(0) / 2), (int)Math.Floor(Position.Y) + (int)Math.Floor((double)CollisionMapArray.GetLength(1) / 2)); 
    7172    } 
     73    void SetExit01(Vector Position, double Width, double Height) 
     74    { 
     75        Tile Exit = new Tile(TileType.Exit); 
     76        Exit.ExitNum = 0; 
     77        CollisionMapArray.SetValue(Exit, (int)Math.Floor(Position.X) + (int)Math.Floor((double)CollisionMapArray.GetLength(0) / 2), (int)Math.Floor(Position.Y) + (int)Math.Floor((double)CollisionMapArray.GetLength(1) / 2)); 
     78    } 
    7279 
    7380    void CheckForEmptyTiles() 
Note: See TracChangeset for help on using the changeset viewer.