diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-12-31 21:20:52 +0100 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-12-31 21:20:52 +0100 |
commit | a871e68ebd153d9ab4f9f9e36d7b099689e05c38 (patch) | |
tree | 01598181fb1985d9e498d0807d5f962006820366 /src | |
parent | 7fcda73782bedea734da7c332397017a9769c1ea (diff) |
Sprite width/height (and formatting)
Diffstat (limited to 'src')
-rw-r--r-- | src/objects/obj_control.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/objects/obj_control.cpp b/src/objects/obj_control.cpp index 5f8778c..66b481c 100644 --- a/src/objects/obj_control.cpp +++ b/src/objects/obj_control.cpp @@ -1,13 +1,11 @@ -OUT #include <cstdio> OUT #include <cstdlib> -double yd=0; +static double yd=0; EVENT(create){ draw_set_font(fnt_liber); x=10; y=240; - log("Control object wow!"); instance_create<obj_hoi>(20,20); } @@ -15,6 +13,7 @@ EVENT(step){ x++; y+=yd; yd+=(double)rand()/RAND_MAX*2-y/240; + yd*=0.99; } EVENT(draw){ |