summaryrefslogtreecommitdiffhomepage
path: root/app/tick.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/tick.rb')
-rw-r--r--app/tick.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/tick.rb b/app/tick.rb
index c8c8f83..1205fd6 100644
--- a/app/tick.rb
+++ b/app/tick.rb
@@ -10,6 +10,11 @@ def tick args
args.outputs.background_color = [0,0,0]
FelFlame::Stage.call
+ # Spawn Bullet
+ if args.inputs.keyboard.keys[:down].include?(:b)
+ Factory::Bullet.new(x: @camera.x, y: @camera.y)
+ end
+
# Moving Camera
if args.inputs.keyboard.keys[:down_or_held].include?(:d)
@camera.x += (Math.cos([email protected] * (Math::PI / 180.0)) * 5)