Adding batched messages + the notion of notifier / zones (not plugged in the system yet)
This commit is contained in:
parent
1879c550c4
commit
9b702c75e3
13 changed files with 518 additions and 22 deletions
|
@ -34,10 +34,16 @@ scenarios:
|
|||
- emit:
|
||||
channel: "user-position"
|
||||
data:
|
||||
x: "{{ x }}"
|
||||
y: "{{ y }}"
|
||||
direction: 'down'
|
||||
moving: false
|
||||
position:
|
||||
x: "{{ x }}"
|
||||
y: "{{ y }}"
|
||||
direction: 'down'
|
||||
moving: false
|
||||
viewport:
|
||||
left: "{{ left }}"
|
||||
top: "{{ top }}"
|
||||
right: "{{ right }}"
|
||||
bottom: "{{ bottom }}"
|
||||
- think: 0.2
|
||||
count: 100
|
||||
- think: 10
|
||||
|
|
|
@ -5,7 +5,11 @@ module.exports = {
|
|||
};
|
||||
|
||||
function setYRandom(context, events, done) {
|
||||
context.vars.x = (883 + Math.round(Math.random() * 300));
|
||||
context.vars.y = (270 + Math.round(Math.random() * 300));
|
||||
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;
|
||||
return done();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue