+ cls.IMG = os.path.join('tunnel', 'tunnel_1way')
+ # because of the ordering of neighbors, we use this formulation
+ for x, angle in zip(connections, (90, 270, 0, 180)):
+ if x:
+ cls.ANGLE = angle
+ break
+ elif conn_count == 3:
+ # 3 point connector, rotated correctly
+ cls.IMG = os.path.join('tunnel', 'tunnel_3way')
+ # find the missing connection.
+ for x, angle in zip(connections, (0, 180, 270, 90)):
+ if not x:
+ cls.ANGLE = angle
+ break
+ elif conn_count == 2: