name: Level 2

wave turtlePawn:
  spawner:
    - entity: ships/turtle.yaml 
      components:
        physics: 
            position: [380, -20]
        dumbScript: dumbscripts/pawnLeft.yaml
    - entity: ships/turtle.yaml
      components:
        physics: 
            position: [420, -20]
        dumbScript: dumbscripts/pawnRight.yaml

wave turtlePawn2:
  spawner:
    - entity: ships/turtle.yaml 
      components:
        physics: 
            position: [100, -20]
        dumbScript: dumbscripts/pawnRight.yaml
    - entity: ships/turtle.yaml
      components:
        physics: 
            position: [700, -100]
        dumbScript: dumbscripts/pawnLeft.yaml

wave tritonSides:
  spawner:
    - entity: ships/triton.yaml
      components:
        physics: 
            position: [600, -90]
    - entity: ships/triton.yaml
      components:
        physics: 
            position: [200, -90]

wave tritonMiddle:
  spawner:
    - entity: ships/triton.yaml
      components:
        physics: 
            position: [400, -30]

wave harpooners:
  spawner:
    - entity: ships/harpooner.yaml 
      components:
        physics: 
            position: [400, -50]
        dumbScript: dumbscripts/moveFire.yaml
    - entity: ships/turtle.yaml 
      components:
        physics: 
            position: [550, -100]
        dumbScript: dumbscripts/moveFire.yaml
    - entity: ships/harpooner.yaml 
      components:
        physics: 
            position: [700, -10]
        dumbScript: dumbscripts/moveFire.yaml
    - entity: ships/turtle.yaml 
      components:
        physics: 
            position: [250, -100]
        dumbScript: dumbscripts/moveFire.yaml
    - entity: ships/harpooner.yaml 
      components:
        physics: 
            position: [100, -10]
        dumbScript: dumbscripts/moveFire.yaml

wave peaIntroduction:
  spawner:
    - entity: ships/peaShooter.yaml 
      components:
        physics: 
            position: [300, -30]
        dumbScript: dumbscripts/justKillPlayer.yaml
    - entity: ships/peaShooter.yaml 
      components:
        physics: 
            position: [500, -30]
        dumbScript: dumbscripts/justKillPlayer.yaml

wave peaDeath:
  spawner:
    - entity: ships/peaShooter.yaml 
      components:
        physics: 
            position: [100, -10]
        dumbScript: dumbscripts/moveFire.yaml
    - entity: ships/peaShooter.yaml 
      components:
        physics: 
            position: [250, -10]
        dumbScript: dumbscripts/moveFire.yaml
    - entity: ships/peaShooter.yaml 
      components:
        physics: 
            position: [400, -10]
        dumbScript: dumbscripts/moveFire.yaml
    - entity: ships/peaShooter.yaml 
      components:
        physics: 
            position: [550, -10]
        dumbScript: dumbscripts/moveFire.yaml
    - entity: ships/peaShooter.yaml 
      components:
        physics: 
            position: [700, -10]
        dumbScript: dumbscripts/moveFire.yaml

wave cavalary:
  spawner:
    - entity: ships/peaShooter.yaml 
      components:
        physics: 
            position: [400, -50]
        dumbScript: dumbscripts/moveFire.yaml
    - entity: ships/harpooner.yaml 
      components:
        physics: 
            position: [550, -70]
        dumbScript: dumbscripts/moveFire.yaml
    - entity: ships/peaShooter.yaml 
      components:
        physics: 
            position: [700, -50]
        dumbScript: dumbscripts/moveFire.yaml

wave cavalary2:
  spawner:
    - entity: ships/harpooner.yaml 
      components:
        physics: 
            position: [250, -50]
        dumbScript: dumbscripts/pawnLeft.yaml
    - entity: ships/harpooner.yaml 
      components:
        physics: 
            position: [550, -50]
        dumbScript: dumbscripts/pawnRight.yaml

wave waveShooter:
  spawner:
    - entity: ships/waveShooter.yaml 
      components:
        physics: 
            position: [400, -70]
        dumbScript: dumbscripts/moveFire.yaml

wave support1:
  spawner:
    - entity: ships/harpooner.yaml 
      components:
        physics: 
            position: [400, -125]
        dumbScript: dumbscripts/support.yaml
    - entity: ships/waveShooter.yaml 
      components:
        physics: 
            position: [400, -30]
        dumbScript: dumbscripts/jets1.yaml

wave jetDown:
  spawner:
    - entity: ships/jet.yaml
      components:
        physics: 
          position: [550, -40]
    - entity: ships/jet.yaml
      components:
        physics: 
          position: [350, -40]

wave jetUpperSides:
  spawner:
    - entity: ships/jet.yaml
      components:
        physics: 
          position: [0, -20]
        dumbScript: dumbscripts/upperLeftToLeft.yaml
    - entity: ships/jet.yaml
      components:
        physics: 
          position: [800, -20]
        dumbScript: dumbscripts/upperRightToRight.yaml

wave arrowMiddle:
  spawner:
    - entity: ships/arrow.yaml
      components:
        physics: 
            position: [256, -30]


level:
  !!pairs
  - music: music/level/Recall of the Shadows.ogg
  - effect text:
      text: 42
      font: default 
      fontSize: 512
      color: rgbaFF000001
      time: 1.0      

  - effect lines:
      minWidth: 0.225
      maxWidth: 0.9
      minLength: 3.0
      maxLength: 12.0
      verticalScrollingSpeed: 250.0
      linesPerPixel: 0.0015
      detailLevel: 6
      color: rgbaD0D0FF28
  - effect lines:
      minWidth: 0.225
      maxWidth: 0.7
      minLength: 3.0
      maxLength: 12.0
      verticalScrollingSpeed: 275.0
      linesPerPixel: 0.0015
      detailLevel: 4
      color: rgbaE8DEB225
  - effect lines:
      minWidth: 0.15
      maxWidth: 0.6
      minLength: 2.0
      maxLength: 8.0
      verticalScrollingSpeed: 230.0
      linesPerPixel: 0.002
      detailLevel: 5
      color: rgbaD8D8FF18

####################################
  - wave: turtlePawn
  - wait: 0.3
  - wave: turtlePawn
  - wait: 0.3
  - wave: turtlePawn
  - wait: 0.3
  - wave: turtlePawn
  - wait: 0.3
  - wave: turtlePawn
  - wait: 3
  - wave: turtlePawn
  - wait: 0.4
  - wave: turtlePawn2
  - wait: 0.3
  - wave: turtlePawn
  - wait: 0.4
  - wave: turtlePawn2
  - wait: 3
  - wave: [turtlePawn, [100.0,  0]]
  - wait: 0.3
  - wave: [turtlePawn, [200.0,  -20]]
  - wait: 0.3
  - wave: [turtlePawn, [300.0,  -40]]
  - wait: 0.3
  - wave: [turtlePawn, [400.0,  -60]]
  - wait: 3
  - wave: [turtlePawn, [-100.0,  0]]
  - wait: 0.3
  - wave: [turtlePawn, [-200.0,  -20]]
  - wait: 0.3
  - wave: [turtlePawn, [-300.0,  -40]]
  - wait: 0.3
  - wave: [turtlePawn, [-400.0,  -60]]
  - wait: 3.0
  - wave: harpooners
  - wait: 3.0
  - wave: turtlePawn
  - wait: 0.3
  - wave: turtlePawn
  - wait: 0.3
  - wave: turtlePawn
  - wait: 0.3
  - wave: turtlePawn
  - wait: 0.3
  - wave: turtlePawn
  - wait: 3
  - wave: tritonSides
  - wait: 3.5
  - wave: peaIntroduction
  - wait: 3
  - wave: [peaIntroduction, [-200.0,  -60]]
  - wait: 3
  - wave: [peaIntroduction, [100.0,  -60]]
  - wait: 4.5
  - wave: [jetDown, [-200.0,  -40]]
  - wait: 2.0
  - wave: [jetDown, [100.0,  -40]]
  - wait: 4.0
  - wave: turtlePawn2
  - wait: 0.3
  - wave: turtlePawn2
  - wait: 0.3
  - wave: turtlePawn2
  - wait: 0.3
  - wave: turtlePawn2
  - wait: 2.5
  - wave: harpooners
  - wait: 3.5
  - wave: tritonSides
  - wave: tritonMiddle
  - wait: 4
  - wave: peaDeath
  - wait: 3
  - wave: peaDeath
  - wait: 3
  - wave: jetUpperSides
  - wait: 4.5
  - wave: [cavalary, [-300.0,  -40]]
  - wait: 2
  - wave: [cavalary, [-100.0,  -40]]
  - wait: 4
  - wave: tritonMiddle
  - wait: 2.5
  - wave: turtlePawn
  - wait: 0.3
  - wave: turtlePawn
  - wait: 0.3
  - wave: turtlePawn
  - wait: 1.5
  - wave: turtlePawn
  - wait: 0.3
  - wave: turtlePawn
  - wait: 0.3
  - wave: turtlePawn
  - wait: 0.3
  - wave: turtlePawn
  - wait: 0.3
  - wave: turtlePawn
  - wait: 3
  - wave: support1
  - wait: 2.5
  - wave: [cavalary, [-100.0,  -40]]
  - wait: 2
  - wave: [support1, [300.0,  -40]]
  - wait: 2.5
  - wave: tritonSides
  - wave: tritonMiddle
  - wait: 4
  - wave: [cavalary, [-100.0,  -40]]
  - wait: 2
  - wave: support1
  - wait: 2.5
  - wave: [cavalary, [-300.0,  -40]]
  - wait: 2
  - wave: jetUpperSides
  - wait: 3
  - wave: waveShooter
  - wave: cavalary2
  - wait: 1
  - wave: cavalary2
  - wait: 3.5
  - wave: jetDown
  - wait: 3
  - wave: waveShooter
  - wave: cavalary2
  - wait: 3
  - wave: tritonSides
  - wave: tritonMiddle
  - wait: 3.5
  - wave: turtlePawn
  - wait: 0.3
  - wave: turtlePawn
  - wait: 0.3
  - wave: turtlePawn
  - wait: 3
  - wave: [support1, [-100.0,  -40]]
  - wave: [support1, [100.0,  -40]]
  - wait: 3
  - wave: [support1, [-300.0,  -40]]
  - wave: [support1, [300.0,  -40]]
  - wait: 5
  - wave: [arrowMiddle, [0.0, 0.0]]
  - wait: 1
  - wave: [arrowMiddle, [0.0, 0.0]]
  - wait: 8
