jackitch

part of basepngloader.as

Oct 28th, 2013
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.64 KB | None | 0 0
  1.         else if (pixel == color_platform_right)
  2.         {
  3.             CBlob@ blob = spawnBlob( map, "wooden_platform", offset, 255, true );
  4.             offsets[autotile_offset].push_back( offset );
  5.  
  6.             blob.getSprite().RotateAllBy(-90, Vec2f_zero);
  7.             CShape@ shape = blob.getShape();
  8.             shape.getConsts().snapToGrid = false;
  9.             shape.SetStatic( false );
  10.             shape.SetRotationsAllowed( true );
  11.             blob.setAngleDegrees( -90 );
  12.             shape.SetOffset(Vec2f(0,-3));
  13.             shape.AddPlatformDirection( Vec2f(1,0), 70, false );
  14.             //shape.RotateBy( 90 );
  15.             shape.SetRotationsAllowed( false );
  16.             shape.SetStatic( true );
  17.             shape.getConsts().snapToGrid = true;
  18.             Vec2f(0,0);
  19.         }
Advertisement
Add Comment
Please, Sign In to add comment