Тема: конкурс!
Показать сообщение отдельно
Старый 24.08.2005, 02:05
K.A.T.A.F.A.L.K.E.R вне форума Посмотреть профиль Отправить личное сообщение для K.A.T.A.F.A.L.K.E.R Найти все сообщения от K.A.T.A.F.A.L.K.E.R
  № 113  
Ответить с цитированием
K.A.T.A.F.A.L.K.E.R
 
Аватар для K.A.T.A.F.A.L.K.E.R

Регистрация: Jul 2005
Адрес: Go, Ukraine!
Сообщений: 787
Отправить сообщение для K.A.T.A.F.A.L.K.E.R с помощью ICQ
Вот мой шедевр змеестроения Рекордный размер! 562 байта Можно конфетку с полочки??? А вот исходники:
x = 0;y = 0;a = 135;i = 0;l = 30;
createEmptyMovieClip("t", getNextHighestDepth());
t.lineStyle(20, 0xAAAACC);
t.moveTo(0, 0);
t.lineTo(0.15, 0);
onEnterFrame = function () {
if (Key.isDown(39)) a += 10;
if (Key.isDown(37)) a -= 10;
x += 2*Math.sin(a*0.017);
y -= 2*Math.cos(a*0.017);
createEmptyMovieClip("c" add ++i, getNextHighestDepth());
removeMovieClip("c" add (i-l));
this["c" add i].v = i;
this["c" add i].onEnterFrame = function() {
this._alpha *= (l/(l+2));
if (this.hitTest(x, y) && this.v<i-30) fscommand("quit");
}
this["c" add i].lineStyle(5, 0x3366CC);
this["c" add i].moveTo(x, y);
this["c" add i].lineTo(x+1, y+1);
if (t.hitTest(x, y, true)) {
l += 10;
t._x = Math.random()*600;
t._y = Math.random()*400;
}
}