mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Smoother snow
This commit is contained in:
@@ -184,12 +184,12 @@ var Nochan = {
|
||||
parent.appendChild(snow);
|
||||
Nochan.fall_snow(snow);
|
||||
Nochan.start_snowfall();
|
||||
}, 700);
|
||||
}, 800);
|
||||
},
|
||||
|
||||
fall_snow: function(corn){
|
||||
corn.style.top = (parseInt(corn.style.top.replace("px", ""))+2)+"px";
|
||||
if(parseInt(corn.style.top.replace("px", "")) < document.getElementById("mega-background").offsetHeight-5){
|
||||
if(parseInt(corn.style.top.replace("px", "")) < document.getElementById("mega-background").offsetHeight-2.5){
|
||||
setTimeout(function(){
|
||||
Nochan.fall_snow(corn);
|
||||
},50);
|
||||
|
||||
Reference in New Issue
Block a user