{
 "pack": 1,
 "id": "c4c:beh:cycle_win_many",
 "type": "behaviour",
 "version": "1.0.0",
 "name": "Cheer (many legs, win)",
 "description": "A crab cheers: its claws up high and snapping, two little hops and a happy face, then stands again: the win of the game cycles for many legs, 1.2 seconds.",
 "author": {
  "id": "c4c",
  "name": "Crafts4Class"
 },
 "license": "c4c-free",
 "remixable": true,
 "derived_from": [],
 "preview": {
  "moves": [
   "cycle_win_many"
  ],
  "seconds": 3
 },
 "content_hash": "sha256:e0065bc99124ae45b34044ed3dec23e0d0d0792b579932976e4d6d23ac05e5aa",
 "content": {
  "v": 1,
  "kind": "behaviour",
  "name": "cycle_win_many",
  "params": {
   "h": 540,
   "leg": 0.1
  },
  "scripts": [
   {
    "hat": {
     "on": "start"
    },
    "body": [
     {
      "op": "mood",
      "mood": "happy"
     },
     {
      "op": "ramp",
      "to": {
       "part:arm:-1": -23,
       "part:arm:1": 23,
       "lift:arm:-1": "=0.076*h",
       "lift:arm:1": "=0.076*h",
       "mouth": 0.5
      },
      "over": 0.2,
      "ease": "out"
     },
     {
      "op": "together",
      "branches": [
       [
        {
         "op": "for",
         "s": 0.8,
         "body": [
          {
           "op": "wave",
           "ch": "part:claw:-1",
           "shape": "sin",
           "every": 0.16,
           "amp": 14
          },
          {
           "op": "wave",
           "ch": "part:claw:1",
           "shape": "sin",
           "every": 0.16,
           "amp": -14
          },
          {
           "op": "wave",
           "ch": "dy",
           "shape": "abssin",
           "every": 0.8,
           "amp": "=-0.04*h"
          },
          {
           "op": "wave",
           "ch": "part:arm:-1",
           "shape": "sin",
           "every": 0.4,
           "amp": -8
          },
          {
           "op": "wave",
           "ch": "part:arm:1",
           "shape": "sin",
           "every": 0.4,
           "amp": 8
          }
         ]
        }
       ]
      ]
     },
     {
      "op": "ramp",
      "to": {
       "part:arm:-1": 0,
       "part:arm:1": 0,
       "lift:arm:-1": "=0.03*h",
       "lift:arm:1": "=0.03*h",
       "mouth": 0
      },
      "over": 0.2,
      "ease": "smooth"
     }
    ]
   }
  ]
 }
}
