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