summaryrefslogtreecommitdiffhomepage
path: root/app/tick.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2021-12-26 21:42:56 -0500
committerrealtradam <[email protected]>2021-12-26 21:42:56 -0500
commit5f8a4b6b17d6ada0097412b13605717dd5a310df (patch)
treecd3646042537e6c9e69ff2c31c99b816607acce7 /app/tick.rb
parent70b2499a8753331b68fb7a61a8882c9ff0b017d8 (diff)
downloadSteelWings-5f8a4b6b17d6ada0097412b13605717dd5a310df.tar.gz
SteelWings-5f8a4b6b17d6ada0097412b13605717dd5a310df.zip
added rate of fire, tweaked ai
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