Now if there was a space between the if and the (, it'd be perfect ;)
And once you've mastered C++, and have the official and secretive gold C++ guru medal around your neck, you code like this:if(keyboard_check(vk_left)) x -= 5; if(keyboard_check(vk_right)) x += 5; if(keyboard_check(vk_up)) y -= 5; if(keyboard_check(vk_down)) y += 5;
@OP: it took me a good 5 seconds to even spot a difference between your two styles. The only difference between the two is a set of parentheses and Allman vs K&R bracing. The difference is minor. If you think your old style is horrible, then you must think your new style is at least slightly horrible too, seeing as the difference really is very minor.
Some people get religious about the bracing style. Meh. Same with the parentheses.