Jump to content


Member Since 17 Mar 2013
Offline Last Active Feb 06 2016 07:18 PM

#5108962 C++ SFML Code Review

Posted by Naughtyusername on 13 November 2013 - 07:26 AM

there are lots of things to take atention :

interesting int to string conversation smile.png there is functions for that,

several game loops with duplicating code,

all code that makes different things could be moved to functions draw initialize mousehandling and etc,

som drawing objects are initializing every loop - initialize them before main loop, 

magic numbers,

instead of switch with cases 0 1 2 3...   posible better to use array[]

maybe start using vectors sfVector2d  or similar


Thanks! put your post in my ToDo file and will get working on it! :)