Sub Snowfalling
For i=1 To 500
shapes.Animate(sSnow[i],Shapes.GetLeft(sSnow[i]),200+Math.GetRandomNumber(400),2000)
shapes.Animate(LSnow[i],Shapes.GetLeft(LSnow[i]),200+Math.GetRandomNumber(600),2000)
Program.Delay(200)
EndFor
EndSub
Sub Snow
GraphicsWindow.BrushColor="#E6EAE3"
For i=1 To 500
GraphicsWindow.FontSize=Math.GetRandomNumber(20)+2
sSnow[i]= Shapes.AddText("*")
LSnow[i]= Shapes.AddText("※")
shapes.Move(sSnow[i],Math.GetRandomNumber(1200),-100)
shapes.Move(LSnow[i],Math.GetRandomNumber(1200),-100)
EndFor
EndSub
Sub FlutterDown
sounds()
NN=0
while NN<110
NN=NN+1
For j=1 To 10
DX["L"][j]=(Shapes.GetLeft(shp["L"][j][1])-500)/100+5+Math.GetRandomNumber(5)
DY["L"][j]=(500-Shapes.Gettop(shp["L"][j][1]))/100+ 5-Math.GetRandomNumber(10)
DX["R"][j]=(500-Shapes.GetLeft(shp["R"][j][1]))/100+5+Math.GetRandomNumber(5)
DY["R"][j]=(500-Shapes.Gettop(shp["R"][j][1]))/100+ 5-Math.GetRandomNumber(10)
Flapping()
For i=1 to 9
shapes.Move(shp["L"][j][i],Shapes.GetLeft(shp["L"][j][i])-DX["L"][j],Shapes.Gettop(shp["L"][j][i]) +DY["L"][j])
shapes.Move(shp["R"][j][i],Shapes.GetLeft(shp["R"][j][i])+DX["R"][j],Shapes.Gettop(shp["R"][j][i]) +DY["R"][j])
EndFor
endfor
Program.Delay(50)
endwhile
For M=1 To 10 Step 0.2
For j=1 To 10
Shapes.rotate(shp["L"][j][4],9*M)
Shapes.rotate(shp["L"][j][6],9*M)
Shapes.rotate(shp["R"][j][4],-9*M)
Shapes.rotate(shp["R"][j][6],-9*M)
EndFor
Program.Delay(50)
EndFor
EndSub
Sub FlyingAround
sounds()
while LL<2
For j=1 To 10
DX[j]=5+Math.GetRandomNumber(5)
DY[j]= 5-Math.GetRandomNumber(10)
Flapping()
For i=1 to 9
shapes.Move(shp["L"][j][i],Shapes.GetLeft(shp["L"][j][i])-DX[j],Shapes.Gettop(shp["L"][j][i]) +DY[j])
shapes.Move(shp["R"][j][i],Shapes.GetLeft(shp["R"][j][i])+DX[j],Shapes.Gettop(shp["R"][j][i]) +DY[j])
EndFor
endfor
Program.Delay(50)
LX=Shapes.GetLeft( shp["L"][10][1])
RX=Shapes.GetLeft( shp["R"][10][1])
If LX<-200 and RX>1400 Then
sounds()
LL=LL+1
For K=1 to 2
For j=1 to 10
DY[J]=-2.1
Flapping()
For i=1 to 9
Shapes.Move(shp[LR[k]][j][i], Xy0["X"][k] + shape[LR[k]][j][i]["x"]*s1+(j-1)*90, XY0["Y"][K] + shape[LR[k]][j][i]["y"]*s1+Duckdy)
Shapes.Rotate(shp[LR[k]][j][i], shape[LR[k]][j][i]["angle"])
EndFor
endfor
endfor
EndIf
endwhile
EndSub
Sub sounds
Sound.Stop(path)
Sound.Play (path)
EndSub
Sub Flapping
Shapes.Zoom(shp["L"][j][4],1,0.7-DY[j]/7)
Shapes.Zoom(shp["L"][j][6],1,0.7-DY[j]/7)
Shapes.Zoom(shp["R"][j][4],1,0.7-DY[j]/7)
Shapes.Zoom(shp["R"][j][6],1,0.7-DY[j]/7)
EndSub