Changeset 64

Show
Ignore:
Timestamp:
12/02/07 15:31:22 (1 year ago)
Author:
clayasaurus
Message:

plaer coesa

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/tilemap.d

    r63 r64  
    115115} 
    116116 
    117 class TileMap : GroupNode, IDrawable 
     117class TileMap : World /*GroupNode, IDrawable*/ 
    118118{ 
    119119    // construct tilemap 
     
    156156        { 
    157157            loadLevel(); 
     158             
     159            // setup the bounds of the level  
     160            walls[0] = new Box(this, Size(pixWidth,10), float.max); 
     161            walls[0].translation.set(pixWidth/2, 0 - 6); 
     162             
     163            walls[1] = new Box(this, Size(pixWidth,10), float.max); 
     164            walls[1].translation.set(pixWidth/2, pixHeight + 6); 
     165             
     166            walls[2] = new Box(this, Size(10,pixHeight), float.max); 
     167            walls[2].translation.set(0 - 6, pixHeight/2); 
     168             
     169            walls[3] = new Box(this, Size(10,pixHeight), float.max); 
     170            walls[3].translation.set(pixWidth + 6, pixHeight/2); 
    158171        } 
    159172    } 
     
    474487    // Game variables 
    475488    LevelInfo levelInfo;  
     489    Box walls[4]; 
     490     
     491     
    476492}