Skip to content

Commit 85ba120

Browse files
committed
updated core_random_integer() usage
1 parent 035c118 commit 85ba120

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

repo.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ function create_shape(type, loop_counter){
99
'color': type === 'positive'
1010
? '#206620'
1111
: '#663366',
12-
'height': core_random_integer({'max': max,}) + bonus,
13-
'width': core_random_integer({'max': max,}) + bonus,
14-
'x': core_random_integer({'max': canvas_properties['width'],}) - bonus / 2,
15-
'y': core_random_integer({'max': canvas_properties['height'] - 30,}) - bonus / 2 + 30,
12+
'height': core_random_integer(max) + bonus,
13+
'width': core_random_integer(max,) + bonus,
14+
'x': core_random_integer(canvas_properties['width']) - bonus / 2,
15+
'y': core_random_integer(canvas_properties['height'] - 30) - bonus / 2 + 30,
1616
},
1717
});
1818
}

0 commit comments

Comments
 (0)