{
 "pack": 1,
 "id": "c4c:beh:cycle_win_fours",
 "type": "behaviour",
 "version": "1.0.0",
 "name": "Cheer (four legs, win)",
 "description": "An animal on four legs cheers: a play bow, a bounce, its tail wagging hard and a happy face, then stands again: the win of the game cycles for four legs, 1.2 seconds.",
 "author": {
  "id": "c4c",
  "name": "Crafts4Class"
 },
 "license": "c4c-free",
 "remixable": true,
 "derived_from": [],
 "preview": {
  "moves": [
   "cycle_win_fours"
  ],
  "seconds": 3
 },
 "content_hash": "sha256:58a23ad31ff8df541d91273d12d55d68e12bd12bdb613d5cbeca6e2fb43dc047",
 "content": {
  "v": 1,
  "kind": "behaviour",
  "name": "cycle_win_fours",
  "params": {
   "h": 540,
   "leg": 0.33
  },
  "scripts": [
   {
    "hat": {
     "on": "start"
    },
    "body": [
     {
      "op": "view",
      "to": "side"
     },
     {
      "op": "mood",
      "mood": "happy"
     },
     {
      "op": "ramp",
      "to": {
       "part:torso": -16,
       "part:head": 10,
       "part:tail": 20
      },
      "over": 0.2,
      "ease": "out"
     },
     {
      "op": "ramp",
      "to": {
       "part:torso": 0,
       "part:head": 6
      },
      "over": 0.15,
      "ease": "in"
     },
     {
      "op": "ramp",
      "to": {
       "dy": "=-0.05*h",
       "part:leg#0": -12,
       "part:shin#0": 10,
       "part:foot#0": 0,
       "part:leg#1": -12,
       "part:shin#1": 10,
       "part:foot#1": 0,
       "part:leg#2": 16,
       "part:shin#2": 10,
       "part:foot#2": 0,
       "part:leg#3": 16,
       "part:shin#3": 10,
       "part:foot#3": 0,
       "mouth": 0.5
      },
      "over": 0.15,
      "ease": "out"
     },
     {
      "op": "ramp",
      "to": {
       "dy": 0,
       "part:leg#0": 0,
       "part:shin#0": 0,
       "part:foot#0": 0,
       "part:leg#1": 0,
       "part:shin#1": 0,
       "part:foot#1": 0,
       "part:leg#2": 0,
       "part:shin#2": 0,
       "part:foot#2": 0,
       "part:leg#3": 0,
       "part:shin#3": 0,
       "part:foot#3": 0
      },
      "over": 0.12,
      "ease": "in"
     },
     {
      "op": "for",
      "s": 0.4,
      "body": [
       {
        "op": "wave",
        "ch": "part:tail",
        "shape": "sin",
        "every": 0.16,
        "amp": 24
       },
       {
        "op": "wave",
        "ch": "part:head",
        "shape": "sin",
        "every": 0.2,
        "amp": 4
       }
      ]
     },
     {
      "op": "ramp",
      "to": {
       "part:head": 0,
       "part:tail": 0,
       "mouth": 0
      },
      "over": 0.18,
      "ease": "smooth"
     }
    ]
   }
  ]
 }
}
