--- ../bzmap-orig/race.py 2004-11-10 18:40:05.759731440 +0200 +++ race.py 2004-11-10 20:17:45.984841808 +0200 @@ -475,6 +475,25 @@ t.add( Box( p1 , p2 ) ) return u , t +def HorisontalLaserObstacle( level ) : + u = Union() + t = UnionBox() + length = level * 16 + 48 + + p1 = Point( w0 - 8 , -1 , -length ) + p2 = Point( w0 - 8.25 , 3 , length ) + u.add( Box( p1 , p2 ) ) + + p1 = Point( w8 + 8 , -1 , -length ) + p2 = Point( w8 + 8.25 , 3 , length ) + u.add( Box( p1 , p2 ) ) + + idly = rand( 20 ) / 2 + p = Point( w0 - 8 , 1 , -length ) + u.add( Weapon( p , type = Laser , frequencies = [ 5 ] , + initialDelay = idly ).rotate( -15 ) ) + return u , t + def LaserLadderHurdleObstacle( level ) : u = Union() t = UnionBox() @@ -1289,6 +1308,7 @@ 'LaserLadderHurdle' : ( 1 , True , LaserLadderHurdleObstacle ) , 'LaserMultiHurdle' : ( 1 , True , LaserMultiHurdleObstacle ) , 'LaserZigZagHurdle' : ( 1 , True , LaserZigZagHurdleObstacle ) , +'HorisontalLaser' : ( 1 , False, HorisontalLaserObstacle ) , 'LeapFrog' : ( 1 , True , LeapFrogObstacle ) , 'L-Turn' : ( 4 , True , LturnObstacle ) , 'Maze' : ( 4 , True , MazeObstacle ) ,