Jump to content

  • Log In with Google      Sign In   
  • Create Account


Naughtyusername

Member Since 17 Mar 2013
Offline Last Active Jul 24 2014 07:04 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! :)




PARTNERS