Difference between revisions of "Talk:Tutorial:Using Input"

(Shorter = better?)
Line 20: Line 20:
 
On a second thought, this is the tutorial section, so probably better to have it more verbose.
 
On a second thought, this is the tutorial section, so probably better to have it more verbose.
 
--[[User:Athaudia|Athaudia]] 14:42, 14 July 2010 (UTC)
 
--[[User:Athaudia|Athaudia]] 14:42, 14 July 2010 (UTC)
 +
: I'm not sure of that. The shorter version may be clearer. It is to me, anyway. Perhaps new lovers/Lua users feel differently? --[[User:Robin|Robin]]-<sub>[[User_talk:Robin|gvx]]</sub> 21:16, 14 July 2010 (UTC)

Revision as of 21:16, 14 July 2010

Why

if key == 'h' then
   if love.mouse.isVisible() then
      love.mouse.setVisible(false)
   else
      love.mouse.setVisible(true)
   end
end

and not

if key == 'h' then
   love.mouse.setVisible(not love.mouse.isVisible())
end

? --Athaudia 13:56, 14 July 2010 (UTC)

On a second thought, this is the tutorial section, so probably better to have it more verbose. --Athaudia 14:42, 14 July 2010 (UTC)

I'm not sure of that. The shorter version may be clearer. It is to me, anyway. Perhaps new lovers/Lua users feel differently? --Robin-gvx 21:16, 14 July 2010 (UTC)