The Legend of Yuki
Action-adventure about fighting a rival yakuza gang. Made at The Game Assembly.
Main Contributions
- Player
- Movement in 8 directions
- Walk animations in 8 directions
- Respawning in room previous to the one you died in
- Pausing controls for one second when dying
- Misc
- Ability to fade entire game to black and back again
- Fixed wonky menu controls by writing the best switch I have ever written
switch (aMessage)
{
case MessageType::Up:
case MessageType::Left:
if (myInputTimer > 0.0f)
{
break;
}
case MessageType::UpOnce:
case MessageType::LeftOnce:
myInputTimer = myInputDelay;
//switch highlighted button
break;
case MessageType::Down:
case MessageType::Right:
if (myInputTimer > 0.0f)
{
break;
}
case MessageType::DownOnce:
case MessageType::RightOnce:
myInputTimer = myInputDelay;
//switch highlighted button
break;
case MessageType::Confirm:
//activate highlighted button
break;
default: break;
}