diff options
Diffstat (limited to 'app/tick.rb')
| -rw-r--r-- | app/tick.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/tick.rb b/app/tick.rb index a48fce3..a7904bc 100644 --- a/app/tick.rb +++ b/app/tick.rb @@ -12,11 +12,12 @@ def tick args FelFlame::Stage.call # Spawn Bullet - if args.inputs.keyboard.keys[:down].include?(:b) - Factory::Bullet.new(x: @camera.x, y: @camera.y) - end + #if args.inputs.keyboard.keys[:down].include?(:b) + # Factory::Bullet.new(x: @camera.x, y: @camera.y) + #end # Moving Camera +=begin if args.inputs.keyboard.keys[:down_or_held].include?(:d) @camera.x += (Math.cos([email protected] * (Math::PI / 180.0)) * 5) @camera.y += (Math.sin([email protected] * (Math::PI / 180.0)) * 5) @@ -35,6 +36,7 @@ def tick args @camera.x -= (Math.sin([email protected] * (Math::PI / 180.0)) * -5) @camera.y += (Math.cos([email protected] * (Math::PI / 180.0)) * -5) end +=end if args.inputs.keyboard.keys[:down_or_held].include?(:q) @camera.angle += 3 end |
