From 57bd7ec9da14b3e7e338184568a273ce602e1557 Mon Sep 17 00:00:00 2001 From: realtradam Date: Wed, 12 May 2021 07:28:04 -0400 Subject: testing the waters --- app/main.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/main.rb') 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 -- cgit v1.2.3