summaryrefslogtreecommitdiffhomepage
path: root/app/tick.rb
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2021-12-19 19:06:50 -0500
committerrealtradam <[email protected]>2021-12-19 19:06:50 -0500
commit844d8c194b48055ba60be4d185ad9ab688cce92a (patch)
tree8058c12295b9a6e03a678be2b50b9b328291c0e0 /app/tick.rb
parentbd645871ff96a45c23c05f6fc7a82ac1e2749616 (diff)
downloadSteelWings-844d8c194b48055ba60be4d185ad9ab688cce92a.tar.gz
SteelWings-844d8c194b48055ba60be4d185ad9ab688cce92a.zip
Bullets, Health, Collision systems implemented. Renamed plane sprites.
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)