The Wordpress theme I am using interprets ||
as line break. I have tried embedding it as an external script but still to no avail.
Is there an alternative other than changing the Wordpress theme? Below is the snippet I am referring to.
Events.on(engine, 'afterUpdate', function() {
if (mouseConstraint.mouse.button === -1 && (rock.position.x > 190 || rock.position.y < 430)) {
rock = Bodies.polygon(170, 450, 7, 20, rockOptions);
World.add(engine.world, rock);
elastic.bodyB = rock;
}
});