Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 1.80 KB | None | 0 0
  1.         switch tiletype
  2.            
  3.             case 'P' % Pit type
  4.                 switch tiling
  5.                     case 'S'
  6.                         texture = pitSingle;
  7.                        
  8.                     case 'U'
  9.                         texture = pitUp;
  10.                        
  11.                     case 'L'
  12.                         texture = pitLeft;
  13.                        
  14.                     case 'D'
  15.                         texture = pitDown;
  16.                        
  17.                     case 'R'
  18.                         texture = pitRight;
  19.                        
  20.                     case 'UD'
  21.                         texture = pitVertical;
  22.                        
  23.                     case 'LR'
  24.                         texture = pitHorizontal;
  25.                        
  26.                     case 'UL'
  27.                         texture = pitUL;
  28.                        
  29.                     case 'LD'
  30.                         texture = pitLD;
  31.                        
  32.                     case 'DR'
  33.                         texture = pitDR;
  34.                        
  35.                     case 'UR'
  36.                         texture = pitUR;
  37.                        
  38.                     case 'ULR'
  39.                         texture = pitULR;
  40.                        
  41.                     case 'ULD'
  42.                         texture = pitULD;
  43.                        
  44.                     case 'LDR'
  45.                         texture = pitLDR;
  46.                        
  47.                     case 'UDR'
  48.                         texture = pitUDR;
  49.                        
  50.                     case 'ULDR'
  51.                         texture = pitFourC;
  52.                        
  53.                     otherwise
  54.                         texture = pitSingle;
  55.                        
  56.                 end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement