OUT #include OUT #include EVENT(create){ x=10; y=240; log("Control object wow!"); } EVENT(step){ static double yd=0; x++; y+=yd; yd+=(double)rand()/RAND_MAX*2-y/240; } EVENT(draw){ char *s; asprintf(&s,"controllll: x=%g y=%g",x,y); draw_text(x,y,s); free(s); }