Improve wave scrolling when rotating the camera
This commit is contained in:
parent
bbe3718912
commit
cdd070dd19
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ Level = function(levelName) {
|
||||||
|
|
||||||
for (var i = 1024; i > 150; i *= 0.85) {
|
for (var i = 1024; i > 150; i *= 0.85) {
|
||||||
waves.push(ScrollPlane(
|
waves.push(ScrollPlane(
|
||||||
i, -3000/i, 40, 250/i, (i-420)/2, (Math.random()*300-150)/i, "water", Math.round(i/8)
|
i, -3000/i, 40, 250/i, (i)/2, (Math.random()*300-150)/i, "water", Math.round(i/8)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue