From d7c48be324cb0a2f13150c708c37bee5c000349b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erkki=20Sepp=C3=A4l=C3=A4?= Date: Thu, 30 Oct 2014 22:01:29 +0200 Subject: [PATCH] Start game with space bar, not just any key --- menu_state.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/menu_state.lua b/menu_state.lua index fbed1c2..6d57f89 100644 --- a/menu_state.lua +++ b/menu_state.lua @@ -158,7 +158,13 @@ function menu_state:draw() love.graphics.printf("FYSPLANE", 0, 100, love.window.getWidth(), "center") - love.graphics.printf("PRESS ANY KEY TO BEGIN…", 0, 700, love.window.getWidth(), "center") + love.graphics.setFont(midfont); + love.graphics.printf("1 for solo game", 0, 600, love.window.getWidth(), "center") + love.graphics.printf("2 for two-player game", 0, 630, love.window.getWidth(), "center") + love.graphics.printf("c for game against the computer", 0, 660, love.window.getWidth(), "center") + + love.graphics.setFont(titlefont) + love.graphics.printf("PRESS SPACE TO BEGIN…", 0, 700, love.window.getWidth(), "center") for key, entity in pairs(menu_state.entity_list) do entity:draw() @@ -221,7 +227,7 @@ function menu_state:keypressed(key, unicode) Gamestate.switch(level_state) elseif key == "escape" then love.event.quit() - else + elseif key == " " then Gamestate.switch(level_state) end elseif key == "escape" then