blob: 2e63331977416c71a6cd493b939d277ef9756f05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
OUT #include <cstdio>
OUT #include <cstdlib>
double yd=0;
EVENT(create){
draw_set_font(fnt_liber);
x=10;
y=240;
log("Control object wow!");
instance_create<obj_hoi>(20,20);
}
EVENT(step){
// static double yd=0;
x++;
y+=yd;
yd+=(double)rand()/RAND_MAX*2-y/240;
}
EVENT(draw){
draw_textf(x,y,"controllll: x=%g y=%g",x,y);
}
|