2020-09-09 12:32:01 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
setYRandom
|
|
|
|
};
|
|
|
|
|
|
|
|
function setYRandom(context, events, done) {
|
2020-09-15 10:06:11 +02:00
|
|
|
context.vars.x = (0 + Math.round(Math.random() * 1472));
|
|
|
|
context.vars.y = (0 + Math.round(Math.random() * 1090));
|
|
|
|
context.vars.left = context.vars.x - 320;
|
|
|
|
context.vars.top = context.vars.y - 200;
|
|
|
|
context.vars.right = context.vars.x + 320;
|
|
|
|
context.vars.bottom = context.vars.y + 200;
|
2020-09-09 12:32:01 +02:00
|
|
|
return done();
|
2020-09-11 09:56:05 +02:00
|
|
|
}
|