int main(){
setViewportZ(400);
setXRotation(getXRotation());
int x=getLocal("x");
int y=getLocal("y");
if(x==0&&y==0){
int posx=getLocal("posx");
if(posx>1200)
posx=200;
setLocal("posx",posx+2);
int startlogo=getLocal("startlogo");
int stoplogo=startlogo+8;
int s=0;
while(startlogo<stoplogo+1){
int x1=getLocal(s,"x");
int y1=getLocal(s,"y");
setX(s,posx+x1-60);
setY(s,y1+130);
startlogo=startlogo+1;
s++;
}
int earthstart=getGlobal("earthstart");
int earthstop=getGlobal("earthstop");
while(earthstart<earthstop+1){
if(isLocalSet(earthstart,"x")==false){
setLocal(earthstart,"x",getX(earthstart));
}
int x2=getLocal(earthstart,"x");
setX(earthstart,(x2+posx/4));
earthstart=earthstart+1;
}
int sunstart=getGlobal("sunstart");
int sunstop=getGlobal("sunstop");
while(sunstart<sunstop+1){
if(isLocalSet(sunstart,"x")==false){
setLocal(sunstart,"x",getX(sunstart));
}
int x2=getLocal(sunstart,"x");
setX(sunstart,(x2+posx/2));
sunstart=sunstart+1;
}
setViewportX(posx+10);
setViewportY(250);
}
}