forked from 0ad/0ad
Made the menu background scroll slightly faster.
This was SVN commit r10938.
This commit is contained in:
parent
c7baf204e7
commit
23959ec119
@ -34,7 +34,7 @@ function scrollBackgrounds(background)
|
||||
var w = h*16/9; // width of background image
|
||||
|
||||
// Offset the layers by oscillating amounts
|
||||
var t = (t0 - new Date) / 1000;
|
||||
var t = (t0 - new Date) / 700;
|
||||
var speed = 1/20;
|
||||
var off1 = 0.02 * w * (1+Math.cos(t*speed));
|
||||
var off2 = 0.12 * w * (1+Math.cos(t*speed)) - h*6/9;
|
||||
|
Loading…
Reference in New Issue
Block a user