Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualwarnexus

Posted 05 July 2013 - 08:12 PM


if (inputClass.IsActionSequence(PLAYER_MOVEDOWN, PLAYER_MOVEDOWN_FORWARD, PLAYER_MOVEFORWARD))
{
//Do something - Hadouken!
}

 

If I decided to change the button sequence of the fighters' move during development at some point, the above code looks more read-able to me. 


#1warnexus

Posted 05 July 2013 - 08:08 PM


if (inputClass.IsActionSequence(PLAYER_MOVEDOWN, PLAYER_MOVEDOWN_FORWARD, PLAYER_MOVEFORWARD))
{
//Do something - Hadouken!
}

 

If you decided to change the button sequence of the fighters' move during development at some point, the above code looks more read-able.


PARTNERS