summaryrefslogtreecommitdiffhomepage
path: root/app/tick.rb
diff options
context:
space:
mode:
authorArnold <[email protected]>2021-12-26 23:09:29 -0500
committerGitHub <[email protected]>2021-12-26 23:09:29 -0500
commit0a611afcb8474afe01a451b20fa5608be334053b (patch)
tree6af89bbdab20d6f9ded6c711aefd450ca12e7350 /app/tick.rb
parentb7dea8016b5b1328808e28b76cc12343907de63e (diff)
parent20da68139878d9286cb642c9bcb5e20c28077ba7 (diff)
downloadSteelWings-0a611afcb8474afe01a451b20fa5608be334053b.tar.gz
SteelWings-0a611afcb8474afe01a451b20fa5608be334053b.zip
Merge pull request #12 from realtradam/development
version 1.0
Diffstat (limited to 'app/tick.rb')
-rw-r--r--app/tick.rb8
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