Package dwlab.shapes.layers

Examples of dwlab.shapes.layers.Layer


  @Override
  public void init() {
    Camera.current.setZoom( 32.0 );
    World world = World.fromFile( "res/parallax.lw" );
    Layer layer = (Layer) ( (Layer) world.findShape( Layer.class ) ).load();
    ground = (TileMap) layer.findShape( "Ground" );
    grid = (TileMap) layer.findShape( "Grid" );
    clouds = (TileMap) layer.findShape( "Clouds" );
  }
View Full Code Here


      Shape[] shapes = xMLObject.manageObjectArrayField( "collision-shapes", null, Shape.class );
      if( shapes != null ) {
        collisionSprites = new Sprite[ shapes.length ][];
        for( int n = 0; n < shapes.length; n++ ) {
          if( shapes[ n ] == null ) continue;
          Layer layer = shapes[ n ].toLayer();
          if( layer == null ) {
            if( shapes[ n ] != null ) {
              collisionSprites[ n ] = new Sprite[ 1 ];
              collisionSprites[ n ][ 0 ] = shapes[ n ].toSprite();
            }
View Full Code Here

TOP

Related Classes of dwlab.shapes.layers.Layer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.