Skip to content
Browse files

Remove front menu text to become accurate.

The front menu text says you can use spacebar to shoot, but you actually
can't. This fixes the text to accurately describe the keys that work.

This also adds a commented out keypressed function in states/play.lua.
  • Loading branch information...
1 parent 4e8c47b commit 9bf120bd836658776d1fbd8a5ab575af35925a3c @MutantFreak MutantFreak committed Jan 29, 2012
Showing with 13 additions and 1 deletion.
  1. +1 −1 states/menu.lua
  2. +12 −0 states/play.lua
View
2 states/menu.lua
@@ -80,7 +80,7 @@ function menu:draw()
love.graphics.draw(logo.image, logo.position.x, logo.position.y)
- love.graphics.print("Shoot: click or spacebar",
+ love.graphics.print("Shoot: left click",
instructions.position.x + 20, instructions.position.y, 0, .4,.4)
love.graphics.print("Spin: scroll wheel or keyboard W & S ",
instructions.position.x + 20, instructions.position.y + 50, 0, .4,.4)
View
12 states/play.lua
@@ -307,5 +307,17 @@ function play:mousepressed(x, y, button)
end
end
+--[[
+function play:keypressed(key, unicode)
+ if (love.keyboard.isDown("spacebar") or butto) then
+ local direction = player.position:normalized()
+ local location = (constants.SCREEN / 2) + player.position +
+ (direction * player.SIZE.y)
+ table.insert(bullets, Bullet(bullets.images, location, direction,
+ snake:getCurrentColor(player.theta)))
+ end
+end
+]]
+
-- Used for idiomatic module loading.
return play

0 comments on commit 9bf120b

Please sign in to comment.
Something went wrong with that request. Please try again.