summaryrefslogtreecommitdiff
path: root/src/objects
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects')
-rw-r--r--src/objects/obj_control.cpp12
-rw-r--r--src/objects/obj_hoi.cpp11
2 files changed, 23 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!");
+}
diff --git a/src/objects/obj_hoi.cpp b/src/objects/obj_hoi.cpp
new file mode 100644
index 0000000..fe3c3f1
--- /dev/null
+++ b/src/objects/obj_hoi.cpp
@@ -0,0 +1,11 @@
+EVENT(create){
+ x=y=10;
+}
+
+EVENT(step){
+ x++;
+}
+
+EVENT(draw){
+ draw_text(x,y,"yay!");
+}