summaryrefslogtreecommitdiffhomepage
path: root/app/main.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/main.rb')
-rw-r--r--app/main.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/main.rb b/app/main.rb
index 0ebdc6b..d797a3e 100644
--- a/app/main.rb
+++ b/app/main.rb
@@ -1,6 +1,10 @@
+require 'app/sprites.rb'
def tick args
args.outputs.labels << [640, 500, 'Hello World!', 5, 1]
args.outputs.labels << [640, 460, 'Go to docs/docs.html and read it!', 5, 1]
args.outputs.labels << [640, 420, 'Join the Discord! http://discord.dragonruby.org', 5, 1]
args.outputs.sprites << [576, 280, 128, 101, 'dragonruby.png']
+ @render = Sprite.objects[1] if args.inputs.keyboard.key_held.a
+ @render = Sprite.objects[0] if args.inputs.keyboard.key_held.s
+ args.outputs.sprites << @render
end