1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/*-- Snow effect --*/
#strict
protected func Initialize() {
if(!IsNewgfx()) RemoveObject();
SetPosition(0,0);
}
func Snowing() {
for(var x; x<4; x++)
{
CreateParticle("Snow2",Random(LandscapeWidth()),0,0,25,RandomX(5,15),0);
CreateParticle("Snow2",Random(LandscapeWidth()),0,0,21,RandomX(10,20),0);
CreateParticle("Snow2",Random(LandscapeWidth()),0,0,17,RandomX(15,25),0);
CreateParticle("Snow2",Random(LandscapeWidth()),0,0,35,RandomX(20,30),0);
}
}
|