summaryrefslogtreecommitdiff
path: root/src/objects/obj_control.cpp
diff options
context:
space:
mode:
authortomsmeding <hallo@tomsmeding.nl>2015-11-02 06:55:15 +0100
committertomsmeding <hallo@tomsmeding.nl>2015-11-02 06:55:15 +0100
commitdcaa318d677a1a6881ccc87640ae75c0fc578bfb (patch)
tree3ff05dc8494d6629dddfde30f859e0c72e620926 /src/objects/obj_control.cpp
Initial
Diffstat (limited to 'src/objects/obj_control.cpp')
-rw-r--r--src/objects/obj_control.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/objects/obj_control.cpp b/src/objects/obj_control.cpp
new file mode 100644
index 0000000..8c15087
--- /dev/null
+++ b/src/objects/obj_control.cpp
@@ -0,0 +1,12 @@
+EVENT(create){
+ x=y=10;
+ draw_text(42,42,"Control object wow!");
+}
+
+EVENT(step){
+ x++;
+}
+
+EVENT(draw){
+ draw_text(x,y,"yay!");
+}