# The assets generated from running this script are then used within your experimental scripts. # These files can be found in the assets directory of the Zantiks homepage. DEFINE SHOWTIME 1 DEFINE DRAWDELAY 0.5 #coordinates of centre in mm DEFINE X_OFFSET 186 # 186 is the x coordinate of the centre of the system's cutout in which the tank sits. DEFINE Y_OFFSET 141 # 141 is the y coordinate of the centre of the system's cutout in which the tank sits. DEFINE TANK_ACROSS 360 # 360 mm is the size of the actual tank across DEFINE TANK_UPDOWN 270 # 270 mm is the size of the actual tank vertically ACTION MAIN INVOKE(aLT3D,1) INVOKE(zLT3D,1) COMPLETE ACTION aLT3D @101 = TANK_UPDOWN - 6 # accounts for divider walls @101 = @101 / 2 # sets width of arenas ResetDrawing() # Restore everything to default Set(DrawArena,1) ShapeType(RECTANGLE,TANK_ACROSS,@101) # Template for arena overlay @102 = Y_OFFSET + 69.25 + 3 ShapeDraw(X_OFFSET,@102) # Put shape at current position SaveDrawing("TEMP") # Save temporary result to disk to see arenas drawn across on screen WAIT(DRAWDELAY) # Wait time between next arena drawn Set(DrawArena,2) @102 = Y_OFFSET - 69.25 - 3 ShapeDraw(X_OFFSET,@102) # Put shape at current position SaveDrawing("TEMP") # Save temporary result to disk to see arenas drawn across on screen WAIT(DRAWDELAY) # Wait time between next arena drawn # Wait time between next arena drawn WAIT(SHOWTIME) SaveDrawing("aLT3D") # Save result to disk COMPLETE ACTION zLT3D @101 = TANK_UPDOWN - 6 # accounts for divider walls @101 = @101 / 2 # sets width of arenas ResetDrawing() # Restore everything to default @101 = @101 / 3 ShapeType(RECTANGLE,TANK_ACROSS,@101) # Template for arena overlay Set(DrawZone,1) @102 = Y_OFFSET - 3 - 22 ShapeDraw(X_OFFSET,@102) # Put shape at current position SaveDrawing("TEMP") # Save temporary result to disk to see arenas drawn across on screen WAIT(DRAWDELAY) # Wait time between next arena drawn Set(DrawZone,2) @102 = Y_OFFSET - 3 - 22 - 44 ShapeDraw(X_OFFSET,@102) # Put shape at current position SaveDrawing("TEMP") # Save temporary result to disk to see arenas drawn across on screen WAIT(DRAWDELAY) # Wait time between next arena drawn Set(DrawZone,3) @102 = Y_OFFSET - 3 - 22 - 44 - 44 ShapeDraw(X_OFFSET,@102) # Put shape at current position WAIT(SHOWTIME) SaveDrawing("zLT3D") # Save result to disk COMPLETE