{
 "pack": 1,
 "id": "c4c:beh:cycle_climb_many",
 "type": "behaviour",
 "version": "1.0.0",
 "name": "Climb (many legs)",
 "description": "A crab climbs, reaching up with its claws in turn and pulling its legs up in alternating sets: the climb of the game cycles for many legs. It loops every 0.8 seconds.",
 "author": {
  "id": "c4c",
  "name": "Crafts4Class"
 },
 "license": "c4c-free",
 "remixable": true,
 "derived_from": [],
 "preview": {
  "moves": [
   "cycle_climb_many"
  ],
  "seconds": 2.4000000000000004
 },
 "content_hash": "sha256:62e1077dfb13b13078e0cd47f37d3bfddfb4cbe82911d26ffba2b5db227653a2",
 "content": {
  "v": 1,
  "kind": "behaviour",
  "name": "cycle_climb_many",
  "params": {
   "h": 540,
   "leg": 0.1
  },
  "scripts": [
   {
    "hat": {
     "on": "start"
    },
    "body": [
     {
      "op": "set",
      "to": {
       "part:arm:-1": -20,
       "part:arm:1": 20,
       "lift:arm:-1": "=0.07*h",
       "lift:arm:1": "=0.07*h"
      }
     },
     {
      "op": "wave",
      "ch": "part:arm:-1",
      "shape": "sin",
      "every": 0.8,
      "amp": -26
     },
     {
      "op": "wave",
      "ch": "part:arm:1",
      "shape": "sin",
      "every": 0.8,
      "amp": 26,
      "phase": 3.141592653589793
     },
     {
      "op": "gait",
      "every": 0.8,
      "stride": 12,
      "give": 4,
      "bend": 20,
      "armSwing": 0,
      "bob": null,
      "roll": 0
     },
     {
      "op": "drive",
      "ch": "lift:leg:-1",
      "value": "=0.02*h*max(0, -sin(2*pi*(local/(0.8) + 0)))"
     },
     {
      "op": "drive",
      "ch": "lift:leg:1",
      "value": "=0.02*h*max(0, -sin(2*pi*(local/(0.8) + 0.5)))"
     },
     {
      "op": "set",
      "to": {
       "dy": "=-0.016*h"
      }
     },
     {
      "op": "wave",
      "ch": "dy",
      "shape": "sin",
      "every": 0.4,
      "amp": "=-0.006*h"
     }
    ]
   }
  ]
 }
}
